Commit 0944ebab authored by Stan Hu's avatar Stan Hu

Disable RubyGems to increase performance

By default, RubyGems is enabled, which causes the Ruby interpreter
to load 600+ additional files at startup when gitlab-shell is
designed not to use any external gems.
parent 0a646241
v5.2.0
- Disable RubyGems to increase performance
v5.1.1
- Revert "Remove old `project` parameter, use `gl_repository` instead"
......
#!/usr/bin/env ruby
#!/usr/bin/env ruby --disable-gems
#
# GitLab shell authorized_keys. Query GitLab API to get the authorized command for a given ssh key fingerprint
......
#!/usr/bin/env ruby
#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
require_relative '../lib/gitlab_net'
......
#!/usr/bin/env ruby
#!/usr/bin/env ruby --disable-gems
# Recreate GitLab hooks in the Git repositories managed by GitLab.
#
......
#!/usr/bin/env ruby
#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
......
#!/usr/bin/env ruby
#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
......
#!/usr/bin/env ruby
#!/usr/bin/env ruby --disable-gems
unless ENV['SSH_CONNECTION']
puts "Only ssh allowed"
......
#!/usr/bin/env ruby
#!/usr/bin/env ruby --disable-gems
require_relative '../lib/gitlab_init'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment