Not my blog post; and I used to use that cleanup code but its slow, and gets  
linearly slower the more hosts you are deploying to so I eventually took it 
out. The default handling is good enough. 

But I've used that pattern a number of times to accomplish other things like 
for each server enumerate the ip of an eth interface then push down a specific 
file that matched that ip to that specific host. (This was to push down IPSec 
tunnel configurations that were tied to the private interfaces not the public 
ones that I was sshing to via cap, so the internal ips were unknown to cap ergo 
the per server enumeration)

On Feb 14, 2013, at 8:22 AM, Jonathan Rochkind <[email protected]> wrote:

> Neat i had been wondering how to do that too-- but also, that blog post 
> specifically suggests an improvement to the built in cleanup task, donovan 
> did you ever or can you pull request this improvement for inclusion in cap 
> distro, instead of it just sitting out on a blog post?
> ________________________________________
> From: [email protected] [[email protected]] on behalf of 
> Donovan Bray [[email protected]]
> Sent: Thursday, February 14, 2013 11:13 AM
> To: [email protected]
> Subject: Re: [capistrano] Re: Handling shell script prompts while calling 
> shell on remote machine
> 
> You can have a conversation and response per server by using the underlying 
> net ssh subsystem.
> 
> I avoid doing this like the plague but in some situations it's impossible to 
> do it any other way.
> 
> The following blog post presents a pattern that I've used a number of times 
> to do things similar to what you want to do.
> 
> http://blog.perplexedlabs.com/2010/09/08/improved-deploycleanup-for-capistrano/
> 
> 
> On Feb 13, 2013, at 5:56 PM, Eddie Du 
> <[email protected]<mailto:[email protected]>> wrote:
> 
> I would like to know as well!
> 
> I'm writing some install scripts with some prompts - I thought 
> default_run_options[:pty] = true is suppose to solve this but it didn't.
> 
> On Wednesday, May 25, 2011 1:34:11 PM UTC-4, Pawan wrote:
> Hi All,
> 
> I am using cap to call a push a script to remote which further
> downloads another script from http link which can contain any number
> of parameter prompt. But by running cap, the prompt waits, and if i
> enter value and click enter, it does not move to next.
> 
> Is there any way to make this user interactive.
> 
> 
> Thanks
> Pawan
> 
> --
> --
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to 
> [email protected]<mailto:[email protected]>
> * To unsubscribe from this group, send email to 
> [email protected]<mailto:[email protected]>
>  For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en
> ---
> 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 
> [email protected]<mailto:[email protected]>.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 
> --
> --
> * 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
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> -- 
> * 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
> --- 
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
-- 
* 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
--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to