diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-17 16:43:46 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-17 16:43:46 -0700 |
commit | 9af99455c06abd69d18fed751ea16d914e62cf84 (patch) | |
tree | f1c909ed7dd3b89876a70a7c4e8499b3fd5f0a9b /lib | |
parent | 37718b5833f04870d14bfdca3dc84e4f885c71d9 (diff) | |
download | raindrops-9af99455c06abd69d18fed751ea16d914e62cf84.tar.gz |
Hopefully people can learn to use the REST API this way.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/raindrops/watcher.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/raindrops/watcher.rb b/lib/raindrops/watcher.rb index 24c467d..40b53c5 100644 --- a/lib/raindrops/watcher.rb +++ b/lib/raindrops/watcher.rb @@ -99,6 +99,7 @@ class Raindrops::Watcher attr_reader :snapshot include Rack::Utils include Raindrops::Linux + DOC_URL = "http://raindrops.bogomips.org/Raindrops/Watcher.html" def initialize(opts = {}) @tcp_listeners = @unix_listeners = nil @@ -301,7 +302,13 @@ class Raindrops::Watcher "<td><form action='/reset/#{e_addr}' method='post'>" \ "<input type='submit' name='x' value='x' /></form></td>" \ "</tr>" \ - end.join << "</table></body></html>" + end.join << "</table>" \ + "<p>" \ + "This is running the #{self.class}</a> service, see " \ + "<a href='#{DOC_URL}'>#{DOC_URL}</a> " \ + "for more information and options." \ + "</p>" \ + "</body></html>" headers["Content-Length"] = bytesize(body).to_s [ 200, headers, [ body ] ] end |