Class: Cleaner::Actions::Copy
- Inherits:
-
Cleaner::Action
- Object
- Cleaner::Action
- Cleaner::Actions::Copy
- Defined in:
- lib/cleaner/actions/copy.rb
Instance Attribute Summary
Attributes inherited from Cleaner::Action
Instance Method Summary collapse
Methods inherited from Cleaner::Action
Constructor Details
This class inherits a constructor from Cleaner::Action
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 |
# File 'lib/cleaner/actions/copy.rb', line 6 def execute dest = File.([:to]) FileUtils.mkdir_p(dest) FileUtils.cp_r(files, dest) end |