2010-06-17 19:58:09 -04:00
|
|
|
require 'builder'
|
|
|
|
require 'fog/vcloud/model'
|
|
|
|
require 'fog/vcloud/collection'
|
|
|
|
require 'fog/vcloud/generators'
|
2010-09-14 13:40:02 -04:00
|
|
|
# ecloud/vcloud requires at the bottom so that the following will be defined
|
2010-07-22 22:56:29 -04:00
|
|
|
|
2010-05-03 00:46:43 -04:00
|
|
|
module URI
|
|
|
|
class Generic
|
|
|
|
def host_url
|
|
|
|
@host_url ||= "#{self.scheme}://#{self.host}#{self.port ? ":#{self.port}" : ''}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
module Fog
|
2010-09-03 04:11:45 -04:00
|
|
|
class Vcloud < Fog::Service
|
2010-06-17 19:58:09 -04:00
|
|
|
|
|
|
|
requires :username, :password, :versions_uri
|
|
|
|
|
|
|
|
model_path 'fog/vcloud/models'
|
2010-09-02 19:01:19 -04:00
|
|
|
model :vdc
|
2010-09-14 13:40:02 -04:00
|
|
|
collection :vdcs
|
2010-06-17 19:58:09 -04:00
|
|
|
|
|
|
|
request_path 'fog/vcloud/requests'
|
|
|
|
request :login
|
|
|
|
request :get_versions
|
|
|
|
request :get_vdc
|
|
|
|
request :get_organization
|
|
|
|
request :get_network
|
|
|
|
|
2010-05-03 00:46:43 -04:00
|
|
|
class UnsupportedVersion < Exception ; end
|
|
|
|
|
2010-09-14 13:40:02 -04:00
|
|
|
module Shared
|
2010-10-11 10:25:02 -04:00
|
|
|
attr_reader :versions_uri
|
2010-09-14 13:40:02 -04:00
|
|
|
|
|
|
|
def default_organization_uri
|
|
|
|
@default_organization_uri ||= begin
|
|
|
|
unless @login_results
|
|
|
|
do_login
|
|
|
|
end
|
|
|
|
case @login_results.body[:Org]
|
|
|
|
when Array
|
|
|
|
@login_results.body[:Org].first[:href]
|
|
|
|
when Hash
|
|
|
|
@login_results.body[:Org][:href]
|
|
|
|
else
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# login handles the auth, but we just need the Set-Cookie
|
|
|
|
# header from that call.
|
|
|
|
def do_login
|
|
|
|
@login_results = login
|
|
|
|
@cookie = @login_results.headers['Set-Cookie']
|
|
|
|
end
|
|
|
|
|
|
|
|
def supported_versions
|
|
|
|
@supported_versions ||= get_versions(@versions_uri).body[:VersionInfo]
|
|
|
|
end
|
|
|
|
|
|
|
|
def xmlns
|
|
|
|
{ "xmlns" => "http://www.vmware.com/vcloud/v0.8",
|
|
|
|
"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
|
|
|
|
"xmlns:xsd" => "http://www.w3.org/2001/XMLSchema" }
|
|
|
|
end
|
|
|
|
|
|
|
|
# private
|
|
|
|
|
|
|
|
def ensure_unparsed(uri)
|
|
|
|
if uri.is_a?(String)
|
|
|
|
uri
|
|
|
|
else
|
|
|
|
uri.to_s
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-05-03 00:46:43 -04:00
|
|
|
class Real
|
2010-09-14 13:40:02 -04:00
|
|
|
include Shared
|
2010-06-17 19:58:09 -04:00
|
|
|
extend Fog::Vcloud::Generators
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-07-22 22:56:29 -04:00
|
|
|
def supporting_versions
|
2010-09-03 04:11:45 -04:00
|
|
|
["0.8"]
|
2010-07-22 22:56:29 -04:00
|
|
|
end
|
|
|
|
|
2010-05-03 00:46:43 -04:00
|
|
|
def initialize(options = {})
|
|
|
|
@connections = {}
|
|
|
|
@versions_uri = URI.parse(options[:versions_uri])
|
|
|
|
@module = options[:module]
|
|
|
|
@version = options[:version]
|
|
|
|
@username = options[:username]
|
|
|
|
@password = options[:password]
|
2010-06-17 19:58:09 -04:00
|
|
|
@persistent = options[:persistent]
|
2010-05-03 00:46:43 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def default_organization_uri
|
|
|
|
@default_organization_uri ||= begin
|
|
|
|
unless @login_results
|
|
|
|
do_login
|
|
|
|
end
|
2010-06-17 19:58:09 -04:00
|
|
|
case @login_results.body[:Org]
|
|
|
|
when Array
|
|
|
|
@login_results.body[:Org].first[:href]
|
|
|
|
when Hash
|
|
|
|
@login_results.body[:Org][:href]
|
2010-05-03 00:46:43 -04:00
|
|
|
else
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
def reload
|
|
|
|
@connections.each_value { |k,v| v.reset if v }
|
|
|
|
end
|
|
|
|
|
|
|
|
# If the cookie isn't set, do a get_organizations call to set it
|
|
|
|
# and try the request.
|
|
|
|
# If we get an Unauthorized error, we assume the token expired, re-auth and try again
|
|
|
|
def request(params)
|
|
|
|
unless @cookie
|
|
|
|
do_login
|
|
|
|
end
|
|
|
|
begin
|
|
|
|
do_request(params)
|
|
|
|
rescue Excon::Errors::Unauthorized => e
|
|
|
|
do_login
|
|
|
|
do_request(params)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-05-03 00:46:43 -04:00
|
|
|
private
|
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
def ensure_parsed(uri)
|
|
|
|
if uri.is_a?(String)
|
|
|
|
URI.parse(uri)
|
|
|
|
else
|
|
|
|
uri
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def supported_version_numbers
|
2010-07-09 13:57:16 -04:00
|
|
|
case supported_versions
|
2010-06-17 19:58:09 -04:00
|
|
|
when Array
|
2010-07-09 13:57:16 -04:00
|
|
|
supported_versions.map { |version| version[:Version] }
|
2010-06-17 19:58:09 -04:00
|
|
|
when Hash
|
2010-07-09 13:57:16 -04:00
|
|
|
[ supported_versions[:Version] ]
|
2010-06-17 19:58:09 -04:00
|
|
|
end
|
2010-05-03 00:46:43 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def get_login_uri
|
|
|
|
check_versions
|
2010-07-09 13:57:16 -04:00
|
|
|
URI.parse case supported_versions
|
2010-06-17 19:58:09 -04:00
|
|
|
when Array
|
2010-07-09 13:57:16 -04:00
|
|
|
supported_versions.detect {|version| version[:Version] == @version }[:LoginUrl]
|
2010-06-17 19:58:09 -04:00
|
|
|
when Hash
|
2010-07-09 13:57:16 -04:00
|
|
|
supported_versions[:LoginUrl]
|
2010-06-17 19:58:09 -04:00
|
|
|
end
|
2010-05-03 00:46:43 -04:00
|
|
|
end
|
|
|
|
|
2010-07-22 22:56:29 -04:00
|
|
|
# If we don't support any versions the service does, then raise an error.
|
|
|
|
# If the @version that super selected isn't in our supported list, then select one that is.
|
2010-05-03 00:46:43 -04:00
|
|
|
def check_versions
|
2010-07-22 22:56:29 -04:00
|
|
|
if @version
|
|
|
|
unless supported_version_numbers.include?(@version.to_s)
|
|
|
|
raise UnsupportedVersion.new("#{@version} is not supported by the server.")
|
|
|
|
end
|
|
|
|
unless supporting_versions.include?(@version.to_s)
|
|
|
|
raise UnsupportedVersion.new("#{@version} is not supported by #{self.class}")
|
|
|
|
end
|
|
|
|
else
|
|
|
|
unless @version = (supported_version_numbers & supporting_versions).sort.first
|
|
|
|
raise UnsupportedVersion.new("\nService @ #{@versions_uri} supports: #{supported_version_numbers.join(', ')}\n" +
|
|
|
|
"#{self.class} supports: #{supporting_versions.join(', ')}")
|
|
|
|
end
|
2010-05-03 00:46:43 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Don't need to set the cookie for these or retry them if the cookie timed out
|
|
|
|
def unauthenticated_request(params)
|
|
|
|
do_request(params)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Use this to set the Authorization header for login
|
|
|
|
def authorization_header
|
|
|
|
"Basic #{Base64.encode64("#{@username}:#{@password}").chomp!}"
|
|
|
|
end
|
|
|
|
|
2010-07-22 23:54:16 -04:00
|
|
|
def login_uri
|
|
|
|
@login_uri ||= get_login_uri
|
|
|
|
end
|
|
|
|
|
2010-05-03 00:46:43 -04:00
|
|
|
# login handles the auth, but we just need the Set-Cookie
|
|
|
|
# header from that call.
|
|
|
|
def do_login
|
|
|
|
@login_results = login
|
|
|
|
@cookie = @login_results.headers['Set-Cookie']
|
|
|
|
end
|
|
|
|
|
|
|
|
# Actually do the request
|
|
|
|
def do_request(params)
|
2010-06-17 19:58:09 -04:00
|
|
|
# Convert the uri to a URI if it's a string.
|
2010-05-03 00:46:43 -04:00
|
|
|
if params[:uri].is_a?(String)
|
|
|
|
params[:uri] = URI.parse(params[:uri])
|
|
|
|
end
|
2010-06-17 19:58:09 -04:00
|
|
|
|
|
|
|
# Hash connections on the host_url ... There's nothing to say we won't get URI's that go to
|
|
|
|
# different hosts.
|
|
|
|
@connections[params[:uri].host_url] ||= Fog::Connection.new(params[:uri].host_url, @persistent)
|
|
|
|
|
|
|
|
# Set headers to an empty hash if none are set.
|
2010-05-03 00:46:43 -04:00
|
|
|
headers = params[:headers] || {}
|
2010-06-17 19:58:09 -04:00
|
|
|
|
|
|
|
# Add our auth cookie to the headers
|
2010-05-03 00:46:43 -04:00
|
|
|
if @cookie
|
|
|
|
headers.merge!('Cookie' => @cookie)
|
|
|
|
end
|
2010-06-17 19:58:09 -04:00
|
|
|
|
|
|
|
# Make the request
|
|
|
|
response = @connections[params[:uri].host_url].request({
|
|
|
|
:body => params[:body] || '',
|
|
|
|
:expects => params[:expects] || 200,
|
2010-05-03 00:46:43 -04:00
|
|
|
:headers => headers,
|
2010-06-17 19:58:09 -04:00
|
|
|
:method => params[:method] || 'GET',
|
2010-05-03 00:46:43 -04:00
|
|
|
:path => params[:uri].path
|
|
|
|
})
|
2010-06-17 19:58:09 -04:00
|
|
|
|
|
|
|
# Parse the response body into a hash
|
|
|
|
#puts response.body
|
|
|
|
unless response.body.empty?
|
|
|
|
if params[:parse]
|
|
|
|
document = Fog::ToHashDocument.new
|
|
|
|
parser = Nokogiri::XML::SAX::PushParser.new(document)
|
|
|
|
parser << response.body
|
|
|
|
parser.finish
|
|
|
|
|
|
|
|
response.body = document.body
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
response
|
2010-05-03 00:46:43 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-09-14 13:40:02 -04:00
|
|
|
class Mock
|
|
|
|
include Shared
|
|
|
|
|
2010-05-27 21:27:12 -04:00
|
|
|
def self.base_url
|
2010-05-27 17:17:59 -04:00
|
|
|
"https://fakey.com/api/v0.8"
|
|
|
|
end
|
|
|
|
|
2010-05-27 21:27:12 -04:00
|
|
|
def self.data_reset
|
|
|
|
@mock_data = nil
|
|
|
|
end
|
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
def self.data( base_url = self.base_url )
|
2010-05-27 21:27:12 -04:00
|
|
|
@mock_data ||=
|
|
|
|
{
|
|
|
|
:versions => [
|
|
|
|
{ :version => "v0.8", :login_url => "#{base_url}/login", :supported => true }
|
|
|
|
],
|
|
|
|
:vdc_resources => [
|
|
|
|
{
|
|
|
|
:type => "application/vnd.vmware.vcloud.vApp+xml",
|
|
|
|
:href => "#{base_url}/vapp/61",
|
|
|
|
:name => "Foo App 1"
|
2010-05-03 00:46:43 -04:00
|
|
|
},
|
2010-05-27 21:27:12 -04:00
|
|
|
{
|
|
|
|
:type => "application/vnd.vmware.vcloud.vApp+xml",
|
|
|
|
:href => "#{base_url}/vapp/62",
|
|
|
|
:name => "Bar App 1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
:type => "application/vnd.vmware.vcloud.vApp+xml",
|
|
|
|
:href => "#{base_url}/vapp/63",
|
|
|
|
:name => "Bar App 2"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
:organizations =>
|
|
|
|
[
|
|
|
|
{
|
|
|
|
:info => {
|
|
|
|
:href => "#{base_url}/org/1",
|
|
|
|
:name => "Boom Inc.",
|
2010-05-03 00:46:43 -04:00
|
|
|
},
|
2010-05-27 21:27:12 -04:00
|
|
|
:vdcs => [
|
2010-06-17 19:58:09 -04:00
|
|
|
|
2010-05-27 21:27:12 -04:00
|
|
|
{ :href => "#{base_url}/vdc/21",
|
2010-06-17 19:58:09 -04:00
|
|
|
:id => "21",
|
2010-05-27 21:27:12 -04:00
|
|
|
:name => "Boomstick",
|
2010-06-17 19:58:09 -04:00
|
|
|
:storage => { :used => "105", :allocated => "200" },
|
|
|
|
:cpu => { :allocated => "10000" },
|
|
|
|
:memory => { :allocated => "20480" },
|
2010-10-08 11:55:18 -04:00
|
|
|
:catalog => {
|
|
|
|
:name => "The catalog",
|
|
|
|
:items => [
|
2010-10-15 13:40:32 -04:00
|
|
|
{ :id => "0", :name => "Item 0", :disks => [{ :size => 25 }] },
|
2010-10-11 10:25:02 -04:00
|
|
|
{ :id => "1", :name => "Item 1" },
|
|
|
|
{ :id => "2", :name => "Item 2" },
|
2010-10-08 11:55:18 -04:00
|
|
|
]
|
|
|
|
},
|
2010-05-27 21:27:12 -04:00
|
|
|
:networks => [
|
2010-06-17 19:58:09 -04:00
|
|
|
{ :id => "31",
|
|
|
|
:href => "#{base_url}/network/31",
|
2010-05-27 21:27:12 -04:00
|
|
|
:name => "1.2.3.0/24",
|
|
|
|
:subnet => "1.2.3.0/24",
|
|
|
|
:gateway => "1.2.3.1",
|
|
|
|
:netmask => "255.255.255.0",
|
2010-06-08 21:39:00 -04:00
|
|
|
:dns => "8.8.8.8",
|
|
|
|
:features => [
|
2010-06-17 19:58:09 -04:00
|
|
|
{ :type => :FenceMode, :value => "isolated" }
|
2010-06-09 15:31:08 -04:00
|
|
|
],
|
|
|
|
:ips => { "1.2.3.3" => "Broom 1", "1.2.3.4" => "Broom 2", "1.2.3.10" => "Email" }
|
2010-05-27 21:27:12 -04:00
|
|
|
},
|
2010-06-17 19:58:09 -04:00
|
|
|
{ :id => "32",
|
|
|
|
:href => "#{base_url}/network/32",
|
2010-05-27 21:27:12 -04:00
|
|
|
:name => "4.5.6.0/24",
|
|
|
|
:subnet => "4.5.6.0/24",
|
|
|
|
:gateway => "4.5.6.1",
|
|
|
|
:netmask => "255.255.255.0",
|
2010-06-08 21:39:00 -04:00
|
|
|
:dns => "8.8.8.8",
|
|
|
|
:features => [
|
2010-06-17 19:58:09 -04:00
|
|
|
{ :type => :FenceMode, :value => "isolated" }
|
2010-06-09 15:31:08 -04:00
|
|
|
],
|
|
|
|
:ips => { }
|
2010-05-27 21:27:12 -04:00
|
|
|
},
|
|
|
|
],
|
|
|
|
:vms => [
|
|
|
|
{ :href => "#{base_url}/vap/41",
|
2010-10-15 13:40:32 -04:00
|
|
|
:name => "Broom 1",
|
|
|
|
:ip => "1.2.3.3",
|
|
|
|
:memory => 1024,
|
|
|
|
:cpus => 1,
|
|
|
|
:disks => [{ :size => 25 }]
|
2010-05-27 21:27:12 -04:00
|
|
|
},
|
|
|
|
{ :href => "#{base_url}/vap/42",
|
2010-10-15 13:40:32 -04:00
|
|
|
:name => "Broom 2",
|
|
|
|
:ip => "1.2.3.4"
|
2010-05-27 21:27:12 -04:00
|
|
|
},
|
|
|
|
{ :href => "#{base_url}/vap/43",
|
|
|
|
:name => "Email!"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{ :href => "#{base_url}/vdc/22",
|
2010-06-17 19:58:09 -04:00
|
|
|
:id => "22",
|
|
|
|
:storage => { :used => "40", :allocated => "150" },
|
|
|
|
:cpu => { :allocated => "1000" },
|
|
|
|
:memory => { :allocated => "2048" },
|
2010-05-27 21:27:12 -04:00
|
|
|
:name => "Rock-n-Roll",
|
|
|
|
:networks => [
|
2010-06-17 19:58:09 -04:00
|
|
|
{ :id => "33",
|
|
|
|
:href => "#{base_url}/network/33",
|
2010-05-27 21:27:12 -04:00
|
|
|
:name => "7.8.9.0/24",
|
|
|
|
:subnet => "7.8.9.0/24",
|
|
|
|
:gateway => "7.8.9.1",
|
2010-06-08 21:39:00 -04:00
|
|
|
:dns => "8.8.8.8",
|
2010-05-27 21:27:12 -04:00
|
|
|
:netmask => "255.255.255.0",
|
2010-06-08 21:39:00 -04:00
|
|
|
:features => [
|
2010-06-17 19:58:09 -04:00
|
|
|
{ :type => :FenceMode, :value => "isolated" }
|
2010-06-09 15:31:08 -04:00
|
|
|
],
|
|
|
|
:ips => { "7.8.9.10" => "Master Blaster" }
|
2010-05-27 21:27:12 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
:vms => [
|
2010-10-15 13:40:32 -04:00
|
|
|
{ :href => "#{base_url}/vapp/44",
|
2010-05-27 21:27:12 -04:00
|
|
|
:name => "Master Blaster"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
def vdc_from_uri(uri)
|
2010-05-27 21:27:12 -04:00
|
|
|
match = Regexp.new(%r:.*/vdc/(\d+):).match(uri.to_s)
|
2010-10-11 10:25:02 -04:00
|
|
|
match && vdc_from_id(match[1])
|
|
|
|
end
|
|
|
|
|
|
|
|
def vdc_from_id(id)
|
|
|
|
mock_data[:organizations].map { |org| org[:vdcs] }.flatten.detect { |vdc| vdc[:id] == id }
|
2010-05-27 21:27:12 -04:00
|
|
|
end
|
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
def ip_from_uri(uri)
|
2010-05-27 21:27:12 -04:00
|
|
|
match = Regexp.new(%r:.*/publicIp/(\d+):).match(uri.to_s)
|
|
|
|
if match
|
2010-06-17 19:58:09 -04:00
|
|
|
mock_data[:organizations].map { |org| org[:vdcs] }.flatten.map { |vdc| vdc[:public_ips] }.flatten.compact.detect { |public_ip| public_ip[:id] == match[1] }
|
2010-05-27 21:27:12 -04:00
|
|
|
end
|
|
|
|
end
|
2010-05-03 00:46:43 -04:00
|
|
|
|
2010-10-15 13:40:32 -04:00
|
|
|
def vapp_and_vdc_from_vapp_uri(uri)
|
|
|
|
if vdc = mock_data[:organizations].map {|o| o[:vdcs] }.flatten.detect {|vd| vd[:vms].detect {|vm| vm[:href] == uri } }
|
|
|
|
vapp = vdc[:vms].detect {|v| v[:href] == uri }
|
|
|
|
if vapp
|
|
|
|
[vapp, vdc]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def catalog_item_and_vdc_from_catalog_item_uri(uri)
|
|
|
|
catalog_item_id, vdc_id = uri.split("/").last.split("-")
|
|
|
|
vdc = vdc_from_id(vdc_id)
|
|
|
|
if vdc
|
|
|
|
catalog_item = vdc[:catalog][:items].detect {|ci| ci[:id] == catalog_item_id }
|
|
|
|
if catalog_item
|
|
|
|
[catalog_item, vdc]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-09-14 13:40:02 -04:00
|
|
|
def initialize(options = {})
|
2010-05-03 00:46:43 -04:00
|
|
|
@versions_uri = URI.parse('https://vcloud.fakey.com/api/versions')
|
|
|
|
end
|
|
|
|
|
2010-06-17 19:58:09 -04:00
|
|
|
def mock_it(status, mock_data, mock_headers = {})
|
2010-05-03 00:46:43 -04:00
|
|
|
response = Excon::Response.new
|
2010-06-17 19:58:09 -04:00
|
|
|
|
|
|
|
#Parse the response body into a hash
|
2010-06-29 17:11:35 -04:00
|
|
|
if mock_data.empty?
|
|
|
|
response.body = mock_data
|
|
|
|
else
|
|
|
|
document = Fog::ToHashDocument.new
|
|
|
|
parser = Nokogiri::XML::SAX::PushParser.new(document)
|
|
|
|
parser << mock_data
|
|
|
|
parser.finish
|
|
|
|
response.body = document.body
|
|
|
|
end
|
2010-06-17 19:58:09 -04:00
|
|
|
|
2010-05-03 00:46:43 -04:00
|
|
|
response.status = status
|
|
|
|
response.headers = mock_headers
|
|
|
|
response
|
|
|
|
end
|
|
|
|
|
|
|
|
def mock_error(expected, status, body='', headers={})
|
|
|
|
raise Excon::Errors::Unauthorized.new("Expected(#{expected}) <=> Actual(#{status})")
|
|
|
|
end
|
|
|
|
|
|
|
|
def mock_data
|
2010-05-27 21:27:12 -04:00
|
|
|
Fog::Vcloud::Mock.data
|
2010-05-03 00:46:43 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2010-09-14 13:40:02 -04:00
|
|
|
|
|
|
|
require 'fog/vcloud/terremark/ecloud'
|
2010-10-08 11:55:18 -04:00
|
|
|
require 'fog/vcloud/terremark/vcloud'
|