Sha256: 5e9fb46f6882b51bdc153240790de23043c8ea6e182cee6f7ee26586a9c3b3c1
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
include Specinfra::Helper::Set class Koma::Backend::Base attr_reader :host, :options def initialize(host, options) @host = host @options = options end def out(key = nil) out = {} keys = if key.nil? inventory_keys else key.split(',') end keys.each do |k| begin out[k] = Specinfra.backend.host_inventory[k] out[k] = Specinfra.backend.host_inventory[k].inspect if k == 'ec2' rescue NotImplementedError out[k] = nil end end out end def inventory_keys Specinfra::HostInventory.inventory_keys end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
koma-0.6.0 | lib/koma/backend/base.rb |
koma-0.5.0 | lib/koma/backend/base.rb |