diff options
Diffstat (limited to 'lib/gitlab/setup_helper.rb')
-rw-r--r-- | lib/gitlab/setup_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/setup_helper.rb b/lib/gitlab/setup_helper.rb index 12d0bf9626d..d01213bb6e0 100644 --- a/lib/gitlab/setup_helper.rb +++ b/lib/gitlab/setup_helper.rb @@ -9,7 +9,7 @@ module Gitlab # because it uses a Unix socket. # For development and testing purposes, an extra storage is added to gitaly, # which is not known to Rails, but must be explicitly stubbed. - def gitaly_configuration_toml(dir, gitaly_ruby: true) + def gitaly_configuration_toml(gitaly_dir, gitaly_ruby: true) storages = [] address = nil @@ -33,14 +33,13 @@ module Gitlab config = { socket_path: address.sub(%r{\Aunix:}, ''), storage: storages } config[:auth] = { token: 'secret' } if Rails.env.test? - config[:'gitaly-ruby'] = { dir: File.join(dir, 'ruby') } if gitaly_ruby + config[:'gitaly-ruby'] = { dir: File.join(gitaly_dir, 'ruby') } if gitaly_ruby config[:'gitlab-shell'] = { dir: Gitlab.config.gitlab_shell.path } config[:bin_dir] = Gitlab.config.gitaly.client_path TOML.dump(config) end - # The Rails/Output cop complains about 'puts' but that's what we want here. # rubocop:disable Rails/Output def create_gitaly_configuration(dir, force: false) config_path = File.join(dir, 'config.toml') @@ -56,6 +55,7 @@ module Gitlab puts "Skipping config.toml generation:" puts e.message end + # rubocop:enable Rails/Output end end end |