Module: PuppetRestClient::DB::Connection::Facts

Included in:
PuppetRestClient::DB::Connection
Defined in:
lib/puppet-rest/db/connection/facts.rb

Instance Method Summary collapse

Instance Method Details

#facts(name) ⇒ Object



4
5
6
7
8
# File 'lib/puppet-rest/db/connection/facts.rb', line 4

def facts(name)
  get(api_path("facts/#{name}")).map {|fact|
    PuppetRestClient::DB::Fact.get_or_new fact
  }
end