Refactoring ruby and ruby install