class Koma::HostInventory

Constants

DISABLED_KEYS
EXTRA_KEYS

Public Class Methods

all_inventory_keys() click to toggle source
# File lib/koma/host_inventory.rb, line 10
def self.all_inventory_keys
  Specinfra::HostInventory::KEYS + EXTRA_KEYS
end
disabled_keys() click to toggle source
# File lib/koma/host_inventory.rb, line 14
def self.disabled_keys
  DISABLED_KEYS
end
inventory_keys() click to toggle source
# File lib/koma/host_inventory.rb, line 6
def self.inventory_keys
  Specinfra::HostInventory::KEYS + EXTRA_KEYS - DISABLED_KEYS
end

Public Instance Methods

each() { |k, self| ... } click to toggle source
# File lib/koma/host_inventory.rb, line 18
def each
  inventory_keys.each do |k|
    yield k, self[k]
  end
end
each_key() { |k| ... } click to toggle source
# File lib/koma/host_inventory.rb, line 24
def each_key
  inventory_keys.each do |k|
    yield k
  end
end
each_value() { |self| ... } click to toggle source
# File lib/koma/host_inventory.rb, line 30
def each_value
  inventory_keys.each do |k|
    yield self[k]
  end
end