class Artifactory::Resource::System
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