I suspect that's breaking because your line break is inside a quoted
string...and capistrano's escaping is too naive to understand that.
You could put the command in a script and execute the script, thereby
foiling cap's escaping logic.
- Jamis
On Apr 10, 2008, at 10:23 AM, Brian Hartin
I'd like to keep my task definitions within deploy.rb, if possible. I
can open the Command class in deploy.rb, if need be.
In what situation would we want the '\\\', anyway? a\\\b gets
changed to:
a\
b
Would I break anything by changing \\\n to \\n in Command#process!
Thanks for your help,
The escaping is there so that commands like this:
run(-CMD)
if [ some_condition ];
then
do_something
do_another_thing
fi
CMD
Get translated into a single line and passed through to the remote
host correctly. I'm pretty sure there are tests for that case, so if
Thanks!
On Apr 10, 12:36 pm, Jamis Buck [EMAIL PROTECTED] wrote:
The escaping is there so that commands like this:
run(-CMD)
if [ some_condition ];
then
do_something
do_another_thing
fi
CMD
Get translated into a single line and passed through to the
The easiest method turns out to be just double-escaping my strings,
e.g. a\\nb to get a\nb in the remote command.
On Apr 10, 12:36 pm, Jamis Buck [EMAIL PROTECTED] wrote:
The escaping is there so that commands like this:
run(-CMD)
if [ some_condition ];
then