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:
commit
1f69d3689a
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue