YUKI Hiroshi
null+****@clear*****
Tue Mar 24 16:25:53 JST 2015
YUKI Hiroshi 2015-03-24 16:25:53 +0900 (Tue, 24 Mar 2015) New Revision: 26addd6635b7792fc1c8a11a7e6f89783b388f0b https://github.com/droonga/droonga-engine/commit/26addd6635b7792fc1c8a11a7e6f89783b388f0b Message: Store verbose option for Serf::Command correctly Modified files: lib/droonga/serf/command.rb Modified: lib/droonga/serf/command.rb (+3 -2) =================================================================== --- lib/droonga/serf/command.rb 2015-03-24 16:20:14 +0900 (139df7a) +++ lib/droonga/serf/command.rb 2015-03-24 16:25:53 +0900 (88682d0) @@ -23,13 +23,11 @@ module Droonga class Command class Failure < Error attr_reader :command_line, :exit_status, :output, :error - attr_accessor :verbose def initialize(command_line, exit_status, output, error) @command_line = command_line @exit_status = exit_status @output = output @error = error - @verbose = false message = "Failed to run serf: (#{@exit_status}): " message << "#{@error.strip}[#{@output.strip}]: " message << @command_line.join(" ") @@ -39,10 +37,13 @@ module Droonga include Loggable + attr_accessor :verbose + def initialize(serf, command, *options) @serf = serf @command = command @options = options + @verbose = false end def run -------------- next part -------------- HTML����������������������������... Download