Class: Kontena::Cli::Containers::LogsCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Kontena::Cli::Containers::LogsCommand
- Includes:
- Kontena::Cli::Common, GridOptions, Helpers::LogHelper
- Defined in:
- lib/kontena/cli/containers/logs_command.rb
Instance Method Summary collapse
Methods included from Helpers::LogHelper
#buffered_log_json, #color_for_container, #color_maps, #colors, #get_logs, included, #show_log, #show_logs, #stream_logs, #token
Methods included from GridOptions
Methods included from Kontena::Cli::Common
#access_token=, #add_master, #any_key_to_continue, #any_key_to_continue_with_timeout, #api_url, #api_url=, #caret, #clear_current_grid, #client, #cloud_auth?, #cloud_client, #config, #confirm, #confirm_command, #current_grid, #current_master_index, #debug?, #display_account_login_info, #display_login_info, display_logo, #display_master_login_info, #error, exit_with_error, #kontena_account, #logger, #pastel, #print, #prompt, #puts, #require_api_url, #require_token, #reset_client, #reset_cloud_client, #running_quiet?, #running_silent?, #running_verbose?, #spin_if, #spinner, #sprint, #sputs, #stdin_input, #use_refresh_token, #vfakespinner, #vputs, #vspinner, #warning
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/kontena/cli/containers/logs_command.rb', line 11 def execute require_api_url show_logs("containers/#{current_grid}/#{container_id}/logs") do |log| show_log(log) end end |