Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.