Sha256: 084113067d4cc6086b4fcc18fc8324ccec3cb1e94a2cf44538f60cce7f69b4e4
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
require 'aptly_cli/version' require 'aptly_load' require 'httmultiparty' require 'json' module AptlyCli # Aptly Package API 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" if config[:username] if config[:password] basic_auth config[:username].to_s, config[:password].to_s end end debug_output $stdout if config[:debug] == true def package_show(package_key) uri = "/packages/#{package_key}" self.class.get(uri) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aptly_cli-0.2.7 | lib/aptly_package.rb |
aptly_cli-0.2.6 | lib/aptly_package.rb |