Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added some callbacks for spawning

  • Loading branch information...
commit cff97465c70fce5f6c7720afa677508919a1fcc3 1 parent b17d3ab
@substack authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 index.js
  2. +1 −1  package.json
View
6 index.js
@@ -203,7 +203,7 @@ Propagit.prototype.createService = function (remote, conn) {
drones.forEach(function (drone) {
self.emit('spawn', drone.id, opts);
drone.spawn(opts, function () {
- if (--pending === 0) cb();
+ if (--pending === 0) cb(null, drone.id);
});
});
};
@@ -321,7 +321,7 @@ Propagit.prototype.drone = function (fn) {
}, {}));
};
- actions.spawn = function (opts) {
+ actions.spawn = function (opts, cb) {
var repo = opts.repo;
var commit = opts.commit;
var dir = path.join(self.deploydir, repo + '.' + commit);
@@ -362,6 +362,8 @@ Propagit.prototype.drone = function (fn) {
self.emit('spawn', id, opts);
})();
+
+ cb();
};
actions.id = (Math.random() * Math.pow(16,8)).toString(16);
View
2  package.json
@@ -1,7 +1,7 @@
{
"name" : "propagit",
"description" : "cascading multi-server git deployment",
- "version" : "0.4.2",
+ "version" : "0.4.3",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/propagit.git"
Please sign in to comment.
Something went wrong with that request. Please try again.