btw, where is define of File.read()? I search all the doc and code,
and can't found the definition.
I am a freshman to ruby, there are many obstacles to run Capistrano .
If you're on Windows, then yeah, that's the problem. I've fixed this
bug in the latest preview release, and I hope to release cap 2.1 final
"soon".
> btw, where is define of File.read()? I search all the doc and code,
> and can't found the definition.
It's a standard Ruby method, defined in the Ruby sources themselves.
- Jamis
thanks!
maybe it is my fault, I use the code like this.
put(File.read("#{tar_file}"), "#{tar_file}")
Is there other way to upload file to remote server?
body = File.open(tar_file, "rb") { |f| f.read }
put(body, tar_file)
- Jamis
thanks!