Class: Minarai::Actions::File
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
attribute, #error_messages, #initialize
Constructor Details
This class inherits a constructor from Minarai::Actions::Base
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/minarai/actions/file.rb', line 11 def call abort_with_runtime_error unless runnable? super end |
#run ⇒ Object
16 17 18 19 20 |
# File 'lib/minarai/actions/file.rb', line 16 def run copy change_group unless has_valid_group? change_owner unless has_valid_owner? end |