copied in most from holman repo. uses chruby and ruby-install