Module: Gitlab::CI

Extended by:
Configuration
Defined in:
lib/gitlab/ci.rb,
lib/gitlab/ci/cli.rb,
lib/gitlab/ci/client.rb,
lib/gitlab/ci/cli_helpers.rb

Defined Under Namespace

Modules: Help Classes: CLI, Client

Class Method Summary collapse

Class Method Details

.actionsArray<Symbol>

Returns an unsorted array of available client methods.

Returns:

  • (Array<Symbol>)


37
38
39
40
# 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 = {}) ⇒ Gitlab::Client

Alias for Gitlab::Client.new

Returns:

  • (Gitlab::Client)


14
15
16
# 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) ⇒ Object

Delegate to HTTParty.http_proxy



30
31
32
# 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) ⇒ Object

Delegate to Gitlab::Client



19
20
21
22
# 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) ⇒ Boolean

Delegate to Gitlab::Client

Returns:

  • (Boolean)


25
26
27
# File 'lib/gitlab/ci.rb', line 25

def self.respond_to?(method)
	client.respond_to?(method) || super
end