Sha256: d051b6f57e27b223547422314c60b7c9d063e4c1c39243279136ba172fb007da
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aptly_cli-0.2.8 | lib/aptly_package.rb |