On Thursday, 26 February 2015 17:51:50 UTC+1, Lee Hambley wrote:
>
> I'd suggest to use the `capture()` api to `capture(:pwd)`, and use Ruby's 
> `File.join()` APIs (or, just concatenate the strings) to build the command 
> to test for.
>

hi Lee,

just for the records: it is possible to give a list to test(), so that 
  if test "[ -d .git ]"
could also be written as
if test('[ ', '-d', '.git ]' )
resulting in expected behaviour (within-dir is used).

regards, Ruud

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capistrano+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/8bdb3ab1-01ff-4a25-8437-c4c2d5855cef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to