lib/aptly_publish.rb in aptly_cli-0.2.7 vs lib/aptly_publish.rb in aptly_cli-0.2.8

- old
+ new

@@ -7,19 +7,19 @@ # :nodoc: class AptlyPublish 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" + @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 + 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 + debug_output $stdout if @config[:debug] == true @@available_gpg_options = [:skip, :batch, :gpgKey, :keyring, :secretKeyring, :passphrase, :passphraseFile] @@available_options_for_repo = [:distribution, :label, :origin, :forceoverwrite, :architectures]