1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloud/terremark/ecloud/models/vdcs.rb
Edward Muller 61155040e1 Internet Services and tweaks to Vcloud collection/model.
configure internet service

flesh out internet services a bit more

more tweaks to vcloud collection/model related stuff

remove debugging
2010-06-11 01:52:58 +08:00

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