# File lib/boxgrinder-build/plugins/delivery/libvirt/libvirt-capabilities.rb, line 30 def initialize(name, bus, virt_rank) @name = name @bus = bus @virt_rank = virt_rank.freeze @virt_map = virt_rank.enum_for(:each_with_index).inject({}) do |accum, (virt, rank)| accum.merge(virt => rank) end end
# File lib/boxgrinder-build/plugins/delivery/libvirt/libvirt-capabilities.rb, line 39 def <=>(other) self.name <=> other.name end