Class: DataMapper::Adapters::PuppetdbAdapter
- Inherits:
-
AbstractAdapter
- Object
- AbstractAdapter
- DataMapper::Adapters::PuppetdbAdapter
- Defined in:
- lib/dm-puppetdb-adapter/adapter.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#http ⇒ Object
Returns the value of attribute http.
-
#port ⇒ Object
Returns the value of attribute port.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
11 12 13 |
# File 'lib/dm-puppetdb-adapter/adapter.rb', line 11 def host @host end |
#http ⇒ Object
Returns the value of attribute http.
11 12 13 |
# File 'lib/dm-puppetdb-adapter/adapter.rb', line 11 def http @http end |
#port ⇒ Object
Returns the value of attribute port.
11 12 13 |
# File 'lib/dm-puppetdb-adapter/adapter.rb', line 11 def port @port end |
#ssl ⇒ Object
Returns the value of attribute ssl.
11 12 13 |
# File 'lib/dm-puppetdb-adapter/adapter.rb', line 11 def ssl @ssl end |
Instance Method Details
#read(query) ⇒ Object
13 14 15 16 17 |
# File 'lib/dm-puppetdb-adapter/adapter.rb', line 13 def read(query) model = query.model query.filter_records(puppetdb_get(model.storage_name(model.repository_name), build_query(query))) end |