Module: Sicily::Task::FileTask
- Defined in:
- lib/sicily/task/file_task.rb
Instance Method Summary collapse
Instance Method Details
#cp(path_dest) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/sicily/task/file_task.rb', line 44 def cp(path_dest) info "cp to #{path_dest}" path_dest = Base.prepare_dest_path(@path, path_dest) info " #{path_dest}" FileUtils.cp @path, path_dest end |
#mv(path_dest) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/sicily/task/file_task.rb', line 37 def mv(path_dest) info "mv to #{path_dest}" path_dest = Base.prepare_dest_path(@path, path_dest) info " #{path_dest}" FileUtils.mv @path, path_dest end |
#rm ⇒ Object
51 52 53 54 |
# File 'lib/sicily/task/file_task.rb', line 51 def rm info 'rm' FileUtils.rm @path end |