Class: AptlyCli::AptlyMisc

Inherits:
AptlyCommand show all
Includes:
HTTParty
Defined in:
lib/aptly_misc.rb

Overview

Misc Aptly Class

Instance Attribute Summary

Attributes inherited from AptlyCommand

#config

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_versionObject



17
18
19
20
21
# File 'lib/aptly_misc.rb', line 17

def get_version
  uri = '/version'
  response = get(uri)
  response.parsed_response
end