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

Merge pull request #967 from rosenfeld/patch-1

Don't ignore options passed to release_roles.
This commit is contained in:
Lee Hambley 2014-04-15 12:13:01 +02:00
commit 1f69d3689a

View file

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