# File lib/boxgrinder-build/plugins/delivery/libvirt/libvirt-capabilities.rb, line 47 def initialize(name, domain_rank) @name = name @domain_map = domain_rank.enum_for(:each_with_index).inject({}) do |accum, (domain, rank)| accum.merge(domain.name => {:domain => domain, :rank => rank}) end @domain_map.freeze @domain_rank = domain_rank.freeze end
# File lib/boxgrinder-build/plugins/delivery/libvirt/libvirt-capabilities.rb, line 56 def <=>(other) self.name <=> other.name end