lib/bin_install/ruby/rvm.rb in bin_install-0.0.26 vs lib/bin_install/ruby/rvm.rb in bin_install-0.0.27

- old
+ new

@@ -4,26 +4,30 @@ INSTALL = '\curl -sSL https://get.rvm.io | bash'.freeze def self.install puts 'Installing RVM...'.white system(INSTALL) + system('source ~/.rvm/scripts/rvm') install_ruby end def self.install! puts 'Installing RVM...'.white BinInstall.system!(INSTALL) + BinInstall.system!('source ~/.rvm/scripts/rvm') install_ruby! end def self.install_ruby(version = Ruby.required_ruby_version) puts "Installing Ruby #{version}...".white if version if Ruby.ruby_version_installed?(version) puts "Ruby #{version} is already installed. Skipping Ruby #{version} install.".blue else - system("rvm install #{version}") + result = system("rvm install #{version}") + ap 'result 1' + ap result system("rvm use #{version}") end else puts 'Unknown Ruby version. Create .ruby-version file.' end