Created
October 11, 2010 14:41
-
-
Save asanghi/620612 to your computer and use it in GitHub Desktop.
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
#---------------------------------------------------------------------------- | |
# Gems | |
#---------------------------------------------------------------------------- | |
puts "=" * 80 | |
puts "Setup Gemfile" | |
puts "=" * 80 | |
remove_file "Gemfile" | |
create_file "Gemfile" | |
gem 'faker' | |
#---------------------------------------------------------------------------- | |
# Setup RVM | |
#---------------------------------------------------------------------------- | |
which_ruby = ask("Which rvm Ruby do you want to use?\r\n\r\n=>") | |
puts "=" * 80 | |
puts "Setup RVM" | |
puts "=" * 80 | |
run "rvm use #{which_ruby}; rvm gemset create #{app_name}; rvm use #{which_ruby}@#{app_name}; rvmsudo gem install rake bundler" | |
create_file ".rvmrc", <<-RVM | |
rvm use #{which_ruby}@#{app_name} | |
RVM | |
#---------------------------------------------------------------------------- | |
# Bundle Gems | |
#---------------------------------------------------------------------------- | |
puts "=" * 80 | |
puts "Bundle Gems" | |
puts "=" * 80 | |
inside app_name do | |
run "bundle install" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment