Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Request running drones. #3

Merged
merged 2 commits into from Nov 6, 2012
Jump to file or symbol
Failed to load files and symbols.
+13 −0
Split
@@ -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.