Sha256: c0760598e37893bc0ee9a5fdaab07df5a86820f12261e368258fc7465e6dfc2f

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'aptly_cli/version'
require 'aptly_command'
require 'aptly_load'
require 'httparty'
require 'json'

module AptlyCli
  # Misc Aptly Class
  class AptlyMisc < AptlyCommand
    include HTTParty

    def get_graph(extension)
      uri = "/graph.#{extension}"
      self.class.get(uri)
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aptly_cli-0.5.0 lib/aptly_misc.rb