Class: Akamai::Command

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/akamairb/command.rb

Instance Method Summary collapse

Instance Method Details

#purge(*urls) ⇒ Object



12
13
14
15
16
# File 'lib/akamairb/command.rb', line 12

def purge(*urls)
  client = Akamai::Connection.new(config)
  client.purge_and_progress(*urls, &printter) 
  puts
end

#show(id) ⇒ Object



20
21
22
23
24
# File 'lib/akamairb/command.rb', line 20

def show(id)
  client = Akamai::Connection.new(config)
  client.progress_until_done("/ccu/v2/purges/#{id}", &printter)
  puts
end