Module: R10K::CLI::Puppetfile::Purge

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

Class Method Summary collapse

Class Method Details

.commandObject



55
56
57
58
59
60
61
62
63
64
65
# File 'lib/r10k/cli/puppetfile.rb', line 55

def self.command
  @cmd ||= Cri::Command.define do
    name  'purge'
    usage 'purge'
    summary 'Purge unmanaged modules from a Puppetfile managed directory'

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