Module: Artifactory
- Extended by:
- Configurable
- Defined in:
- lib/artifactory.rb,
lib/artifactory/util.rb,
lib/artifactory/client.rb,
lib/artifactory/errors.rb,
lib/artifactory/version.rb,
lib/artifactory/defaults.rb,
lib/artifactory/configurable.rb,
lib/artifactory/resources/base.rb,
lib/artifactory/resources/user.rb,
lib/artifactory/resources/build.rb,
lib/artifactory/resources/group.rb,
lib/artifactory/collections/base.rb,
lib/artifactory/resources/plugin.rb,
lib/artifactory/resources/system.rb,
lib/artifactory/resources/artifact.rb,
lib/artifactory/collections/artifact.rb,
lib/artifactory/resources/repository.rb
Defined Under Namespace
Modules: Collection, Configurable, Defaults, Error, Resource, Util Classes: Client
Constant Summary collapse
- VERSION =
'1.1.0'
Class Method Summary collapse
-
.client ⇒ Artifactory::Client
API client object based off the configured options in Configurable.
-
.method_missing(m, *args, &block) ⇒ Object
Delegate all methods to the client object, essentially making the module object behave like a Client.
-
.respond_to_missing?(m, include_private = false) ⇒ Boolean
Delegating
respond_to
to the Client. -
.root ⇒ Pathname
The root of the Artifactory gem.
Methods included from Configurable
Class Method Details
.client ⇒ Artifactory::Client
API client object based off the configured options in Configurable.
44 45 46 47 48 49 50 |
# File 'lib/artifactory.rb', line 44 def client unless defined?(@client) && @client.() @client = Artifactory::Client.new() end @client end |
.method_missing(m, *args, &block) ⇒ Object
Delegate all methods to the client object, essentially making the module object behave like a Client.
56 57 58 59 60 61 62 |
# File 'lib/artifactory.rb', line 56 def method_missing(m, *args, &block) if client.respond_to?(m) client.send(m, *args, &block) else super end end |
.respond_to_missing?(m, include_private = false) ⇒ Boolean
Delegating respond_to
to the Client.
67 68 69 |
# File 'lib/artifactory.rb', line 67 def respond_to_missing?(m, include_private = false) client.respond_to?(m) || super end |
.root ⇒ Pathname
The root of the Artifactory gem. This method is useful for finding files relative to the root of the repository.
35 36 37 |
# File 'lib/artifactory.rb', line 35 def root @root ||= Pathname.new(File.('../../', __FILE__)) end |