Host

class
Superclass
Mongrel2::Config( :host )

Mongrel2 Host configuration class

Associations

↑ top

Public Instance Methods

anchor
routes()

The routes that this host has.

# File lib/mongrel2/config/host.rb, line 23
one_to_many :routes
anchor
server()

The server this host belongs to.

# File lib/mongrel2/config/host.rb, line 27
many_to_one :server

DSL mixin

↑ top

Hooks

↑ top

Public Instance Methods

anchor
before_destroy()

Clean up the host's routes when it's destroyed.

# File lib/mongrel2/config/host.rb, line 35
def before_destroy
        self.routes.each( &:destroy )
end