Skip to content

Instantly share code, notes, and snippets.

@orta
Created September 6, 2011 11:05
Show Gist options
  • Save orta/1197277 to your computer and use it in GitHub Desktop.
Save orta/1197277 to your computer and use it in GitHub Desktop.
Install your own copy of WibbleQuest
#!/usr/bin/ruby
def log(bit)
puts "\033[35m#{bit} \033[0m"
end
log "Creating a new Wibble project."
log "What folder would you like to put it in?"
folder = gets.chomp
Dir.mkdir folder
Dir.chdir folder
`git init`
log "Adding remote for wibblequest project, you can update the framework anytime by typing 'git pull wibble master'"
`git remote add wibble git://github.com/orta/WibbleQuest.git`
`git pull wibble master`
`git submodule init`
`git submodule update`
log "If you have your repo set up already paste in the URL here"
remote_origin = gets.chomp
if remote_origin.length > 0
`git remote add origin #{remote_origin}`
`git push origin master`
end
log "Done! Enjoy."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment