debian-mirror-gitlab/config/initializers/gitlab_workhorse_secret.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
206 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2016-09-29 09:46:39 +05:30
begin
Gitlab::Workhorse.secret
2021-06-08 01:23:25 +05:30
rescue StandardError
2016-09-29 09:46:39 +05:30
Gitlab::Workhorse.write_secret
end
# Try a second time. If it does not work this will raise.
Gitlab::Workhorse.secret