Class: ThreeScaleToolbox::Commands::ServiceCommand::ListSubcommand
- Inherits:
-
Cri::CommandRunner
- Object
- Cri::CommandRunner
- ThreeScaleToolbox::Commands::ServiceCommand::ListSubcommand
show all
- Includes:
- ThreeScaleToolbox::Command
- Defined in:
- lib/3scale_toolbox/commands/service_command/list_command.rb
Constant Summary
collapse
- FIELDS =
%w[id name system_name]
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
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/3scale_toolbox/commands/service_command/list_command.rb', line 9
def self.command
Cri::Command.define do
name 'list'
usage 'list <remote>'
summary 'List all services'
description 'List all services'
ThreeScaleToolbox::CLI.output_flag(self)
param :remote
runner ListSubcommand
end
end
|
Instance Method Details
#run ⇒ Object
23
24
25
|
# File 'lib/3scale_toolbox/commands/service_command/list_command.rb', line 23
def run
printer.print_collection remote.list_services
end
|