Class: RHN::Systemgroup
Instance Method Summary collapse
- #exist?(name) ⇒ Boolean
-
#initialize(sat) ⇒ Systemgroup
constructor
A new instance of Systemgroup.
Methods inherited from Operation
#action, #action_list, #define, #trace_info, #trace_warn
Constructor Details
#initialize(sat) ⇒ Systemgroup
Returns a new instance of Systemgroup.
484 485 486 487 488 489 490 491 |
# File 'lib/satops/rhsat.rb', line 484 def initialize(sat) super(sat) define 'systemgroup.create' define 'systemgroup.delete' define 'systemgroup.getDetails' # Accepts System Group name or id define 'systemgroup.listAllGroups', :list define 'systemgroup.update' end |
Instance Method Details
#exist?(name) ⇒ Boolean
493 494 495 496 497 498 499 |
# File 'lib/satops/rhsat.rb', line 493 def exist?(name) if self.getDetails(name) true else false end end |