Class: Minionizer::FolderCreation
- Inherits:
-
TaskTemplate
- Object
- TaskTemplate
- Minionizer::FolderCreation
- Defined in:
- lib/core/folder_creation.rb
Instance Attribute Summary
Attributes inherited from TaskTemplate
Instance Method Summary collapse
Methods inherited from TaskTemplate
#download_file, #initialize, #method_missing, #respond_to?
Constructor Details
This class inherits a constructor from Minionizer::TaskTemplate
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Minionizer::TaskTemplate
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 |
# File 'lib/core/folder_creation.rb', line 4 def call session.exec("mkdir --parents #{path}") session.exec("chmod #{mode} #{path}") if respond_to?(:mode) session.exec("chown #{owner} #{path}") if respond_to?(:owner) session.exec("chgrp #{group} #{path}") if respond_to?(:group) end |