Sha256: b51430bfe3b89860f30b9993db589f790a8b24fd24aecee5506c5088a4da1d96
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
Contents
module Fog module Terremark class Real require 'fog/terremark/parsers/task' # Shutdown a vapp # # ==== Parameters # * vapp_id<~Integer> - Id of vapp to shutdown # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'endTime'<~String> - endTime of task # * 'href'<~String> - link to task # * 'startTime'<~String> - startTime of task # * 'status'<~String> - status of task # * 'type'<~String> - type of task # * 'Owner'<~String> - # * 'href'<~String> - href of owner # * 'name'<~String> - name of owner # * 'type'<~String> - type of owner def shutdown(vapp_id) request( :expects => 202, :method => 'POST', :parser => Fog::Parsers::Terremark::Task.new, :path => "vApp/#{vapp_id}/power/action/shutdown" ) end end class Mock def shutdown(vapp_id) raise MockNotImplemented.new("Contributions welcome!") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems