Sha256: ca642412cf6fe7163d5aa7f05ef662dd4b1925fb921b59f941bc9134f6df60b1
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
module Animal module Plugins module Inventory # The Facter integration inventory plugin mock-up class Fact < InventoryPlugin def self.get(node, key) data = { 'dschaaff' => { 'certname' => 'dschaaff.local', 'machine_class' => 'server', 'os' => 'ubuntu' }, 'jgnagy' => { 'certname' => 'jgnagy.local', 'machine_class' => 'server', 'os' => 'darwin', 'awesome' => true } } data.key?(node) && data[node].key?(key) ? data[node][key] : nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
animal-0.2.2 | lib/animal/plugins/inventory/fact.rb |