From f9913f4e33f458cb1984c6cdac6ed982243069f9 Mon Sep 17 00:00:00 2001 From: Anshul Sharma Date: Tue, 25 Feb 2014 22:46:49 +0530 Subject: [PATCH] Updated ruby 1.9 hash syntax --- lib/capistrano/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capistrano/application.rb b/lib/capistrano/application.rb index a7640762..973cd8bf 100644 --- a/lib/capistrano/application.rb +++ b/lib/capistrano/application.rb @@ -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