diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-03-26 10:56:04 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-03-26 10:56:04 +0100 |
commit | a54db46684680d98311631804eca367cc949a715 (patch) | |
tree | 283b8c5f256e8605131cbfeae2217a77d0288ca7 /lib/utils/shims/task.rb | |
parent | 4ba2cc9849473f97baf75195bb36c5057f1c58d4 (diff) |
code cleanup and refactoring.
Diffstat (limited to 'lib/utils/shims/task.rb')
-rw-r--r-- | lib/utils/shims/task.rb | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/lib/utils/shims/task.rb b/lib/utils/shims/task.rb deleted file mode 100644 index 7ac8a7d..0000000 --- a/lib/utils/shims/task.rb +++ /dev/null @@ -1,62 +0,0 @@ -=begin -* Name: task.rb -* Description: Task shims -* Author: Andreas Maunz <andreas@maunz.de> -* Date: 10/2012 -=end - - -module OpenTox - - # Shims for the Task class - class Task - - def self.run(description, creator, subjectid=nil) - create($task[:uri],subjectid,{ RDF::DC.description => description, RDF::DC.creator => creator},&Proc.new) - end - - # Check status of a task - # @return [String] Status - def status - self[RDF::OT.hasStatus] - end - - def code - RestClientWrapper.head(@uri).code - end - - end - -end - - -module OpenTox - - class SubTask - - def initialize(task, min, max) - #TODO add subtask code - end - - def self.create(task, min, max) - if task - SubTask.new(task, min, max) - else - nil - end - end - - def waiting_for(task_uri) - #TODO add subtask code - end - - def progress(pct) - #TODO add subtask code - end - - def running?() - #TODO add subtask code - end - end - -end
\ No newline at end of file |