Sha256: ee55c31598135799ac70fec42d54c2ea3c56f2551cbcc5d9f7a697919c36e366

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 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,
                                                       }, '')

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ra10ke-3.1.0 lib/ra10ke/syntax.rb
ra10ke-3.0.0 lib/ra10ke/syntax.rb