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/vcloud.rb
geemus 1049171c27 [terremark|vcloud] deprecate 0.8
deprecate 0.8 vcloud-ish terremark
would revisit with from-scratchish vcloud 1.0
2011-01-11 17:08:11 -08:00

39 lines
1.1 KiB
Ruby

module Fog
class Vcloud
module Terremark
class Vcloud < Fog::Vcloud
request_path 'fog/vcloud/terremark/vcloud/requests'
request :get_vdc
class Real < Fog::Vcloud::Real
def initialize(options = {})
location = caller.first
warning = "[yellow][WARN] Fog::Vcloud::Terremark::Vcloud is deprecated, to be replaced with Vcloud 1.0 someday/maybe[/]"
warning << " [light_black](" << location << ")[/] "
Formatador.display_line(warning)
super
end
def supporting_versions
["0.8", "0.8a-ext1.6"]
end
end
class Mock < Fog::Vcloud::Mock
def initialize(options = {})
location = caller.first
warning = "[yellow][WARN] Fog::Vcloud::Terremark::Vcloud is deprecated, to be replaced with Vcloud 1.0 someday/maybe[/]"
warning << " [light_black](" << location << ")[/] "
Formatador.display_line(warning)
super
end
end
end
end
end
end