Skip to content

Commit

Permalink
Fix project_dir default setting in cloud9 & redis plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed May 31, 2011
1 parent 0f71342 commit 5e351e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/cloud9.js
Expand Up @@ -10,7 +10,7 @@ module.exports = function(settings){
}
var shell = settings.shell;
// Default settings
settings.workspace = settings.workspace || shell.project_dir;
settings.workspace = settings.workspace || shell.set('project_dir');
if(!settings.workspace){
throw new Error('No workspace provided');
}
Expand Down Expand Up @@ -89,7 +89,7 @@ module.exports = function(settings){
},500);
});
shell.cmd('cloud9 stop', 'Stop Cloud9', function(req, res, next) {
if(!shell.isShell || settings.detach){
if(!shell.isShell || settings.detach || !cloud9){
var pidfile = settings.pidfile || '/tmp/cloud9.pid';
var pid = fs.readFileSync(pidfile);
var cmds = [];
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/redis.js
Expand Up @@ -13,7 +13,7 @@ module.exports = function(settings){
}
var shell = settings.shell;
// Default settings
settings.workspace = settings.workspace || shell.project_dir;
settings.workspace = settings.workspace || shell.set('project_dir');
// Register commands
var redis;
shell.on('exit', function() {
Expand Down

0 comments on commit 5e351e5

Please sign in to comment.