Class: RhnSatellite::Packages

Inherits:
Connection::Base show all
Defined in:
lib/rhn_satellite/packages.rb

Class Method Summary collapse

Methods inherited from Connection::Base

reset

Class Method Details

.details(package_id) ⇒ Object



5
6
7
# File 'lib/rhn_satellite/packages.rb', line 5

def details(package_id)
  base.default_call('packages.getDetails',package_id.to_i)
end

.exists?(package_id) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/rhn_satellite/packages.rb', line 9

def exists?(package_id)
  !details(package_id).nil?
rescue XMLRPC::FaultException
  false
end