Skip to content

Commit a0f9a5f

Browse files
author
Dylan Ratcliffe
committed
Excluded plans from validation
Puppet can't currently validate these Also removed redundant task to reduce confusion
1 parent eea653d commit a0f9a5f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Rakefile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,5 @@ require 'puppet-lint/tasks/puppet-lint'
44
PuppetLint.configuration.send('disable_80chars')
55
PuppetLint.configuration.relative = true
66
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
7+
PuppetSyntax.exclude_paths = ["plans/**/*.pp"]
78

8-
desc 'Run puppet in noop mode and check for syntax errors.'
9-
task :validate do
10-
Dir['manifests/**/*.pp'].each do |manifest|
11-
sh "puppet parser validate --noop #{manifest}"
12-
end
13-
Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
14-
sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
15-
end
16-
Dir['templates/**/*.erb'].each do |template|
17-
sh "erb -P -x -T '-' #{template} | ruby -c"
18-
end
19-
end

0 commit comments

Comments
 (0)