class Service
Public Instance Methods
containerstats_token()
click to toggle source
# File lib/resources/service.rb, line 6 def containerstats_token attributes = { 'follow': true, 'lines': 500 } request_token(:logs, attributes) end
finish_upgrade()
click to toggle source
# File lib/resources/service.rb, line 24 def finish_upgrade response = post(nil, {action: :finishupgrade}) JSON.parse(response.body) end
request_token()
click to toggle source
# File lib/resources/service.rb, line 14 def request_token response = get(:containerstats) {token: response['token'], url: response['url']} end
upgrade(attributes)
click to toggle source
# File lib/resources/service.rb, line 19 def upgrade(attributes) response = post(nil, {action: :upgrade}, attributes.to_json) JSON.parse(response.body) end