module Gitlab

def self.actions

Returns:
  • (Array) -
def self.actions
  # rubocop:disable Layout/LineLength
  hidden =
    /endpoint|private_token|auth_token|user_agent|sudo|get|post|put|patch|\Adelete\z|validate\z|request_defaults|httparty/
  # rubocop:enable Layout/LineLength
  (Gitlab::Client.instance_methods - Object.methods).reject { |e| e[hidden] }
end

def self.client(options = {})

Returns:
  • (Gitlab::Client) -
def self.client(options = {})
  Gitlab::Client.new(options)
end

def self.http_proxy(address = nil, port = nil, username = nil, password = nil)

Delegate to HTTParty.http_proxy
def self.http_proxy(address = nil, port = nil, username = nil, password = nil)
  Gitlab::Request.http_proxy(address, port, username, password)
end

def self.method_missing(method, *args, **keywargs, &block)

def self.method_missing(method, *args, **keywargs, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, **keywargs, &block)
end

def self.method_missing(method, *args, &block)

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

def self.respond_to_missing?(method_name, include_private = false)

Delegate to Gitlab::Client
def self.respond_to_missing?(method_name, include_private = false)
  client.respond_to?(method_name) || super
end