Class: AkamaiApi::CLI::CCU::Base

Inherits:
AkamaiApi::CLI::Command show all
Defined in:
lib/akamai_api/cli/ccu/base.rb

Instance Method Summary collapse

Instance Method Details

#status(progress_uri = nil) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/akamai_api/cli/ccu/base.rb', line 16

def status progress_uri = nil
  load_config
  response = AkamaiApi::CCU.status progress_uri
  puts StatusRenderer.new(response).render
rescue AkamaiApi::CCU::Error => e
  puts StatusRenderer.new(e).render_error
rescue AkamaiApi::Unauthorized
  puts 'Your login credentials are invalid.'
end