Skip to content

Instantly share code, notes, and snippets.

@colinrymer
Created January 17, 2013 00:46
Show Gist options
  • Save colinrymer/4552509 to your computer and use it in GitHub Desktop.
Save colinrymer/4552509 to your computer and use it in GitHub Desktop.
bootstrap script for Primedia IDG setup
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