482441c9af
Add the rake "lint" target, and fix resulting minor errors, which were: --- manifests/mod/python.pp - WARNING: class not documented on line 1 manifests/mod/wsgi.pp - WARNING: class not documented on line 1 manifests/vhost.pp - WARNING: variable not enclosed in {} on line 80 manifests/vhost.pp - WARNING: variable not enclosed in {} on line 82 manifests/vhost/redirect.pp - WARNING: variable not enclosed in {} on line 43 manifests/vhost/redirect.pp - WARNING: variable not enclosed in {} on line 45 --- Change-Id: I2213f314d4bf92b4ddf58dbb19a80783380a55ce
22 lines
556 B
Ruby
22 lines
556 B
Ruby
require 'rake'
|
|
|
|
require 'puppet-lint/tasks/puppet-lint'
|
|
PuppetLint.configuration.fail_on_warnings = true
|
|
PuppetLint.configuration.send('disable_80chars')
|
|
PuppetLint.configuration.send('disable_autoloader_layout')
|
|
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
|
|
PuppetLint.configuration.send('disable_class_parameter_defaults')
|
|
|
|
task :default => [:spec]
|
|
|
|
desc "Run all module spec tests (Requires rspec-puppet gem)"
|
|
task :spec do
|
|
system("rspec spec")
|
|
end
|
|
|
|
desc "Build package"
|
|
task :build do
|
|
system("puppet-module build")
|
|
end
|
|
|