Sha256: 0d6546d591b4128ca212c59cd0bce50dedd9b61830878121e545b78a9d49bd35
Contents?: true
Size: 602 Bytes
Versions: 87
Compression:
Stored size: 602 Bytes
Contents
require_relative 'services_helper' module Kontena::Cli::Services class ShowCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include ServicesHelper parameter "NAME", "Service name" 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 end end
Version data entries
87 entries across 87 versions & 2 rubygems