summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-03-26 10:56:04 +0100
committerChristoph Helma <helma@in-silico.ch>2013-03-26 10:56:04 +0100
commita54db46684680d98311631804eca367cc949a715 (patch)
tree283b8c5f256e8605131cbfeae2217a77d0288ca7 /lib/algorithm.rb
parent4ba2cc9849473f97baf75195bb36c5057f1c58d4 (diff)
code cleanup and refactoring.
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
index 0c633f2..455e9ad 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -7,9 +7,9 @@ module OpenTox
# @param [optional,Hash] params Algorithm parameters
# @param [optional,OpenTox::Task] waiting_task (can be a OpenTox::Subtask as well), progress is updated accordingly
# @return [String] URI of new resource (dataset, model, ...)
- def run params=nil
- post params
+ def run params=nil, wait=true
+ uri = RestClientWrapper.post @uri, params, { :content_type => "text/uri-list", :subjectid => @subjectid}
+ wait_for_task uri if wait
end
-
end
end