Class: Refinery::StatsServer
- Inherits:
-
Object
- Object
- Refinery::StatsServer
- Includes:
- Loggable
- Defined in:
- lib/refinery/stats_server.rb
Overview
The StatsServer class provides a build in web server that provides a view into the refinery statistics. This functionality is very experimental.
Defined Under Namespace
Classes: MainController
Instance Method Summary collapse
-
#run ⇒ Object
Run the stats server.
Methods included from Loggable
Instance Method Details
#run ⇒ Object
Run the stats server.
9 10 11 12 13 14 15 16 |
# File 'lib/refinery/stats_server.rb', line 9 def run begin Ramaze::Log.loggers.clear # supress all Ramaze logging Ramaze.start # start the Ramaze server on port 7000 rescue NameError self.logger.warn "Install Ramaze to enable the stats server" end end |