Permalink
Browse files

custom handler for exposing actions

  • Loading branch information...
1 parent 2eee579 commit 80530ee5152ee8ec1f3c111dabd07f7c65557ca5 @substack committed Feb 9, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 index.js
  2. +1 −1 package.json
View
@@ -192,7 +192,7 @@ Propagit.prototype.createService = function (remote, conn) {
return service;
};
-Propagit.prototype.drone = function () {
+Propagit.prototype.drone = function (fn) {
var self = this;
mkdirp(self.deploydir);
@@ -321,6 +321,7 @@ Propagit.prototype.drone = function () {
};
actions.id = (Math.random() * Math.pow(16,8)).toString(16);
+ if (typeof fn === 'function') fn.call(self, actions);
function onup (remote) {
remote.register('drone', actions);
@@ -330,7 +331,6 @@ Propagit.prototype.drone = function () {
self.hub.once('up', onup);
});
-
return self;
};
View
@@ -1,7 +1,7 @@
{
"name" : "propagit",
"description" : "cascading multi-server git deployment",
- "version" : "0.2.0",
+ "version" : "0.3.0",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/propagit.git"

0 comments on commit 80530ee

Please sign in to comment.