Sha256: 73f07f06d45333c949bd2f61814dd0da7cc92c2b81d335f595056965abfe37ee
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
module Fog module Terremark class Real # Get list of organizations # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # * 'description'<~String> - Description of organization # * 'links'<~Array> - An array of links to entities in the organization # * 'name'<~String> - Name of organization def get_organizations request({ :expects => 200, :headers => { 'Authorization' => "Basic #{Base64.encode64("#{@terremark_username}:#{@terremark_password}").chomp!}", # Terremark said they're going to remove passing in the Content-Type to login in a future release 'Content-Type' => "application/vnd.vmware.vcloud.orgList+xml" }, :method => 'POST', :parser => Fog::Parsers::Terremark::GetOrganizations.new, :path => 'login' }) end end class Mock def get_organizations raise MockNotImplemented.new("Contributions welcome!") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems