Refactor rbenv install into a resource from a class.