Mostly, this implies adding all of the boilerplate needed to start using rspec-puppet with fixtures and whatnot.
18 lines
427 B
Ruby
18 lines
427 B
Ruby
# ex: syntax=ruby ts=2 ts=2 si et
|
|
require 'puppet-lint/tasks/puppet-lint'
|
|
require 'puppetlabs_spec_helper/rake_tasks'
|
|
|
|
Rake::Task[:lint].clear
|
|
PuppetLint::RakeTask.new :lint do |config|
|
|
config.fail_on_warnings
|
|
config.ignore_paths = [ 'pkg/**/*', 'spec/**/*' ]
|
|
config.disable_checks = [
|
|
'80chars',
|
|
'class_parameter_defaults',
|
|
'documentation',
|
|
'autoloader_layout'
|
|
]
|
|
end
|
|
|
|
task :default => [ :spec, :lint ]
|