Sha256: cfafba52f8a62f5cea1be2f426deb7aaeaea3282e14c98837e97efd68802251d

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

module Fog
  module Terremark
    class Vcloud < Fog::Compute::Terremark
      autoload :Mock, 'fog/terremark/vcloud/mock'
      autoload :Real, 'fog/terremark/vcloud/real'

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

      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

      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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-terremark-0.0.4 lib/fog/terremark/vcloud.rb
fog-terremark-0.0.3 lib/fog/terremark/vcloud.rb
fog-terremark-0.0.2 lib/fog/terremark/vcloud.rb
fog-terremark-0.0.1 lib/fog/terremark/vcloud.rb