lib/acouchi/solo.rb in acouchi-0.0.11 vs lib/acouchi/solo.rb in acouchi-0.0.12
- old
+ new
@@ -135,9 +135,12 @@
def call_method name, arguments = []
arguments = arguments.map {|a| a.to_s}
options = { :body => {:parameters => arguments.to_json} }
response = HTTParty.post("http://127.0.0.1:#{@configuration.port}/execute_method/#{name}", options)
json = JSON.parse(response.body, :max_nesting => 100)
+
+ puts json
+
if json.empty?
nil
else
json["result"]
end