Class: AptlyCli::AptlyMisc
- Inherits:
-
AptlyCommand
- Object
- AptlyCommand
- AptlyCli::AptlyMisc
- Includes:
- HTTParty
- Defined in:
- lib/aptly_misc.rb
Overview
Misc Aptly Class
Instance Attribute Summary
Attributes inherited from AptlyCommand
Instance Method Summary collapse
Methods inherited from AptlyCommand
#delete, #get, #initialize, #post, #process_response, #put
Constructor Details
This class inherits a constructor from AptlyCli::AptlyCommand
Instance Method Details
#get_graph(extension) ⇒ Object
12 13 14 15 |
# File 'lib/aptly_misc.rb', line 12 def get_graph(extension) uri = "/graph.#{extension}" get(uri) end |
#get_version ⇒ Object
17 18 19 20 21 |
# File 'lib/aptly_misc.rb', line 17 def get_version uri = '/version' response = get(uri) response.parsed_response end |