Caius, Why not use the capistrano built-in "deploy:pending" to show you what's pending....
before "deploy" do deploy.pending return false unless Capistrano::CLI.ui.ask "Really deploy, or do you wanna try a push first?" ~= /continue/ end that way anyone that's using his deploy script benefits from the same sanity check? 2009/6/12 Caius <[email protected]> > > On Jun 12, 2:45 pm, Caius Durling <[email protected]> wrote: > > > > Turns out its not that hard, figured it might save others a moment of > > confusion in the future too: <http://pastie.textmate.org/509601> > > > > And predictably as soon as I posted that I saw a bug in the code. It > would only ever run `cap deploy` no matter what you passed to cap if > it was deploying. > > Updated (and fixed) version at <http://gist.github.com/128644> > > > C > --- > Caius Durling > [email protected] > +44 (0) 7960 268 100 > http://caius.name/ > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NWRUG" 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/nwrug-members?hl=en -~----------~----~----~----~------~----~------~--~---
