Module: Ra10ke::Syntax
- Included in:
- RakeTask
- Defined in:
- lib/ra10ke/syntax.rb
Instance Method Summary collapse
Instance Method Details
#define_task_syntax(*_args) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ra10ke/syntax.rb', line 2 def define_task_syntax(*_args) desc 'Syntax check Puppetfile' task :syntax do require 'r10k/action/puppetfile/check' puppetfile = R10K::Action::Puppetfile::Check.new({ root: @basedir, moduledir: @moduledir, puppetfile: @puppetfile_path, }, '') abort('Puppetfile syntax check failed') unless puppetfile.call end end |