Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
modernize Gemfile/Rakefile/spec_helper boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Feb 10, 2014
1 parent 991b4c7 commit 729396f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
11 changes: 6 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
source :rubygems

group :development, :test do
gem 'puppetlabs_spec_helper', :require => false
end
source 'https://rubygems.org'

if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', :require => false
end

gem 'rake', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'puppet-syntax', :require => false
21 changes: 15 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'rake/clean'
require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet-lint/tasks/puppet-lint'

CLEAN.include('spec/fixtures/', 'spec/reports')
PuppetSyntax.exclude_paths = ['spec/fixtures/**/*']
#PuppetLint.configuration.send('disable_class_inherits_from_params_class')
#PuppetLint.configuration.send('disable_variable_scope')
PuppetLint.configuration.ignore_paths = [
'pkg/**/*.pp',
'spec/**/*.pp',
'tests/**/*.pp',
]

task :spec => [:spec_prep]
task :default => [
:syntax,
:lint,
:spec,
]

desc "Run all tasks (spec)"
task :all => [ :spec ]
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
require 'rubygems'
require 'puppetlabs_spec_helper/module_spec_helper'

0 comments on commit 729396f

Please sign in to comment.