Module: Trinidad

Defined in:
lib/trinidad.rb,
lib/trinidad/server.rb,
lib/trinidad/web_app.rb,
lib/trinidad/extensions.rb,
lib/trinidad/war_web_app.rb,
lib/trinidad/configuration.rb,
lib/trinidad/log_formatter.rb,
lib/trinidad/rails_web_app.rb,
lib/trinidad/rackup_web_app.rb,
lib/trinidad/lifecycle/takeover.rb,
lib/trinidad/command_line_parser.rb,
lib/trinidad/lifecycle/lifecycle_listener_war.rb,
lib/trinidad/lifecycle/lifecycle_listener_base.rb,
lib/trinidad/lifecycle/lifecycle_listener_host.rb,
lib/trinidad/lifecycle/lifecycle_listener_default.rb

Defined Under Namespace

Modules: Extensions, Lifecycle Classes: CommandLineParser, Configuration, LogFormatter, RackupWebApp, RailsWebApp, Server, WarWebApp, WebApp

Constant Summary collapse

VERSION =
'1.3.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration



3
4
5
# File 'lib/trinidad/configuration.rb', line 3

def configuration
  @configuration
end

Class Method Details

.cleanupObject

test only purposes



13
14
15
# File 'lib/trinidad/configuration.rb', line 13

def self.cleanup
  self.configuration = nil
end

.configure(options = {}) {|self.configuration| ... } ⇒ Object

Yields:



6
7
8
9
10
# File 'lib/trinidad/configuration.rb', line 6

def self.configure(options = {})
  self.configuration ||= Configuration.new(options)
  yield self.configuration if block_given?
  self.configuration
end