1
0
Fork 0
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:
Lee Hambley 2014-02-25 18:55:17 +01:00
commit 85b090ab67

View file

@ -70,7 +70,7 @@ module Capistrano
['--roles ROLES', '-r',
"Filter command to only apply to these roles (separate multiple roles with a comma)",
lambda { |value|
Configuration.env.set(:filter, :roles => value.split(","))
Configuration.env.set(:filter, roles: value.split(","))
}
]
end
@ -79,7 +79,7 @@ module Capistrano
['--hosts HOSTS', '-z',
"Filter command to only apply to these hosts (separate multiple hosts with a comma)",
lambda { |value|
Configuration.env.set(:filter, :hosts => value.split(","))
Configuration.env.set(:filter, hosts: value.split(","))
}
]
end