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.10.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.9.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.9.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.8.2 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.8.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.8.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.7.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.7.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.6.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.5.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.4.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.3.3 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.3.2 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.3.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.3.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.2.2 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.2.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.2.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.1.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-1.0.1 test/integration/factories/global_forwarding_rules_factory.rb