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 <ca...@caius.name>
> On Jun 12, 2:45 pm, Caius Durling <ca...@caius.name> 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
> ca...@caius.name
> +44 (0) 7960 268 100
> http://caius.name/