Permalink
Browse files

Added support to request path "/drones/running" from the remote cli.

  • Loading branch information...
1 parent b6567a1 commit 224e1adb4b56643617fedf177b418207dd8aaba6 flybyme committed Oct 29, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 node.js/lib/client/drone.js
@@ -32,6 +32,19 @@ Drone.prototype.get = function (name, callback) {
});
};
+
+
+//
+// ### function get (callback)
+// #### @callback {function} Continuation to pass control back to when complete.
+// Gets the data about all the drones on the hive.
+//
+Drone.prototype.running = function(callback) {
+ this._request('/drones/running', callback, function(res, result) {
+ callback(null, result);
+ });
+};
+
//
// ### function start (app, callback)
// #### @app {Object} Application to start on the Haibu server.

0 comments on commit 224e1ad

Please sign in to comment.