Skip to content

Commit

Permalink
Add underscore to original sounds folder and build feature into jakef…
Browse files Browse the repository at this point in the history
…ile to ignore .dotfiles and folders with underscores.
  • Loading branch information
Mauvis Ledford committed May 30, 2012
1 parent b9da69e commit c96227b
Show file tree
Hide file tree
Showing 24 changed files with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions Jakefile
Expand Up @@ -470,8 +470,13 @@ function listFilesRecursive(sourceDir){
var filesToCheck = fs.readdirSync(sourceDir); var filesToCheck = fs.readdirSync(sourceDir);
for(var i = 0; i < filesToCheck.length; i++) { for(var i = 0; i < filesToCheck.length; i++) {
var filePath = platformProofPath(sourceDir + filesToCheck[i]); var filePath = platformProofPath(sourceDir + filesToCheck[i]);
// Ignore hidden dot files and _underscore folders.
if (filePath.match(/^\..+|\/\..+/) || filePath.match(/.+\/_.+/) ){
continue;
}
var currFile = fs.lstatSync(filePath); var currFile = fs.lstatSync(filePath);
if(currFile.isDirectory()) { if(currFile.isDirectory()) {
console.log('filePath', filePath);
files = files.concat(listFilesRecursive(filePath+'/')); files = files.concat(listFilesRecursive(filePath+'/'));
} else { } else {
files.push(sourceDir+filesToCheck[i]); files.push(sourceDir+filesToCheck[i]);
Expand Down Expand Up @@ -782,23 +787,11 @@ namespace('deploy', function () {
execLog("ssh " + QA_SERVER_USER + "@" + QA_SERVER_IP + " './bin/" + QA_DEPLOY_SCRIPT + "'"); execLog("ssh " + QA_SERVER_USER + "@" + QA_SERVER_IP + " './bin/" + QA_DEPLOY_SCRIPT + "'");
}); });


desc('Update QA env to latest codebase in stable');
task('qa-stable', [], function(params) {
console.log('Deploying stable to ' + APP_QA_DOMAIN + '...');
execLog("ssh " + QA_SERVER_USER + "@" + QA_SERVER_IP + " './bin/deploy-qa-from-stable.sh'");
});

desc('Update prod env to latest codebase in master'); desc('Update prod env to latest codebase in master');
task('prod', [], function(params) { task('prod', [], function(params) {
console.log('Deploying to ' + APP_DOMAIN + '...'); console.log('Deploying to ' + APP_DOMAIN + '...');
execLog("ssh " + PROD_SERVER_USER + "@" + PROD_SERVER_IP + " './bin/" + PROD_DEPLOY_SCRIPT + "'"); execLog("ssh " + PROD_SERVER_USER + "@" + PROD_SERVER_IP + " './bin/" + PROD_DEPLOY_SCRIPT + "'");
}); });

desc('Update prod env to latest codebase in stable');
task('prod-stable', [], function(params) {
console.log('Deploying stable to ' + APP_DOMAIN + '...');
execLog("ssh " + PROD_SERVER_USER + "@" + PROD_SERVER_IP + " './bin/deploy-prod-from-stable.sh'");
});
}); });


/****************/ /****************/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed src/sounds/random/originals/all.wav
Binary file not shown.
Binary file removed src/sounds/random/originals/applause.wav
Binary file not shown.
Binary file removed src/sounds/random/originals/cheering.wav
Binary file not shown.
Binary file removed src/sounds/random/originals/fanfare.wav
Binary file not shown.
Binary file removed src/sounds/random/originals/mmmm.wav
Binary file not shown.
Binary file removed src/sounds/random/whahwhah.wav
Binary file not shown.
Binary file removed src/sounds/random/woow.wav
Binary file not shown.

0 comments on commit c96227b

Please sign in to comment.