Permalink
Browse files

Merge pull request #3 from MangoRaft/master

Request running drones.
  • Loading branch information...
2 parents 4d24078 + 2e25baa commit b84cb1de1556ca0998d7b554fcbb7a786f4b42e1 @mmalecki mmalecki committed Nov 6, 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 running (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 b84cb1d

Please sign in to comment.