Kouhei Sutou
null+****@clear*****
Thu Aug 28 10:27:37 JST 2014
Kouhei Sutou 2014-08-28 10:27:37 +0900 (Thu, 28 Aug 2014) New Revision: 4768cb9d8350f5cd61f4391a62ad2245fd15118b https://github.com/long-long-float/droonga-engine/commit/4768cb9d8350f5cd61f4391a62ad2245fd15118b Merged 5be18f3: Merge branch 'master' of github.com:droonga/droonga-engine Merged 15fc80d: Merge branch 'master' of github.com:droonga/droonga-engine Message: Add missing parenthesis to method calls Modified files: bin/droonga-engine-join Modified: bin/droonga-engine-join (+5 -5) =================================================================== --- bin/droonga-engine-join 2014-08-27 18:45:49 +0900 (5f065f6) +++ bin/droonga-engine-join 2014-08-28 10:27:37 +0900 (9e98e21) @@ -51,8 +51,8 @@ begin :default => Droonga::CatalogGenerator::DEFAULT_TAG) end rescue Slop::MissingOptionError => e - STDERR.puts e - exit -1 + STDERR.puts(e) + exit(-1) end joining_node = "#{options[:host]}:#{options[:port]}/#{options[:tag]}" @@ -65,7 +65,7 @@ def run_remote_command(target, command, options) result[:response] end -puts "Joining new replica to the cluster..." +puts("Joining new replica to the cluster...") run_remote_command(joining_node, "join", "node" => joining_node, "type" => "replica", @@ -85,12 +85,12 @@ while true break unless absorbing end -puts "Update existing hosts in the cluster..." +puts("Update existing hosts in the cluster...") run_remote_command(source_node, "add_replicas", "dataset" => options[:dataset], "hosts" => [options[:host]]) -puts "Done." +puts("Done.") exit(true) -------------- next part -------------- HTML����������������������������... Télécharger