Class: Serverkit::Resources::Group
- Defined in:
- lib/serverkit/resources/group.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes, #backend, #check_result, #recheck_result, #recipe
Instance Method Summary collapse
Methods inherited from Base
abstract_class?, #all_errors, attribute, #check_command, #check_command_from_identifier, #get_command_from_identifier, #handlers, #id, #initialize, #notifiable?, #run_apply, #run_check, #successful?, #successful_on_check?, #successful_on_recheck?, #to_a
Constructor Details
This class inherits a constructor from Serverkit::Resources::Base
Instance Method Details
#apply ⇒ Object
Note:
Override
10 11 12 13 14 15 16 |
# File 'lib/serverkit/resources/group.rb', line 10 def apply if has_correct_group? run_command_from_identifier(:update_group_gid, name, gid) else run_command_from_identifier(:add_group, name, gid: gid) end end |
#check ⇒ Object
Note:
Override
19 20 21 |
# File 'lib/serverkit/resources/group.rb', line 19 def check has_correct_group? && has_correct_gid? end |