Sha256: 130d2ddebe87d64946e88bc27432c1eddf2625de7d6f7c7634961775626eec27
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
module Gitlab # Wrapper for the Gitlab REST API. class Client < API Dir[File.expand_path('../client/*.rb', __FILE__)].each { |f| require f } include AwardEmojis include Boards include Branches include Builds include BuildVariables include Commits include Environments include Groups include Issues include Keys include Labels include MergeRequests include Milestones include Namespaces include Notes include Pipelines include PipelineTriggers include Projects include Repositories include RepositoryFiles include Runners include Services include Snippets include SystemHooks include Tags include Todos include Users include Jobs # 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) ERB::Util.url_encode(s) 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.2.0 | lib/gitlab/client.rb |