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

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

Class Method Summary collapse

Class Method Details

.commandObject



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

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