lib/bin_install/ruby/rvm.rb in bin_install-0.0.23 vs lib/bin_install/ruby/rvm.rb in bin_install-0.0.24

- old
+ new

@@ -1,7 +1,21 @@ module BinInstall module Ruby module Rvm + INSTALL = '\curl -sSL https://get.rvm.io | bash'.freeze + + def self.install + puts 'Installing RVM...'.white + system(INSTALL) + install_ruby + end + + def self.install! + puts 'Installing RVM...'.white + BinInstall.system!(INSTALL) + install_ruby! + end + def self.install_ruby(version = nil) version ||= Ruby.required_ruby_version if version system("rvm install #{version}")