Sha256: 1bca08235059cb4a544d0c62df6d506994f3df138d45a9075d6ad9820f312e98

Contents?: true

Size: 582 Bytes

Versions: 107

Compression:

Stored size: 582 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

107 entries across 107 versions & 17 rubygems

Version Path
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/vcloud/models/compute/helper.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
fog-1.3.1 tests/vcloud/models/compute/helper.rb
fog-1.3.0 tests/vcloud/models/compute/helper.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
fog-1.2.0 tests/vcloud/models/compute/helper.rb
ktheory-fog-1.1.2 tests/vcloud/models/compute/helper.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
fog-1.1.2 tests/vcloud/models/compute/helper.rb
fog_tractical-1.1.4 tests/vcloud/models/compute/helper.rb
fog_tractical-1.1.3 tests/vcloud/models/compute/helper.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
fog-1.1.1 tests/vcloud/models/compute/helper.rb
fog-1.1.0 tests/vcloud/models/compute/helper.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/tests/vcloud/models/compute/helper.rb
tag-fog-1.0.1 tests/vcloud/models/compute/helper.rb