debian-mirror-gitlab/lib/gitlab/ci/secure_files/x509_name.rb
2022-11-25 23:54:43 +05:30

15 lines
282 B
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
module SecureFiles
class X509Name
def self.parse(x509_name)
x509_name.to_utf8.split(',').to_h { |a| a.split('=') }
rescue StandardError
{}
end
end
end
end
end