Sha256: 454e993f6a65628f6a48b50d196a3f2acb1b29532228b628c912279cc0e82bd1

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 Bytes

Contents

require "aptly_cli/version"
require "aptly_load"
require "httmultiparty"
require "json"

module AptlyCli
  class AptlyMisc

    include HTTMultiParty

    # Load aptly-cli.conf and establish base_uri
    config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
    base_uri "http://#{config[:server]}:#{config[:port]}/api"

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

    def get_version()
      uri = "/version"
      self.class.get(uri)
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
aptly_cli-0.1.9 lib/aptly_misc.rb
aptly_cli-0.1.8 lib/aptly_misc.rb
aptly_cli-0.1.7 lib/aptly_misc.rb
aptly_cli-0.1.6 lib/aptly_misc.rb
aptly_cli-0.1.5 lib/aptly_misc.rb
aptly_cli-0.1.4 lib/aptly_misc.rb
aptly_cli-0.1.3 lib/aptly_misc.rb
aptly_cli-0.1.2 lib/aptly_misc.rb
aptly_cli-0.1.1 lib/aptly_misc.rb