Sha256: 3da56620e82bc245cfb9fb93d81d2d381211f63993303a8d964396c8d169c223

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 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}"
      get(uri)
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aptly_cli-0.6.1 lib/aptly_misc.rb
aptly_cli-0.6.0 lib/aptly_misc.rb