module Gitlab::CI

Public Class Methods

actions() click to toggle source

Returns an unsorted array of available client methods.

@return [Array<Symbol>]

# File lib/gitlab/ci.rb, line 37
def self.actions
        hidden = /endpoint|private_token|auth_token|user_agent|sudo|get|post|put|\Adelete\z|validate|set_request_defaults|httparty/
        (Gitlab::CI::Client.instance_methods - Object.methods).reject { |e| e[hidden] }
end
client(options={}) click to toggle source

Alias for Gitlab::Client.new

@return [Gitlab::Client]

# File lib/gitlab/ci.rb, line 14
def self.client(options={})
        Gitlab::CI::Client.new(options)
end
http_proxy(address=nil, port=nil, username=nil, password=nil) click to toggle source

Delegate to HTTParty.http_proxy

# File lib/gitlab/ci.rb, line 30
def self.http_proxy(address=nil, port=nil, username=nil, password=nil)
        Gitlab::Request.http_proxy(address, port, username, password)
end
method_missing(method, *args, &block) click to toggle source

Delegate to Gitlab::Client

Calls superclass method
# File lib/gitlab/ci.rb, line 19
def self.method_missing(method, *args, &block)
        return super unless client.respond_to?(method)
        client.send(method, *args, &block)
end
respond_to?(method) click to toggle source

Delegate to Gitlab::Client

Calls superclass method
# File lib/gitlab/ci.rb, line 25
def self.respond_to?(method)
        client.respond_to?(method) || super
end