class Artifactory::Resource::Artifact

def gavc_search(options = {})

Returns:
  • (Array) -

Options Hash: (**options)
  • :repos (String, Array) --
  • :classifier (String) --
  • :version (String) --
  • :name (String) --
  • :group (String) --
  • :client (Artifactory::Client) --

Parameters:
  • options (Hash) --

Other tags:
    Example: Search for all artifacts with the given gavc in a specific repo -
    Example: Search for all repositories with the given gavc -
def gavc_search(options = {})
  client = extract_client!(options)
  options = Util.rename_keys(options,
    :group      => :g,
    :name       => :a,
    :version    => :v,
    :classifier => :c,
  )
  params = Util.slice(options, :g, :a, :v, :c, :repos)
  format_repos!(params)
  client.get('/api/search/gavc', params)['results'].map do |artifact|
    from_url(artifact['uri'], client: client)
  end
end