mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #942 from justanshulsharma/master
Updated ruby 1.9 hash syntax
This commit is contained in:
commit
85b090ab67
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ module Capistrano
|
||||||
['--roles ROLES', '-r',
|
['--roles ROLES', '-r',
|
||||||
"Filter command to only apply to these roles (separate multiple roles with a comma)",
|
"Filter command to only apply to these roles (separate multiple roles with a comma)",
|
||||||
lambda { |value|
|
lambda { |value|
|
||||||
Configuration.env.set(:filter, :roles => value.split(","))
|
Configuration.env.set(:filter, roles: value.split(","))
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
@ -79,7 +79,7 @@ module Capistrano
|
||||||
['--hosts HOSTS', '-z',
|
['--hosts HOSTS', '-z',
|
||||||
"Filter command to only apply to these hosts (separate multiple hosts with a comma)",
|
"Filter command to only apply to these hosts (separate multiple hosts with a comma)",
|
||||||
lambda { |value|
|
lambda { |value|
|
||||||
Configuration.env.set(:filter, :hosts => value.split(","))
|
Configuration.env.set(:filter, hosts: value.split(","))
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue