module Polisher::KojiRpc::ClassMethods
Public Instance Methods
client()
click to toggle source
Retrieve shared instance of xmlrpc client to use
# File lib/polisher/targets/koji/rpc.rb, line 23 def client @client ||= begin url = koji_url.split('/') XMLRPC::Client.new(url[0..-2].join('/'), "/#{url.last}") end end
tagged_in(name)
click to toggle source
Return list of tags for which a package exists
@param [String] name of package to lookup @return [Hash<String,String>] hash of tag names to package versions for tags which package was found in
# File lib/polisher/targets/koji/rpc.rb, line 36 def tagged_in(name) # tagid userid pkgid prefix inherit with_dups pkgs = client.call('listPackages', nil, nil, "rubygem-#{name}", nil, false, true) pkgs.collect { |pkg| pkg['tag_name'] } end