Class/Module Index [+]

Quicksearch

HammerCLIForeman::Fact::ListCommand

Public Class Methods

unhash_facts(facts_collection) click to toggle source
# File lib/hammer_cli_foreman/fact.rb, line 21
def self.unhash_facts(facts_collection)
  facts = facts_collection.first.inject([]) do |list, (host, facts)|
    list + facts.collect do |(fact, value)|
      { :host => host, :fact => fact, :value => value }
    end
  end
  HammerCLI::Output::RecordCollection.new(facts, :meta => facts_collection.meta)
end

Public Instance Methods

send_request() click to toggle source
# File lib/hammer_cli_foreman/fact.rb, line 17
def send_request
  self.class.unhash_facts(super)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.