2011-05-31 13:24:42 +10:00
|
|
|
class Vcloud
|
|
|
|
module Compute
|
|
|
|
module TestSupport
|
2011-07-20 12:11:10 -05:00
|
|
|
|
|
|
|
if Fog.mocking?
|
|
|
|
def self.template
|
|
|
|
'mock_template'
|
|
|
|
end
|
|
|
|
else
|
|
|
|
def self.template
|
|
|
|
template_name = ENV['VCLOUD_TEMPLATE']
|
|
|
|
raise "Specify VApp template name in VCLOUD_TEMPLATE env var" unless template_name
|
|
|
|
template_res = Vcloud.catalogs.item_by_name template_name
|
|
|
|
raise "URI Not found for specified template - check template name" unless template_res
|
|
|
|
template_res.href
|
|
|
|
end
|
2011-05-31 13:24:42 +10:00
|
|
|
end
|
2011-07-20 12:11:10 -05:00
|
|
|
|
2011-05-31 13:24:42 +10:00
|
|
|
end
|
2011-07-20 12:11:10 -05:00
|
|
|
|
2011-05-31 13:24:42 +10:00
|
|
|
module Formats
|
|
|
|
end
|
2011-07-20 12:11:10 -05:00
|
|
|
|
2011-05-31 13:24:42 +10:00
|
|
|
end
|
|
|
|
end
|