I have a Capistrano deploy file (Capfile) that is rather large,
contains a few namespaces and generally has a lot of information
already in it. My ultimate goal is, using the Tinder gem, paste the
output of the entire deployment into Campfire. I have Tinder setup
properly already.

I looked into using the Capistrano capture method, but that only works
for the first host. Additionally that would be a lot of work to go
through and add something like:

output << capture 'foocommand'

Specifically, I am looking to capture the output of any deployment
from that file into a variable (in addition to putting it to STDOUT so
I can see it), then pass that output in the variable into a function
called notify_campfire. Since the notify_campfire function is getting
called at the end of a task (every task regardless of the namespace),
it should have the task name available to it and the output (which is
stored in that output variable). Any thoughts on how to accomplish
this would be greatly appreciated.

It would be great if there was a patch that I could add to capture the
entire output (to $stdout or $stderr) and then at the end of the task
do this:
    room.speak "Deploying #{task} ..."
    room.paste "#{msg}\n"
    room.speak "Completed #{task}"

Is this possible?

(Full disclosure): I have already posted this question on
StackOverflow (http://stackoverflow.com/questions/2611628/redirect-
output-of-capistrano) , but haven't yet received an answer.

-- 
* 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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to