module Artifactory
def client
-
(Artifactory::Client)
-
def client unless defined?(@client) && @client.same_options?(options) @client = Artifactory::Client.new(options) end @client end
def method_missing(m, *args, &block)
object behave like a {Client}.
Delegate all methods to the client object, essentially making the module
def method_missing(m, *args, &block) if client.respond_to?(m) client.send(m, *args, &block) else super end end
def respond_to_missing?(m, include_private = false)
Delegating +respond_to+ to the {Client}.
def respond_to_missing?(m, include_private = false) client.respond_to?(m) || super end
def root
-
(Pathname)
-
def root @root ||= Pathname.new(File.expand_path("../../", __FILE__)) end