Sure, I pushed your suggested change. Agreed that it's nicer this way.


On Tue, Oct 15, 2013 at 7:32 PM, Nathan Broadbent
<notifications@github.com>wrote:

> In lib/capistrano/recipes/deploy_lock.rb:
>
> > @@ -121,8 +121,15 @@ def remove_deploy_lock
> >          next
> >        end
> >
> > +      stg = nil
> > +      begin
> > +        stg = stage
>
> Could you please use respond_to?(:stage) instead?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ndbroadbent/capistrano_deploy_lock/pull/2/files#r6988636>
> .
>