Class: Kontena::Cli::Apps::ShowCommand
- Inherits:
-
Kontena::Command
- Object
- Kontena::Command
- Kontena::Cli::Apps::ShowCommand
- Includes:
- Common, Common, GridOptions
- Defined in:
- lib/kontena/cli/apps/show_command.rb
Instance Attribute Summary collapse
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
Methods included from Common
#abort_on_validation_errors, #app_json, #create_yml, #current_dir, #display_notifications, #generate_services, #hint_on_validation_notifications, #prefixed_name, #project_name_from_yaml, #read_yaml, #require_config_file, #service_exists?, #service_prefix, #services_from_yaml, #set_env_variables, #token, #valid_addons
Instance Attribute Details
#services ⇒ Object (readonly)
Returns the value of attribute services.
14 15 16 |
# File 'lib/kontena/cli/apps/show_command.rb', line 14 def services @services end |
Instance Method Details
#execute ⇒ Object
16 17 18 19 20 21 |
# File 'lib/kontena/cli/apps/show_command.rb', line 16 def execute require_config_file(filename) token = require_token show_service(token, prefixed_name(service)) show_service_instances(token, prefixed_name(service)) end |