1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/compute/models/vcloud/helper.rb

20 lines
471 B
Ruby
Raw Normal View History

2011-05-30 23:24:42 -04:00
class Vcloud
module Compute
module TestSupport
def self.template
begin
template_name = ENV['VCLOUD_TEMPLATE']
raise unless template_name
uri = Vcloud.catalogs.first.catalog_items.select {|ci| ci.name == template_name }[0].href
raise unless uri
rescue
raise('Specify VApp template name in VCLOUD_TEMPLATE env var')
end
uri
2011-05-30 23:24:42 -04:00
end
end
module Formats
end
end
end