Class: ThreeScaleToolbox::Commands::ServiceCommand::ShowSubcommand
- Inherits:
-
Cri::CommandRunner
- Object
- Cri::CommandRunner
- ThreeScaleToolbox::Commands::ServiceCommand::ShowSubcommand
show all
- Includes:
- ThreeScaleToolbox::Command
- Defined in:
- lib/3scale_toolbox/commands/service_command/show_command.rb
Constant Summary
collapse
- FIELDS =
%w[
id name state system_name backend_version deployment_option support_email description
created_at updated_at
]
Class Method Summary
collapse
Instance Method Summary
collapse
#config, #config_file, #exit_with_message, #fetch_required_option, included, #keep_alive, #remotes, #threescale_client, #verbose, #verify_ssl
Class Method Details
.command ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/3scale_toolbox/commands/service_command/show_command.rb', line 12
def self.command
Cri::Command.define do
name 'show'
usage 'show <remote> <service-id_or_system-name>'
summary 'Show the information of a service'
description "Show the information of a service"
ThreeScaleToolbox::CLI.output_flag(self)
param :remote
param :service_id_or_system_name
runner ShowSubcommand
end
end
|
Instance Method Details
#run ⇒ Object
27
28
29
|
# File 'lib/3scale_toolbox/commands/service_command/show_command.rb', line 27
def run
printer.print_record service.attrs
end
|