Skip to content

Commit

Permalink
Merge pull request #105 from pirog/69-ssh-git
Browse files Browse the repository at this point in the history
#69: Start the SSH Agent and load keyz if there
  • Loading branch information
pirog committed Jul 30, 2014
2 parents cdd8569 + 734a256 commit d075230
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .kalabox/uuid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kala.b8ea6fe2ba50f2868c9b9da24bcd5fdf.box
13 changes: 12 additions & 1 deletion kalabox/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ exports.startBox = flow('startBox')(
});
}, 5000);
},
function startBox3() {
var that = this;
// Start the SSH Agent
exec('VAGRANT_CWD=' + KALASTACK_DIR + ' vagrant ssh -c "eval $(ssh-agent)"', that.next());
},
function startBox4() {
var that = this;
// Add any keys that we have
exec('VAGRANT_CWD=' + KALASTACK_DIR + ' vagrant ssh -c "drush php-eval \'_terminatur_keys();\'"', this.async());
that.next();
},
function startBoxEnd() {
// Restart status checking.
statusChecker = setInterval(repeatStatusCheck, 10000);
Expand Down Expand Up @@ -414,4 +425,4 @@ var checkReady = flow('checkReady')(
}
this.next();
}
);
);

0 comments on commit d075230

Please sign in to comment.