class RhnSatellite::Systemgroup

Public Class Methods

active_systems(group_name) click to toggle source
# File lib/rhn_satellite/systemgroup.rb, line 14
def active_systems(group_name)
  base.default_call('systemgroup.listActiveSystemsInGroup',group_name)
end
add_systems(group_name,system_ids) click to toggle source
# File lib/rhn_satellite/systemgroup.rb, line 41
def add_systems(group_name,system_ids)
  base.default_call('systemgroup.addOrRemoveSystems',group_name,system_ids,true)
end
create(group_name, description) click to toggle source
# File lib/rhn_satellite/systemgroup.rb, line 10
def create(group_name, description)
  base.default_call('systemgroup.create',group_name,description)
end
delete(group_name) click to toggle source
# File lib/rhn_satellite/systemgroup.rb, line 6
def delete(group_name)
  base.default_call('systemgroup.delete',group_name)
end
inactive_systems(group_name,days=nil) click to toggle source
# File lib/rhn_satellite/systemgroup.rb, line 18
def inactive_systems(group_name,days=nil)
  if days
    base.default_call('systemgroup.listInactiveSystemsInGroup',group_name,days.to_i)
  else
    base.default_call('systemgroup.listInactiveSystemsInGroup',group_name)
  end
end
remove_systems(group_name,system_ids) click to toggle source
# File lib/rhn_satellite/systemgroup.rb, line 37
def remove_systems(group_name,system_ids)
  base.default_call('systemgroup.addOrRemoveSystems',group_name,system_ids,false)
end
systems(group_name) click to toggle source
# File lib/rhn_satellite/systemgroup.rb, line 26
def systems(group_name)
  base.default_call('systemgroup.listSystems',group_name)
end
systems_safe(group_name) click to toggle source

if group is not valid an XMLRPC::FaultException is raised

# File lib/rhn_satellite/systemgroup.rb, line 31
def systems_safe(group_name)
  systems(group_name)
rescue XMLRPC::FaultException
  []
end