Sha256: add8926e2ed24def5ca1c512b131c73bdd0b1935ee52d9e1a974dfe73fcbdce8
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
# frozen_string_literal: true module Gitlab # Wrapper for the Gitlab REST API. class Client < API Dir[File.expand_path('client/*.rb', __dir__)].each { |f| require f } # Please keep in alphabetical order include AccessRequests include AwardEmojis include Boards include Branches include BuildVariables include Builds include Commits include Deployments include Environments include Events include GroupMilestones include Groups include Issues include Jobs include Keys include Labels include MergeRequestApprovals include MergeRequests include Milestones include Namespaces include Notes include PipelineSchedules include PipelineTriggers include Pipelines include Projects include Repositories include RepositoryFiles include Runners include Services include Sidekiq include Snippets include SystemHooks include Tags include Todos include Users include Versions # Text representation of the client, masking private token. # # @return [String] def inspect inspected = super inspected.sub! @private_token, only_show_last_four_chars(@private_token) if @private_token inspected end def url_encode(url) URI.encode(url.to_s, /\W/) end private def only_show_last_four_chars(token) "#{'*' * (token.size - 4)}#{token[-4..-1]}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gitlab-4.7.0 | lib/gitlab/client.rb |
gitlab-4.6.1 | lib/gitlab/client.rb |
gitlab-4.6.0 | lib/gitlab/client.rb |