Sha256: fe8f4b9e973c6db926d530727a5cc1942059dd24cab35627f285ee14a307bca5

Contents?: true

Size: 459 Bytes

Versions: 9

Compression:

Stored size: 459 Bytes

Contents

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

module AptlyCli
  class AptlyPackage

    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 package_show(package_key)
      uri = "/packages/#{package_key}"
      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_package.rb
aptly_cli-0.1.8 lib/aptly_package.rb
aptly_cli-0.1.7 lib/aptly_package.rb
aptly_cli-0.1.6 lib/aptly_package.rb
aptly_cli-0.1.5 lib/aptly_package.rb
aptly_cli-0.1.4 lib/aptly_package.rb
aptly_cli-0.1.3 lib/aptly_package.rb
aptly_cli-0.1.2 lib/aptly_package.rb
aptly_cli-0.1.1 lib/aptly_package.rb