Class: Recot::Tasks::SyncTask

Inherits:
BaseTask
  • Object
show all
Defined in:
lib/recot/tasks/sync_task.rb

Constant Summary collapse

SEPARATOR =
'/'.freeze

Instance Method Summary collapse

Constructor Details

#initializeSyncTask

Returns a new instance of SyncTask.



13
14
15
# File 'lib/recot/tasks/sync_task.rb', line 13

def initialize()
  super
end

Instance Method Details

#run(args = nil) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/recot/tasks/sync_task.rb', line 17

def run(args = nil)
  # get evidence path
  path = evidence_path()
  unless File.exist?(path)
    $stderr.puts "unkown #{path} directory."
  else
    move(path)
  end
end