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

- old
+ new

@@ -7,10 +7,10 @@ # Aplty class to work with Repo API class AptlyRepo 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" + 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