lib/minke/tasks/fetch.rb in minke-1.11.8 vs lib/minke/tasks/fetch.rb in minke-1.11.9
- old
+ new
@@ -7,14 +7,13 @@
puts '### Install gems'
rvm = "#{ENV['HOME']}/.rvm/scripts/rvm"
rvm_root = '/usr/local/rvm/scripts/rvm'
- rvm_installed = File.exist?(rvm)
- rvm_root_installed = File.exist?(rvm_root)
+ rvm_installed = @shell_helper.exist?(rvm)
+ rvm_root_installed = @shell_helper.exist?(rvm_root)
- gemset = File.open('.ruby-gemset', 'rb') { |file| file.read }
- gemset = gemset.strip
+ gemset = @shell_helper.read_file '.ruby-gemset'
puts "Using gemset #{gemset}"
rvm_command = "source #{rvm} && rvm gemset use #{gemset} && " if rvm_installed
rvm_command = "source #{rvm_root} && rvm gemset use #{gemset} && " if rvm_root_installed