lib/aptly_misc.rb in aptly_cli-0.4.2 vs lib/aptly_misc.rb in aptly_cli-0.5.0
- old
+ new
@@ -1,22 +1,23 @@
require 'aptly_cli/version'
require 'aptly_command'
require 'aptly_load'
-require 'httmultiparty'
+require 'httparty'
require 'json'
module AptlyCli
# Misc Aptly Class
class AptlyMisc < AptlyCommand
- include HTTMultiParty
+ include HTTParty
def get_graph(extension)
uri = "/graph.#{extension}"
self.class.get(uri)
end
def get_version
uri = '/version'
- self.class.get(uri)
+ response = self.class.get(uri)
+ response.parsed_response
end
end
end