diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-03-09 10:26:05 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-03-09 10:26:05 +0100 |
commit | f65ab8815edc18e918e659cb74cb18269fedf5a3 (patch) | |
tree | 4f0da051515626a2c5410f79cf1addaf109f92b5 /application.rb | |
parent | 018c39fc95e6525ce10cc73167aab57ce0ae8de9 (diff) |
uri_available moved to opentox-ruby helper
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 13 |
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" |