Sha256: d0405613145c2e88f68229ce59beedd569ddcf915ace662c45af417e13d9658a
Contents?: true
Size: 666 Bytes
Versions: 26
Compression:
Stored size: 666 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 get(identity) @subject.get(identity, TEST_ZONE) end def all @subject.all(zone: TEST_ZONE) end def params { :name => resource_name, :zone => TEST_ZONE, :machine_type => TEST_MACHINE_TYPE, :disks => [@disks.create] } end end
Version data entries
26 entries across 26 versions & 2 rubygems