gitlab-org--gitlab-foss/config/initializers/gitlab_workhorse_secret.rb
2016-09-05 15:05:31 +02:00

8 lines
161 B
Ruby

begin
Gitlab::Workhorse.secret
rescue
Gitlab::Workhorse.write_secret
end
# Try a second time. If it does not work this will raise.
Gitlab::Workhorse.secret