Permalink
Browse files

Merge pull request #942 from justanshulsharma/master

Updated ruby 1.9 hash syntax
  • Loading branch information...
2 parents 4c62998 + f9913f4 commit 85b090ab67799cb6b860b513721a7bfa5bd16a30 @leehambley leehambley committed Feb 25, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/application.rb
@@ -70,7 +70,7 @@ def roles
['--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 @@ def hostfilter
['--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

0 comments on commit 85b090a

Please sign in to comment.