YUKI Hiroshi
null+****@clear*****
Wed Apr 15 15:54:32 JST 2015
YUKI Hiroshi 2015-04-15 15:54:32 +0900 (Wed, 15 Apr 2015) New Revision: a1c5fbfbbaa2150777349e260740b7a5110ad6c8 https://github.com/droonga/droonga-client-ruby/commit/a1c5fbfbbaa2150777349e260740b7a5110ad6c8 Message: Output result of system.status as a JSON Modified files: bin/droonga-system-status Modified: bin/droonga-system-status (+3 -1) =================================================================== --- bin/droonga-system-status 2015-04-15 15:52:12 +0900 (570f0d2) +++ bin/droonga-system-status 2015-04-15 15:54:32 +0900 (83b91b2) @@ -15,6 +15,8 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +require "json" + require "droonga/command/base" module Droonga @@ -24,7 +26,7 @@ module Droonga parse_options response = client.request("dataset" => @options[:dataset], "type" => "system.status") - puts response["body"] + puts(JSON.generate(response["body"])) exit(true) end end -------------- next part -------------- HTML����������������������������...Download