lib/pah/partials/_gems.rb in pah-0.0.9 vs lib/pah/partials/_gems.rb in pah-0.0.10
- old
+ new
@@ -1,7 +1,16 @@
-puts "Adding Gemfile... ".magenta
+puts "Setting up bundler and installing bundled gems (may take a while) ... ".magenta
copy_static_file 'Gemfile'
+in_root do
+ # Since the gemset is likely empty, manually install bundler so it can install the rest
+ run "gem install bundler --no-ri --no-rdoc"
+
+ # Install all other gems needed from Gemfile
+ run "bundle install"
+end
+
git :add => 'Gemfile'
-git :commit => "-qm 'Adding Gemfile.'"
-puts "\n"
+git :add => 'Gemfile.lock'
+git :commit => "-qm 'Add Gemfile and Gemfile.lock.'"
+puts "\n"
\ No newline at end of file