lib/aptly_file.rb in aptly_cli-0.2.8 vs lib/aptly_file.rb in aptly_cli-0.2.9

- old
+ new

@@ -8,10 +8,10 @@ include HTTMultiParty attr_accessor :file_uri, :package, :local_file_path # 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" + base_uri "#{@config[:proto]}://#{@config[:server]}:#{@config[:port]}/api" if @config[:username] if @config[:password] basic_auth @config[:username].to_s, @config[:password].to_s end