summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-03-15 09:13:33 +0100
committerChristoph Helma <helma@in-silico.de>2010-03-15 09:13:33 +0100
commit8657902cae694470dc316b60a186a8dcc9f84f07 (patch)
tree8d1d6729a952e8cadf1f4c0fda2bd53733dfe146 /lib
parente1cb8e39ca0331ea2db7e633c3bc708aa691b0b3 (diff)
tests for yaml representation working
Diffstat (limited to 'lib')
-rw-r--r--lib/model.rb8
-rw-r--r--lib/task.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 5dcc462..d87a006 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -22,6 +22,10 @@ module OpenTox
resource.post(self.to_yaml, :content_type => "application/x-yaml").chomp.to_s
end
+
+ def self.find_all
+ RestClient.get(@@config[:services]["opentox-model"]).chomp.split("\n")
+ end
=begin
include Owl
@@ -49,10 +53,6 @@ module OpenTox
lazar
end
- def self.find_all
- RestClient.get(@@config[:services]["opentox-model"]).split("\n")
- end
-
def self.find(uri)
yaml = RestClient.get(uri, :accept => "application/x-yaml")
OpenTox::Model::Lazar.from_yaml(yaml)
diff --git a/lib/task.rb b/lib/task.rb
index 6a80d1a..87bad21 100644
--- a/lib/task.rb
+++ b/lib/task.rb
@@ -105,7 +105,7 @@ module OpenTox
def wait_for_completion
until self.completed? or self.failed?
- sleep 1
+ sleep 0.1
end
end