Sha256: 18d15ee190fbbaa264e5495302aa8500ac5953c51ace8625291854a23ce38041
Contents?: true
Size: 424 Bytes
Versions: 6
Compression:
Stored size: 424 Bytes
Contents
module Dcmgr module PhysicalHostScheduler # This is a simple host scheduler which gets back a host found # at the top of hosts list. class FindLast def assign_to_instance(hosts, instance) Dcmgr::logger.debug "assign to instance (%d hosts)" % hosts.length p 'hosts' p hosts return hosts.last raise NoPhysicalHostError.new("can't assign physical host") end end end end
Version data entries
6 entries across 6 versions & 2 rubygems