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