convert install sript to ruby