debian-mirror-gitlab/lib/gitlab/terraform_registry_token.rb

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

14 lines
319 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# frozen_string_literal: true
module Gitlab
class TerraformRegistryToken < JWTToken
class << self
def from_token(token)
new.tap do |terraform_registry_token|
terraform_registry_token['token'] = token.try(:token).presence || token.try(:id).presence
end
end
end
end
end