class Artifactory::Resource::Backup

def find_from_config(xpath, config, options = {})

Parameters:
  • options (Hash) --
  • config (REXML) --
  • xpath (String) --
def find_from_config(xpath, config, options = {})
  name_node = REXML::XPath.match(config, xpath)
  return nil if name_node.empty?
  properties = Util.xml_to_hash(name_node[0].parent, 'excludedRepositories', false)
  from_hash(properties, options)
end