Sha256: 0124aa5f4fec2bdda886eb4ed9592df435441768614c9bc9d00c3a4438ecd6ff

Contents?: true

Size: 462 Bytes

Versions: 15

Compression:

Stored size: 462 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.self_link }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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