Sha256: c608a8f00836c4f24aca89f7378b5a108e8cb267f64e9af2bb77f72dec73dce8

Contents?: true

Size: 433 Bytes

Versions: 7

Compression:

Stored size: 433 Bytes

Contents

module Ra10ke::Syntax
  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
      }, '')

      unless puppetfile.call
        abort("Puppetfile syntax check failed")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ra10ke-2.0.0 lib/ra10ke/syntax.rb
ra10ke-1.2.0 lib/ra10ke/syntax.rb
ra10ke-1.1.0 lib/ra10ke/syntax.rb
ra10ke-1.0.0 lib/ra10ke/syntax.rb
ra10ke-0.6.2 lib/ra10ke/syntax.rb
ra10ke-0.6.1 lib/ra10ke/syntax.rb
ra10ke-0.6.0 lib/ra10ke/syntax.rb