summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-03-09 10:26:05 +0100
committerChristoph Helma <helma@in-silico.ch>2011-03-09 10:26:05 +0100
commitf65ab8815edc18e918e659cb74cb18269fedf5a3 (patch)
tree4f0da051515626a2c5410f79cf1addaf109f92b5
parent018c39fc95e6525ce10cc73167aab57ce0ae8de9 (diff)
uri_available moved to opentox-ruby helper
-rw-r--r--application.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/application.rb b/application.rb
index ff3abe7..9d8c0d5 100644
--- a/application.rb
+++ b/application.rb
@@ -43,19 +43,6 @@ helpers do
url_for "/#{id}", :full
end
- def uri_available?(urlStr)
- url = URI.parse(urlStr)
- unless @subjectid
- Net::HTTP.start(url.host, url.port) do |http|
- return http.head(url.request_uri).code == "200"
- end
- else
- Net::HTTP.start(url.host, url.port) do |http|
- return http.post(url.request_uri, "subjectid=#{@subjectid}").code == "202"
- end
- end
- end
-
def activity(a)
case a.to_s
when "true"