Skip to content

Commit

Permalink
example 3. adding puppet syntax checks as a rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarseglia committed May 10, 2016
1 parent 353d5ab commit 140cdf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source 'https://rubygems.org'

gem 'rake', require: false
gem 'puppet-lint', require: false
gem 'puppet-syntax', require: false
gem 'puppet', require: false
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet-lint/tasks/puppet-lint'

# Clear any previous definition of the rake task named 'lint'.
Expand All @@ -7,3 +8,6 @@ Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
config.ignore_paths = [ "vendor/**/*" ]
end

# puppet syntax check
PuppetSyntax.exclude_paths = ["vendor/**/*"]

0 comments on commit 140cdf7

Please sign in to comment.