class Artifactory::Resource::System
def configuration(options = {})
-
(REXML::Document)
-
Options Hash:
(**options)
-
:client
(Artifactory::Client
) --
Parameters:
-
options
(Hash
) --
Other tags:
- Example: Get the current configuration -
def configuration(options = {}) client = extract_client!(options) response = client.get("/api/system/configuration") REXML::Document.new(response) end
def info(options = {})
-
(String)
-
Options Hash:
(**options)
-
:client
(Artifactory::Client
) --
Parameters:
-
options
(Hash
) --
Other tags:
- Example: Get the system information -
def info(options = {}) client = extract_client!(options) client.get("/api/system") end
def ping(options = {})
-
(Boolean)
-
Options Hash:
(**options)
-
:client
(Artifactory::Client
) --
Parameters:
-
options
(Hash
) --
Other tags:
- Example: Wait until the Artifactory server is ready -
def ping(options = {}) client = extract_client!(options) !!client.get("/api/system/ping") rescue Error::ConnectionError false end
def update_configuration(xml, options = {})
(**options)
-
:client
(Artifactory::Client
) --
Parameters:
-
xml
(File
) -- -
options
(Hash
) --
Other tags:
- Example: Update the configuration -
def update_configuration(xml, options = {}) client = extract_client!(options) # The Artifactory api requires a content type of 'application/xml'. # See http://bit.ly/1l2IvZY headers = { "Content-Type" => "application/xml" } client.post("/api/system/configuration", xml, headers) end
def version(options = {})
-
(Hash)
-
Options Hash:
(**options)
-
:client
(Artifactory::Client
) --
Parameters:
-
options
(Hash
) --
Other tags:
- Example: Get the version information -
def version(options = {}) client = extract_client!(options) client.get("/api/system/version") end