class Velcro::Status::Ruby
Provide information about the ruby installation
Public Class Methods
installed?()
click to toggle source
# File lib/velcro/status/ruby.rb, line 17 def self.installed? (`which rvm` =~ /not found/).nil? end
print()
click to toggle source
# File lib/velcro/status/ruby.rb, line 5 def self.print printf '## RVM - ' if !installed? puts 'Not Installed' elsif rubies.empty? puts "Installed\n No Rubies Installed" else puts 'Installed' rubies.each{|r| puts r } end end
rubies()
click to toggle source
# File lib/velcro/status/ruby.rb, line 21 def self.rubies `rvm list`.split("\n").select{|str| str =~ /ruby-/} end