Sha256: d63b045aef2ab8556aa29721c7361f0ae393ba292216c362aa9e6feda91183d6

Contents?: true

Size: 452 Bytes

Versions: 14

Compression:

Stored size: 452 Bytes

Contents

require "integration/factories/collection_factory"
require "integration/factories/servers_factory"

class TargetInstancesFactory < CollectionFactory
  def initialize(example)
    @servers = ServersFactory.new(example)
    super(Fog::Compute[:google].target_instances, example)
  end

  def cleanup
    super
    @servers.cleanup
  end

  def params
    { :name => resource_name,
      :zone => TEST_ZONE,
      :instance => @servers.create }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 test/integration/factories/target_instances_factory.rb
fog-google-0.5.5 test/integration/factories/target_instances_factory.rb
fog-google-0.5.4 test/integration/factories/target_instances_factory.rb
fog-google-0.5.3 test/integration/factories/target_instances_factory.rb
fog-google-0.5.2 test/integration/factories/target_instances_factory.rb
fog-google-0.5.1 test/integration/factories/target_instances_factory.rb
fog-google-0.5.0 test/integration/factories/target_instances_factory.rb
fog-google-0.4.2 test/integration/factories/target_instances_factory.rb
fog-google-0.4.1 test/integration/factories/target_instances_factory.rb
fog-google-0.4.0 test/integration/factories/target_instances_factory.rb
fog-google-0.3.2 test/integration/factories/target_instances_factory.rb
fog-google-0.3.1 test/integration/factories/target_instances_factory.rb
fog-google-0.3.0 test/integration/factories/target_instances_factory.rb
fog-google-0.2.0 test/integration/factories/target_instances_factory.rb