Oh... it's made in ruby.
https://github.com/gitlabhq/gitlabhq/tree/master/app/control...
self comment: this post isn't gonna end well :P