Sha256: a811f8914a759784c8fa86dd38aabd7a3a503d243e01db16e778445bcc815956

Contents?: true

Size: 488 Bytes

Versions: 10

Compression:

Stored size: 488 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,
      :region => TEST_REGION,
      :target => @target_pools.create.self_link }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-google-0.6.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.5.5 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.5.4 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.5.3 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.5.2 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.5.1 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.5.0 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.4.2 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.4.1 test/integration/factories/forwarding_rules_factory.rb
fog-google-0.4.0 test/integration/factories/forwarding_rules_factory.rb