Class: Serverkit::Resources::Entry
- Defined in:
- lib/serverkit/resources/entry.rb
Overview
Abstract class for file and directory
Direct Known Subclasses
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
16 17 18 19 20 21 |
# File 'lib/serverkit/resources/entry.rb', line 16 def apply update_entry unless has_correct_entry? update_group unless has_correct_group? update_mode unless has_correct_mode? update_owner unless has_correct_owner? end |
#check ⇒ Object
Note:
Override
24 25 26 |
# File 'lib/serverkit/resources/entry.rb', line 24 def check has_correct_entry? && has_correct_group? && has_correct_mode? && has_correct_owner? end |