[refactor] rubytapas thor script refactoring