class Rbenv
Public Instance Methods
config()
click to toggle source
# File lib/myosx/rbenv.rb, line 11 def config Konfig.new.global['rbenv'] end
exec()
click to toggle source
# File lib/myosx/rbenv.rb, line 34 def exec install_rbenv install_rubies end
install_rbenv()
click to toggle source
# File lib/myosx/rbenv.rb, line 15 def install_rbenv packages = ['rbenv', 'rbenv-aliases', 'rbenv-bundler'] packages.each do |pkg| unless system("brew list #{pkg} >/dev/null 2>&1") puts "Installing #{pkg}" system("brew install #{pkg}") end end end
install_rubies()
click to toggle source
# File lib/myosx/rbenv.rb, line 25 def install_rubies versions = config['versions'] puts "Ensuring Ruby version(s) installed:" versions.each do |version| puts " - #{version}" system("rbenv install #{version} --skip-existing") end end