Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Created February 10, 2011 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krainboltgreene/820094 to your computer and use it in GitHub Desktop.
Save krainboltgreene/820094 to your computer and use it in GitHub Desktop.
sh "mkdir " + project_name
case type
when :sinatra
sh "create " + project_name
end
sh "cd " + project_name
sh "git init"
sh "git remote add origin git@github.com:krainboltgreene/" + project_name + ".git"
sh "create"
sh "rvm --create --rvm 1.9.2@" + project_name
sh "tmuxinator open " + project_name
projmgr_entry = <<DOC
#{project_name}:
name: #{project_name.split('-').map(&:upcase).join(' ')}
path: ~/repo/rb/#{project_name}
type: git
url: git@github.com:krainboltgreene/#{project_name}.git"
DOC
sh "vim ~/.projmgr"
sh "cp ~/.Gemfile ./Gemfile && vim Gemfile"
sh "gem install bundle && bundle install"
sh "add ."
sh "update -m 'Initial commit'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment