From 54b833546cea44e03eca3183ad4a37b9f30651a1 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 4 Feb 2013 14:07:28 +0100 Subject: add validation, some debug messages, small adjustments --- lib/opentox.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/opentox.rb') diff --git a/lib/opentox.rb b/lib/opentox.rb index 0f29c30..f125c30 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -115,6 +115,10 @@ module OpenTox end def wait_for_task uri + OpenTox.wait_for_task uri + end + + def self.wait_for_task uri if URI.task?(uri) t = OpenTox::Task.new uri t.wait -- cgit v1.2.3