class Kontena::Cli::Services::ShowCommand

Public Instance Methods

execute() click to toggle source
# File lib/kontena/cli/services/show_command.rb, line 11
def execute
  require_api_url
  token = require_token

  show_service(token, name)
  begin
    show_service_instances(token, name)
  rescue Kontena::Errors::StandardError => exc
    if exc.status == 404
      # fallback to old behaviour
      show_service_containers(token, name)
    end
  end
end