module Sicily::Task::FileTask
Public Instance Methods
cp(path_dest)
click to toggle source
# 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)
click to toggle source
# 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()
click to toggle source
# File lib/sicily/task/file_task.rb, line 51 def rm info 'rm' FileUtils.rm @path end