Module: R10K::CLI::Deploy::Display

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

Class Method Summary collapse

Class Method Details

.commandObject



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/r10k/cli/deploy.rb', line 116

def self.command
  @cmd ||= Cri::Command.define do
    name  'display'
    aliases 'list'
    usage 'display'
    summary 'Display environments and modules in the deployment'

    flag :p, :puppetfile, 'Display modules (deprecated, use -m)'
    flag :m, :modules, 'Display modules'
    flag nil, :detail, 'Display detailed information'
    flag nil, :fetch, 'Update available environment lists from all remote sources'
    option nil, :format, 'Display output in a specific format. Valid values: json, yaml. Default: yaml',
           argument: :required

    runner R10K::Action::CriRunner.wrap(R10K::Action::Deploy::Display)
  end
end