mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
471 B
Ruby
19 lines
471 B
Ruby
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
|
|
end
|
|
end
|
|
module Formats
|
|
end
|
|
end
|
|
end
|