Class: Mongrel2::Config::Host

Inherits:
Object
  • Object
show all
Defined in:
lib/mongrel2/config/host.rb

Overview

Mongrel2 Host configuration class

Defined Under Namespace

Modules: DSLMethods

Instance Method Summary collapse

Instance Method Details

#before_destroyObject

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

#routesObject

The routes that this host has.



24
# File 'lib/mongrel2/config/host.rb', line 24

one_to_many :routes

#serverObject

The server this host belongs to.



28
# File 'lib/mongrel2/config/host.rb', line 28

many_to_one :server