Class: Chef::Knife::RhnSystemgroupDelete
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::RhnSystemgroupDelete
- Includes:
- RhnBase
- Defined in:
- lib/chef/knife/rhn_systemgroup_delete.rb
Instance Method Summary collapse
Methods included from RhnBase
#get_config, #get_satellite_system, included, #set_rhn_connection_options
Instance Method Details
#run ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/chef/knife/rhn_systemgroup_delete.rb', line 17 def run $stdout.sync = true group = name_args.first if group.nil? ui.fatal "You need a systemgroup name!" show_usage exit 1 end RhnSatellite::Systemgroup.delete(group) ui.info "Deleted RHN Systemgroup: #{group}" end |