Sha256: e63479279870cc321d317a32e1a1069a0882e4a13b012d4a8e8ab6f127ab229b

Contents?: true

Size: 579 Bytes

Versions: 43

Compression:

Stored size: 579 Bytes

Contents

class Vcloud
  module Compute
    module TestSupport
      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
      end
    end

    module Formats
    end
  end
end

Version data entries

43 entries across 41 versions & 6 rubygems

Version Path
fog-2.3.0 tests/vcloud/models/compute/helper.rb
fog-ifeel-2.2.0 tests/vcloud/models/compute/helper.rb
fog-2.2.0 tests/vcloud/models/compute/helper.rb
fog-2.1.0 tests/vcloud/models/compute/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/vcloud/models/compute/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/vcloud/models/compute/helper.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/vcloud/models/compute/helper.rb
fog-1.42.1 tests/vcloud/models/compute/helper.rb
fog-2.0.0 tests/vcloud/models/compute/helper.rb
fog-1.42.0 tests/vcloud/models/compute/helper.rb
fog-1.41.0 tests/vcloud/models/compute/helper.rb
fog-1.40.0 tests/vcloud/models/compute/helper.rb
fog-1.39.0 tests/vcloud/models/compute/helper.rb
fog-1.38.0 tests/vcloud/models/compute/helper.rb
fog-1.37.0 tests/vcloud/models/compute/helper.rb
fog-1.36.0 tests/vcloud/models/compute/helper.rb
fog-1.35.0 tests/vcloud/models/compute/helper.rb
fog-2.0.0.pre.0 tests/vcloud/models/compute/helper.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/vcloud/models/compute/helper.rb
fog-1.34.0 tests/vcloud/models/compute/helper.rb