Skip to content

Instantly share code, notes, and snippets.

@jamster
Created November 18, 2008 19:19
Show Gist options
  • Save jamster/26218 to your computer and use it in GitHub Desktop.
Save jamster/26218 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Author Jason Amster
# 11/18/08
app_name = ARGV[0]
if ARGV.length > 0
puts "Creating new Rails/Bort App #{app_name}"
else
puts "Please name your Bort app"
exit
end
BORT_REPO = 'git@github.com:jamster/bort.git'
puts "Pulling BORT from #{BORT_REPO} "
`git clone #{BORT_REPO}`
`mv bort #{app_name}`
puts "Removing .git"
`rm -rf #{app_name}/.git`
#TODO
#Check for Rails 2.2 somewhere on the system.
#Either way, you have have rails 2.2 somewhere... min is in /rails/versions/v2.2.0
puts "Adding Rails 2.2"
`ln -nfs /rails/versions/v2.2.0 #{app_name}/vendor/rails`
puts "Gitify this app"
`cd #{app_name};git init; git add *; git commit -m "First Commit"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment