BigW Consortium Gitlab

move `lib/ci/mask_secret.rb` into `lib/gitlab/ci/mask_secret.rb`

parent c45ace89
...@@ -446,8 +446,8 @@ module Ci ...@@ -446,8 +446,8 @@ module Ci
return unless trace return unless trace
trace = trace.dup trace = trace.dup
Ci::MaskSecret.mask!(trace, project.runners_token) if project Gitlab::Ci::MaskSecret.mask!(trace, project.runners_token) if project
Ci::MaskSecret.mask!(trace, token) Gitlab::Ci::MaskSecret.mask!(trace, token)
trace trace
end end
......
module Ci::MaskSecret module Gitlab
module Ci::MaskSecret
class << self class << self
def mask!(value, token) def mask!(value, token)
return value unless value.present? && token.present? return value unless value.present? && token.present?
...@@ -7,4 +8,5 @@ module Ci::MaskSecret ...@@ -7,4 +8,5 @@ module Ci::MaskSecret
value value
end end
end end
end
end end
require 'spec_helper' require 'spec_helper'
describe Ci::MaskSecret do describe Gitlab::Ci::MaskSecret do
subject { described_class } subject { described_class }
describe '#mask' do describe '#mask' do
......
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