From 9af99455c06abd69d18fed751ea16d914e62cf84 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 17 Mar 2011 16:43:46 -0700 Subject: watcher: add link to the Watcher documentation Hopefully people can learn to use the REST API this way. --- lib/raindrops/watcher.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') 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 "
" \ "
" \ "" \ - end.join << "" + end.join << "" \ + "

" \ + "This is running the #{self.class} service, see " \ + "#{DOC_URL} " \ + "for more information and options." \ + "

" \ + "" headers["Content-Length"] = bytesize(body).to_s [ 200, headers, [ body ] ] end -- cgit v1.2.3-24-ge0c7