mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
15 lines
493 B
Ruby
15 lines
493 B
Ruby
class Vcloud
|
|
module Compute
|
|
module TestSupport
|
|
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.first.catalog_items.select {|ci| ci.name == template_name }[0]
|
|
raise "URI Not found for specified template - check template name" unless template_res
|
|
template_res.href
|
|
end
|
|
end
|
|
module Formats
|
|
end
|
|
end
|
|
end
|