Skip to content

Instantly share code, notes, and snippets.

@asanghi
Created October 11, 2010 14:41
Show Gist options
  • Save asanghi/620612 to your computer and use it in GitHub Desktop.
Save asanghi/620612 to your computer and use it in GitHub Desktop.
#----------------------------------------------------------------------------
# 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