Class: Rbenv
- Inherits:
-
Object
- Object
- Rbenv
- Defined in:
- lib/rbenv.rb
Class Method Summary collapse
Class Method Details
.installed? ⇒ Boolean
3 4 5 |
# File 'lib/rbenv.rb', line 3 def installed? File.exist? File.('~/.rbenv') end |
.update ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rbenv.rb', line 7 def update ('rbenv') Open3.popen3('cd ~/.rbenv && git pull && cd plugins/ruby-build/ && git pull') do |stdin, stdout, stderr, thread| puts ' - rbenv updated.'.colorize(:green) end break_output end |