Sha256: daff3721d40786332d23d0b84789230fc9ea935c75ac2c93c73e483a6c7be1cc
Contents?: true
Size: 806 Bytes
Versions: 2
Compression:
Stored size: 806 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 initialize @config = $global_config['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 if @config['manage'] install end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
myosx-0.2.1 | lib/myosx/rbenv.rb |
myosx-0.1.0 | lib/myosx/rbenv.rb |