Class: Fog::Terremark::Vcloud

Inherits:
Compute::Terremark show all
Defined in:
lib/fog/terremark/vcloud.rb,
lib/fog/terremark/vcloud/mock.rb,
lib/fog/terremark/vcloud/real.rb

Defined Under Namespace

Classes: Mock, Real

Constant Summary collapse

HOST =
"services.vcloudexpress.terremark.com"
PATH =
"/api/v0.8a-ext1.6"
PORT =
443
SCHEME =
"https"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(options = {}) ⇒ Object



12
13
14
15
# File 'lib/fog/terremark/vcloud.rb', line 12

def self.new(options = {})
  Fog::Logger.deprecation("Fog::Terremark::Vcloud is deprecated, to be replaced with Vcloud 1.0 someday/maybe [light_black](#{caller.first})[/]")
  super
end

Instance Method Details

#default_ssh_keyObject



17
18
19
20
21
22
23
24
# File 'lib/fog/terremark/vcloud.rb', line 17

def default_ssh_key
  if default_ssh_key
    @default_ssh_key ||= begin
      keys = get_keys_list(default_organization_id).body["Keys"]
      keys.find { |item| item["IsDefault"] == "true" }
    end
  end
end