use gitlab-git. also replace rails methods with ruby