Class: Kontena::Plugin::Cloud::Platform::ShowCommand
- Inherits:
-
Command
- Object
- Clamp::Command
- Command
- Kontena::Plugin::Cloud::Platform::ShowCommand
- Includes:
- Cli::Common, Cli::Grids::Common, Common
- Defined in:
- lib/kontena/plugin/cloud/platform/show_command.rb
Constant Summary
Constants included from CloudCommand
CloudCommand::PLATFORM_NOT_SELECTED_ERROR
Instance Method Summary collapse
Methods included from Common
#cached_platforms, #current_organization, #current_platform, #fetch_platforms, #fetch_platforms_for_org, #find_platform_by_name, #login_to_platform, #parse_platform_name, #platform_config_exists?, #prompt_platform, #require_platform
Methods included from CloudCommand
#verify_current_grid, #verify_current_master, #verify_current_master_token
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/kontena/plugin/cloud/platform/show_command.rb', line 13 def execute require_platform(name) platform = find_platform_by_name(current_platform, current_organization) puts "#{name}:" puts " name: #{platform.name}" puts " organization: #{current_organization}" puts " version: #{platform.version}" puts " type: #{platform.hosted_type}" puts " state: #{platform.state}" puts " online: #{platform.online}" puts " region: #{platform.region || '-'}" puts " initial_size: #{platform.initial_size}" puts " master: #{platform.url}" puts " grid: #{platform.grid_id}" end |