class BoxGrinder::LibvirtCapabilities::Plugin

Attributes

domain_map[RW]
domain_rank[RW]
name[RW]

Public Class Methods

new(name, domain_rank) click to toggle source
# 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

Public Instance Methods

<=>(other) click to toggle source
# File lib/boxgrinder-build/plugins/delivery/libvirt/libvirt-capabilities.rb, line 56
def <=>(other)
 self.name <=> other.name
end