2 # Frontend to Gitlab Rake tasks
4 # http://docs.gitlab.com/ce/raketasks/
8 # Unset ENV variables that might interfere with
9 # omnibus-gitlab ruby env (looking at you rvm)
10 for ruby_env_var in RUBYOPT \
19 # Rake with no params does nothing useful
20 # (currently it switches env production->test and then fails)
21 # so instead show defined tasks
22 test $# = 0 && set -- -T
25 exec sudo -u git bundle exec rake RAILS_ENV=production "$@"