Created
January 17, 2013 00:46
-
-
Save colinrymer/4552509 to your computer and use it in GitHub Desktop.
bootstrap script for Primedia IDG setup
This file contains 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
require 'fileutils' | |
include FileUtils | |
puts "\n\n------------------------------------------" | |
puts" Welcome to the IDG installation process." | |
puts "------------------------------------------\n\n" | |
print "Please enter your GitHub username:" | |
github_username = gets.chomp! | |
install_dir = "/tmp/idg_installation" | |
rm_rf install_dir | |
mkdir install_dir | |
`curl -u #{github_username} -L https://api.github.com/repos/primedia/idg/tarball | tar zx -C #{install_dir} --strip-components=1` | |
cd install_dir | |
puts `bin/idg install` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment