Sha256: f932e3e979dfe3a9d029e2e971b391f14e0b36d42addb536e8d74ca6510ee263
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
module Gitlab # Wrapper for the Gitlab REST API. class Client < API Dir[File.expand_path('../client/*.rb', __FILE__)].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 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 # Text representation of the client, masking private token. # # @return [String] def inspect inspected = super if @private_token inspected = inspected.sub! @private_token, only_show_last_four_chars(@private_token) end inspected end def url_encode(s) URI.encode(s.to_s, /\W/) end private def only_show_last_four_chars(token) "#{'*' * (token.size - 4)}#{token[-4..-1]}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitlab-4.4.0 | lib/gitlab/client.rb |