This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
#March 9th 2011 | |
#fisrt pass at branch switch script | |
#author bob patterson <bob at bobpattersonjr dot com> | |
sub trim($); | |
print "fetching all branchs and tags\n"; | |
`sudo -H -u webmaster git fetch;sudo -H -u webmaster git fetch --tags`; | |
$new_branch = trim($ARGV[0]); | |
$non_branch_test = `sudo -H -u webmaster git branch|tr -d ' '|grep -x $new_branch`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |