mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
![Edward Muller](/assets/img/avatar_default.png)
configure internet service flesh out internet services a bit more more tweaks to vcloud collection/model related stuff remove debugging
31 lines
784 B
Ruby
31 lines
784 B
Ruby
module Fog
|
|
module Vcloud
|
|
module Terremark
|
|
module Ecloud
|
|
module Mock
|
|
def vdcs(options = {})
|
|
@vdcs ||= Fog::Vcloud::Terremark::Ecloud::Vdcs.new(options.merge(:connection => self))
|
|
end
|
|
end
|
|
|
|
module Real
|
|
def vdcs(options = {})
|
|
@vdcs ||= Fog::Vcloud::Terremark::Ecloud::Vdcs.new(options.merge(:connection => self))
|
|
end
|
|
end
|
|
|
|
class Vdcs < Fog::Vcloud::Vdcs
|
|
|
|
undef_method :create
|
|
|
|
model Fog::Vcloud::Terremark::Ecloud::Vdc
|
|
|
|
#get_request :get_vdc
|
|
#vcloud_type "application/vnd.vmware.vcloud.vdc+xml"
|
|
#all_request lambda { |vdcs| vdcs.connection.get_organization(vdcs.organization_uri) }
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|