diff options
author | mguetlein <martin.guetlein@gmail.com> | 2013-02-04 14:07:28 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2013-02-04 14:07:28 +0100 |
commit | 54b833546cea44e03eca3183ad4a37b9f30651a1 (patch) | |
tree | fb240014170efdf4f19ee2d15c6217bc7b128ffc /lib/opentox.rb | |
parent | 8a374b38d1e8b727f365b6ce5edf5424eb1a0c7d (diff) |
add validation, some debug messages, small adjustments
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |