Class: Mongrel2::Config::Host
- Inherits:
-
Object
- Object
- Mongrel2::Config::Host
- Defined in:
- lib/mongrel2/config/host.rb
Overview
Mongrel2 Host configuration class
Defined Under Namespace
Modules: DSLMethods
Instance Method Summary collapse
-
#before_destroy ⇒ Object
Clean up the host’s routes when it’s destroyed.
-
#routes ⇒ Object
The routes that this host has.
-
#server ⇒ Object
The server this host belongs to.
Instance Method Details
#before_destroy ⇒ Object
Clean up the host’s routes when it’s destroyed.
36 37 38 |
# File 'lib/mongrel2/config/host.rb', line 36 def before_destroy self.routes.each( &:destroy ) end |
#routes ⇒ Object
The routes that this host has.
24 |
# File 'lib/mongrel2/config/host.rb', line 24 one_to_many :routes |
#server ⇒ Object
The server this host belongs to.
28 |
# File 'lib/mongrel2/config/host.rb', line 28 many_to_one :server |