Skip to content
Browse files

Added ADDITIONAL_PACKAGES and ADDITIONAL_GEMS functionality.

  • Loading branch information...
1 parent bef779c commit b818de90d17c9c25f73c98fb517f92627bb10d5e @marcelomurad committed
Showing with 10 additions and 2 deletions.
  1. +10 −2 rails-env-install.sh
View
12 rails-env-install.sh
@@ -3,11 +3,17 @@
#Developed by Marcelo Murad - email at marcelomurad dot com
#You can redistribute it and/or modify it under either the terms of the GPL (http://www.gnu.org/licenses/gpl-3.0.txt)
+#separated by space
+ADDITIONAL_PACKAGES="mc"
+ADDITIONAL_GEMS="rspec"
+
sudo apt-get update
sudo apt-get install -y ssh ruby ruby1.8-dev ruby-pkg-tools rdoc ri irb sqlite3 libopenssl-ruby libsqlite3-ruby sqlitebrowser
-sudo apt-get install wget
+sudo apt-get install -y wget
+
+sudo apt-get install -y $ADDITIONAL_PACKAGES
mkdir temp_install_rails_env
@@ -21,4 +27,6 @@ sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
-sudo gem install rails
+sudo gem install rails -no-ri -no-rdoc
+
+sudo gem install $ADDITIONAL_GEMS

0 comments on commit b818de9

Please sign in to comment.
Something went wrong with that request. Please try again.