lib/minke/tasks/fetch.rb in minke-1.11.5 vs lib/minke/tasks/fetch.rb in minke-1.11.6

- old
+ new

@@ -10,11 +10,15 @@ rvm_root = '/usr/local/rvm/scripts/rvm' rvm_installed = File.exist?(rvm) rvm_root_installed = File.exist?(rvm_root) - rvm_command = "source #{rvm} && " if rvm_installed - rvm_command = "source #{rvm_root} && " if rvm_root_installed + gemset = File.open('.ruby-gemset', 'rb') { |file| file.read } + + puts "Using gemset #{gemset}" + + rvm_command = "source #{rvm} && rvm use #{gemset} && " if rvm_installed + rvm_command = "source #{rvm_root} && rvm use #{gemset} && " if rvm_root_installed @shell_helper.execute("/bin/bash -c '#{rvm_command}bundle install -j3 && bundle update'") puts '### Install generator dependencies'