Module: Gitlab
- Extended by:
- Configuration
- Defined in:
- lib/gitlab.rb,
lib/gitlab/api.rb,
lib/gitlab/error.rb,
lib/gitlab/client.rb,
lib/gitlab/request.rb,
lib/gitlab/version.rb,
lib/gitlab/page_links.rb,
lib/gitlab/configuration.rb,
lib/gitlab/objectified_hash.rb,
lib/gitlab/paginated_response.rb
Defined Under Namespace
Modules: Configuration, Error, Help Classes: API, CLI, Client, ObjectifiedHash, PageLinks, PaginatedResponse, Request, Shell
Constant Summary collapse
- VERSION =
"3.6.1"
Constants included from Configuration
Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.actions ⇒ Array<Symbol>
Returns an unsorted array of available client methods.
-
.client(options = {}) ⇒ Gitlab::Client
Alias for Gitlab::Client.new.
-
.http_proxy(address = nil, port = nil, username = nil, password = nil) ⇒ Object
Delegate to HTTParty.http_proxy.
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Gitlab::Client.
-
.respond_to?(method) ⇒ Boolean
Delegate to Gitlab::Client.
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.actions ⇒ Array<Symbol>
Returns an unsorted array of available client methods.
40 41 42 43 |
# File 'lib/gitlab.rb', line 40 def self.actions hidden = /endpoint|private_token|auth_token|user_agent|sudo|get|post|put|\Adelete\z|validate|set_request_defaults|httparty/ (Gitlab::Client.instance_methods - Object.methods).reject { |e| e[hidden] } end |
.client(options = {}) ⇒ Gitlab::Client
Alias for Gitlab::Client.new
17 18 19 |
# File 'lib/gitlab.rb', line 17 def self.client(={}) Gitlab::Client.new() end |
.http_proxy(address = nil, port = nil, username = nil, password = nil) ⇒ Object
Delegate to HTTParty.http_proxy
33 34 35 |
# File 'lib/gitlab.rb', line 33 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
22 23 24 25 |
# File 'lib/gitlab.rb', line 22 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
28 29 30 |
# File 'lib/gitlab.rb', line 28 def self.respond_to?(method) client.respond_to?(method) || super end |