diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-10 09:35:20 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-10 09:35:20 +0100 |
commit | 0011577686ede0b2670b7ad791185fef5871fee1 (patch) | |
tree | dd7be4453b28090ebfa318c17c3c6f7ca5ef1507 /lib/task.rb | |
parent | e8b8f16cffc0401f4f51c7b5c68198dbe2b89ad2 (diff) | |
parent | 65f6d64e57c81ae7b6dd72209fbeffee2d60da71 (diff) |
merged with michas version
Diffstat (limited to 'lib/task.rb')
-rw-r--r-- | lib/task.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/task.rb b/lib/task.rb index 27dc1c2..0ee3a11 100644 --- a/lib/task.rb +++ b/lib/task.rb @@ -84,6 +84,16 @@ module OpenTox task end + # Find a task for querying, status changes + # @param [String] uri Task URI + # @return [OpenTox::Task] Task object + def self.exist?(uri) + begin + return find(uri) + rescue + end + end + # Get a list of all tasks # @param [optional, String] uri URI of task service # @return [text/uri-list] Task URIs |