Sha256: ad3184c0a301a1bf8151427f7c25896e8866d3b4a44adfc11ba0f70dd4db5c16
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
#!/usr/bin/env ruby # # Class which installs rbenv packages, and installs ruby versions # # This class does not add the shims path to your shell or manage any aliases # require 'yaml' require_relative 'config' class Rbenv < Config def config Config.new.global['rbenv'] end 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 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 def exec install_rbenv install_rubies end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myosx-0.2.6 | lib/myosx/rbenv.rb |