Sha256: 66bea659cce2296e9940a6b09824c461f8d419b135c5a60f79b28b5645c80f4f
Contents?: true
Size: 759 Bytes
Versions: 2
Compression:
Stored size: 759 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 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 versions = config['versions'] puts "Checking Ruby version:" versions.each do |version| puts " #{version}" system("rbenv install #{version} --skip-existing") end end def exec install end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
myosx-0.2.5 | lib/myosx/rbenv.rb |
myosx-0.2.4 | lib/myosx/rbenv.rb |