Skip to content

Commit

Permalink
fix tapkick example to deploy specific revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Haering committed Jan 7, 2012
1 parent bec41ed commit 8ad368a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions example/stacks/tapkick.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ exports.get_deployedRevision = function(args, callback) {


exports.task_deploy = function(stack, baton, args, callback) {
var cmd = ['git', 'pull', 'origin', 'master'],
opts = {cwd: stack.config.tapkick_dir, env: process.env};
var opts = {cwd: stack.config.tapkick_dir, env: process.env};

misc.taskSpawn(baton, args, cmd, opts, function(err, stdout, stderr) {
if (!err) {
baton.log.info('ran git pull');
async.series([
function fetch(callback) {
misc.taskSpawn(baton, args, ['git', 'fetch'], opts, callback);
},

function checkout(callback) {
misc.taskSpawn(baton, args, ['git', 'checkout', args.revision], opts, callback);
}
callback(err);
});
], callback);
};

exports.targets = {
Expand Down

0 comments on commit 8ad368a

Please sign in to comment.