Kentaro Hayashi
null+****@clear*****
Tue Apr 11 18:59:02 JST 2017
Kentaro Hayashi 2017-04-11 18:59:02 +0900 (Tue, 11 Apr 2017) New Revision: 752d75109c3bcd6b66a2b566fa147b1ca8373e54 https://github.com/groonga/fluent-plugin-groonga/commit/752d75109c3bcd6b66a2b566fa147b1ca8373e54 Message: out: simplify comfig_param style Modified files: lib/fluent/plugin/out_groonga.rb Modified: lib/fluent/plugin/out_groonga.rb (+1 -8) =================================================================== --- lib/fluent/plugin/out_groonga.rb 2017-04-11 18:22:23 +0900 (9728305) +++ lib/fluent/plugin/out_groonga.rb 2017-04-11 18:59:02 +0900 (18455d7) @@ -32,14 +32,7 @@ module Fluent super end - config_param :protocol, :default => :http do |value| - case value - when "http", "gqtp", "command" - value.to_sym - else - raise ConfigError, "must be http, gqtp or command: <#{value}>" - end - end + config_param :protocol, :enum, :list => [:http, :gqtp, :command], :default => :http # alias is just for backward compatibility config_param :store_table, :string, :default => nil, :alias => :table -------------- next part -------------- HTML����������������������������...Download