module Commands::Show

Public Instance Methods

show( app_id = Services::AppConfig.get_or_exit('app'), environment_name = Services::AppConfig.get('environment') ) click to toggle source
# File lib/busbar_cli/commands/show.rb, line 9
def show(
  app_id = Services::AppConfig.get_or_exit('app'),
  environment_name = Services::AppConfig.get('environment')
)
  Services::Kube.configure_temporary_profile(options.profile)

  resource = if environment_name.nil?
               AppsRepository.find(app_id: app_id)
             else
               EnvironmentsRepository.find(environment_name: environment_name, app_id: app_id)
             end

  Printer.print_resource(resource)
end