Sha256: 89a1862321e9620cafa000f17a950f780dde1d6528f23c619e08b7ddce6306ca

Contents?: true

Size: 499 Bytes

Versions: 41

Compression:

Stored size: 499 Bytes

Contents

require "integration/factories/collection_factory"
require "integration/factories/target_http_proxies_factory"

class GlobalForwardingRulesFactory < CollectionFactory
  def initialize(example)
    @targets = TargetHttpProxiesFactory.new(example)
    super(Fog::Compute[:google].global_forwarding_rules, example)
  end

  def cleanup
    super
    @targets.cleanup
  end

  def params
    { :name => resource_name,
      :port_range => "80-80",
      :target => @targets.create.self_link }
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fog-google-1.24.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.24.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.23.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.22.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.21.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.21.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.20.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.19.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.18.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.17.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.16.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.16.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.15.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.14.0 test/integration/factories/global_forwarding_rules_factory.rb
gitlab-fog-google-1.14.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.13.0 test/integration/factories/global_forwarding_rules_factory.rb
gitlab-fog-google-1.13.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.12.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.12.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.11.0 test/integration/factories/global_forwarding_rules_factory.rb