Module: R10K::CLI::Puppetfile::Check

Defined in:
lib/r10k/cli/puppetfile.rb

Class Method Summary collapse

Class Method Details

.commandObject



41
42
43
44
45
46
47
48
49
50
# File 'lib/r10k/cli/puppetfile.rb', line 41

def self.command
  @cmd ||= Cri::Command.define do
    name  'check'
    usage 'check'
    summary 'Try and load the Puppetfile to verify the syntax is correct.'

    option nil, :puppetfile, 'Path to Puppetfile', argument: :required
    runner R10K::Action::Puppetfile::CriRunner.wrap(R10K::Action::Puppetfile::Check)
  end
end