Skip to content

Instantly share code, notes, and snippets.

@maxlinc
Created June 27, 2013 16:07
Show Gist options
  • Save maxlinc/5877768 to your computer and use it in GitHub Desktop.
Save maxlinc/5877768 to your computer and use it in GitHub Desktop.
Syntax Checking
desc 'Validates the syntax of the puppet manifest files'
task :validate do
puts `puppet parser validate #{Dir['**/*.pp'].join(' ')}`
fail unless $?.to_i == 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment