Class: Cleaner::Actions::Move
- Inherits:
-
Cleaner::Action
- Object
- Cleaner::Action
- Cleaner::Actions::Move
- Defined in:
- lib/cleaner/actions/move.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
4 5 6 7 8 |
# File 'lib/cleaner/actions/move.rb', line 4 def execute dest = File.([:to]) FileUtils.mkdir_p(dest) files.each { |src| FileUtils.mv(src, dest) } end |