Sha256: 61ec546ae7cabfe9f95b6f45edfa45c43e7419c4c19ac0f0a47d456ce4d987f3

Contents?: true

Size: 550 Bytes

Versions: 15

Compression:

Stored size: 550 Bytes

Contents

require "integration/factories/collection_factory"
require "integration/factories/disks_factory"

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

  def cleanup
    # Disk cleanup sometimes fails if server deletion has not been completed
    super(false)
    @disks.cleanup
  end

  def params
    { :name => resource_name,
      :zone => TEST_ZONE,
      :machine_type => TEST_MACHINE_TYPE,
      :disks => [@disks.create] }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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