ruby scripts to insert file