Class: ThreeScaleToolbox::Commands::ProxyConfigCommand::Show::ShowSubcommand
- Inherits:
-
Cri::CommandRunner
- Object
- Cri::CommandRunner
- ThreeScaleToolbox::Commands::ProxyConfigCommand::Show::ShowSubcommand
show all
- Includes:
- ThreeScaleToolbox::Command
- Defined in:
- lib/3scale_toolbox/commands/proxy_config_command/show_command.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#config, #config_file, #exit_with_message, #fetch_required_option, included, #remotes, #threescale_client, #verbose, #verify_ssl
Class Method Details
.command ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/3scale_toolbox/commands/proxy_config_command/show_command.rb', line 8
def self.command
Cri::Command.define do
name 'show'
usage 'show <remote> <service> <environment>'
summary 'Show Proxy Configuration'
description 'Show a Proxy Configuration'
param :remote
param :service_ref
param :environment
ThreeScaleToolbox::CLI.output_flag(self)
option nil, :'config-version', "Specify the Proxy Configuration version. If not specified it gets the latest version", default: 'latest', argument: :required
runner ShowSubcommand
end
end
|
Instance Method Details
#run ⇒ Object
26
27
28
|
# File 'lib/3scale_toolbox/commands/proxy_config_command/show_command.rb', line 26
def run
printer.print_record proxy_config.attrs
end
|