I am testing rake file upload, running well rcp in a terminal
scp -v -P 666 -q /Users/kadoudal/musicians.xml
[EMAIL PROTECTED]:httpdocs/var/www/html/jazz_people
but when running from the rake file
publisher = Rake::SshFilePublisher.new( "kadoudal@ mydomain.com", "/
httpdocs/var/www/html/jazz_people",
File.dirname(__FILE__), t.prerequisites.first)
publisher.upload
I get an error, which quite normal as I should precise the port 666
ok solved this issue with a patch in rake/contrib/sshpublisher.rb
# Upload the local directory to the remote directory on non-standard
port
def upload_port(port=22)
@files.each do |fn|
sh %{scp -P #{port} -q [EMAIL PROTECTED]/#{fn}
[EMAIL PROTECTED]:[EMAIL PROTECTED]
end
end
now I can do publisher.upload_port(666)
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel