Sha256: 13117a37a7a67c7338b33b28c95559807c856d6fe22d7a9b867689d763f738be

Contents?: true

Size: 518 Bytes

Versions: 15

Compression:

Stored size: 518 Bytes

Contents

require "integration/factories/collection_factory"
require "integration/factories/target_pools_factory"

class ForwardingRulesFactory < CollectionFactory
  def initialize(example)
    @target_pools = TargetPoolsFactory.new(example)
    super(Fog::Compute[:google].forwarding_rules, example)
  end

  def cleanup
    super
    @target_pools.cleanup
  end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fog-google-1.7.1 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.7.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.6.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.5.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.4.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.3.3 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.3.2 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.3.1 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.3.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.2.2 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.2.1 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.2.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.1.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.0.1 test/integration/factories/forwarding_rules_factory.rb
fog-google-1.0.0 test/integration/factories/forwarding_rules_factory.rb