lib/maestrano/connec/client.rb in maestrano-0.12.3 vs lib/maestrano/connec/client.rb in maestrano-0.12.4
- old
+ new
@@ -55,9 +55,12 @@
def put(relative_path, body, options = {})
self.class.put(self.scoped_path(relative_path),
default_options.merge(body: body.to_json).merge(options)
)
end
+
+ def batch(body, options = {})
+ self.class.post("#{Maestrano[self.class.preset].param('connec.host')}/batch", default_options.merge(body: body.to_json).merge(options))
+ end
end
-
end
end
\ No newline at end of file