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

Revert "Merge pull request #967 from rosenfeld/patch-1"

This reverts commit 1f69d3689a, reversing
changes made to a0dccd88e6.
This commit is contained in:
Lee Hambley 2014-04-15 13:13:12 +02:00
parent 2e5be9d11e
commit 09aa370362

View file

@ -45,8 +45,11 @@ module Capistrano
def release_roles(*names)
options = { exclude: :no_release }
options.merge! names.pop if names.last.is_a? Hash
names << options
if names.last.is_a? Hash
names.last.merge(options)
else
names << options
end
roles(*names)
end