lib/myosx/rbenv.rb in myosx-0.2.1 vs lib/myosx/rbenv.rb in myosx-0.2.2
- old
+ new
@@ -6,12 +6,12 @@
#
require 'yaml'
require_relative 'config'
class Rbenv < Config
- def initialize
- @config = $global_config['rbenv']
+ def config
+ $global_config['rbenv']
end
def install
packages = ['rbenv', 'rbenv-aliases', 'rbenv-bundler']
packages.each do |pkg|
@@ -19,19 +19,17 @@
puts "Installing #{pkg}"
system("brew install #{pkg}")
end
end
- versions = @config['versions']
+ 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
+ install
end
end