Sha256: 335bb1653656b3d8b2cd22d056ef787e89bb3618a941201aa51ec2bdede060fa

Contents?: true

Size: 469 Bytes

Versions: 10

Compression:

Stored size: 469 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,
      :target => @targets.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/global_forwarding_rules_factory.rb
fog-google-0.5.5 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.5.4 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.5.3 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.5.2 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.5.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.5.0 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.4.2 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.4.1 test/integration/factories/global_forwarding_rules_factory.rb
fog-google-0.4.0 test/integration/factories/global_forwarding_rules_factory.rb