forked from Mylezeem/puppet-authconfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
24 lines (20 loc) · 808 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'rake'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint'
desc 'Run syntax, lint and spec tests'
task :test => [:validate,:lint,:spec]
desc "Validate the Puppet syntax of all manifests"
task :validate do
Dir['./manifests/**/*.pp'].each do |filename|
sh "puppet parser validate '#{filename}'"
end
end
desc 'Run puppet-lint on Puppet manifests defined in this repo'
task :lint do
# Including puppet-lint rake tasks after the puppetlabs_spec_helper tasks to
# make sure that the pl_s_h lint task doesn't overwrite our configuration below
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
PuppetLint.configuration.send('disable_autoloader_layout')
end