Class: Gitfeed::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Gitfeed::Server
- Defined in:
- lib/gitfeed.rb
Overview
A Sinatra-based stand-alone server that serves up an RSS feed of the changes in the specified repository.
Class Method Summary collapse
-
.start(*args) ⇒ Object
Starts a standalone server.
Class Method Details
.start(*args) ⇒ Object
Starts a standalone server. The arguments are identical to Gitfeed.new
65 66 67 68 69 70 71 72 |
# File 'lib/gitfeed.rb', line 65 def self.start(*args) @@gitfeed = Gitfeed.new(*args) get '/' do content_type('text/xml') @@gitfeed.feed end self.run! end |