1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Merge pull request #930 from mpapis/bugfix/gh_issue_915

Make sure deploying? method is available beofre testing it, fix #915
This commit is contained in:
Lee Hambley 2014-04-15 12:16:22 +02:00
commit 1c6776fe2d

View file

@ -29,7 +29,7 @@ module Capistrano
end
def exit_because_of_exception(ex)
if deploying?
if respond_to?(:deploying?) && deploying?
exit_deploy_because_of_exception(ex)
else
super