Module: R10K::CLI::Puppetfile

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

Defined Under Namespace

Modules: Check, Install, Purge

Class Method Summary collapse

Class Method Details

.commandObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/r10k/cli/puppetfile.rb', line 8

def self.command
  @cmd ||= Cri::Command.define do
    name    'puppetfile'
    usage   'puppetfile <subcommand>'
    summary 'Perform operations on a Puppetfile'

    description <<-DESCRIPTION
`r10k puppetfile` provides an implementation of the librarian-puppet style
Puppetfile (http://bombasticmonkey.com/librarian-puppet/).
    DESCRIPTION

    run do |opts, args, cmd|
      puts cmd.help(:verbose => opts[:verbose])
      exit 0
    end
  end
end