Module: R10K::CLI::Module

Defined in:
lib/r10k/cli/module.rb,
lib/r10k/cli/module/list.rb,
lib/r10k/cli/module/deploy.rb

Defined Under Namespace

Modules: Deploy, List

Class Method Summary collapse

Class Method Details

.commandObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/r10k/cli/module.rb', line 6

def self.command
  @cmd ||= Cri::Command.define do
    name  'module'
    usage 'module <subcommand>'
    summary 'Operate on a specific puppet module'

    required :e, :environment, 'Specify a particular environment'

    run do |opts, args, cmd|
      puts cmd.help
      exit 0
    end
  end
end