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