Hello everyone, Here is my first patch for buildr. I hope that many more are coming :)
-- Marc-André LAVERDIÈRE "Perseverance must finish its work so that you may be mature and complete, not lacking anything." -James 1:4 http://asimplediscipleslife.blogspot.com/ mlaverd.theunixplace.com
From 5cb64c157f9a44a8f79c6c9d76fdf3a57e66ca80 Mon Sep 17 00:00:00 2001 From: Marc-Andre Laverdiere <[email protected]> Date: Fri, 6 May 2011 12:03:57 +0530 Subject: [PATCH] Changed transports.rb to force password authentication only. --- lib/buildr/core/transports.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/buildr/core/transports.rb b/lib/buildr/core/transports.rb index d87a3be..7311231 100644 --- a/lib/buildr/core/transports.rb +++ b/lib/buildr/core/transports.rb @@ -392,7 +392,7 @@ module URI def read(options = {}, &block) # SSH options are based on the username/password from the URI. - ssh_options = { :port=>port, :password=>password }.merge(options[:ssh_options] || {}) + ssh_options = { :port=>port, :password=>password, :auth_methods=>'password'}.merge(options[:ssh_options] || {}) ssh_options[:password] ||= SFTP.passwords[host] begin trace "Connecting to #{host}" @@ -433,7 +433,7 @@ module URI def write_internal(options, &block) #:nodoc: # SSH options are based on the username/password from the URI. - ssh_options = { :port=>port, :password=>password }.merge(options[:ssh_options] || {}) + ssh_options = { :port=>port, :password=>password, :auth_methods=>'password'}.merge(options[:ssh_options] || {}) ssh_options[:password] ||= SFTP.passwords[host] begin trace "Connecting to #{host}" -- 1.7.4.1
