Lee:

OK, put your suggested code in my Capfile, which now looks like this:

    load 'deploy' if respond_to?(:namespace)
    Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin|
load(plugin) }

    load 'config/deploy'


    def :remote_env do
        puts capture("env")
        puts capture("which git")
    end

I tried running this from the command line using $ cap remote_env
and got various syntax error messages:

   Capfile:9:in 'load': compile error (SyntaxError)
   Capfile:6: syntax error, unexpected kDO, expecting '\n' or ';'
   Capfile:9 syntax error, unexpected kEND, expecting $end

I tried taking out the : before remove_env, got similar error
messages. I tried adding an extra end (don't the 'do' and the 'def'
both need 'end' statements to close them off?) and experienced similar
issues.

Tried to eliminate typing errors as the reason... did I parse your
code incorrectly?

Thanks...

--Dean

On Mar 14, 2:37 pm, Lee Hambley <[email protected]> wrote:
> Dean, quick debuging task, try this:
>
> def :remote_env do
>   puts capture("env")
>   puts capture("which git")
> end
>
> Put that in your capfile, and run with `cap remote_env` - examine the output
> and see if you get any clues!
>
> - Lee

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to