Navigation Menu

Skip to content

Commit

Permalink
Output result of system.status as a JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 15, 2015
1 parent aceb71f commit a1c5fbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/droonga-system-status
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a1c5fbf

Please sign in to comment.