Module: Rackdapter

Defined in:
lib/rackdapter/proxy.rb,
lib/rackdapter/config.rb,
lib/rackdapter/master.rb,
lib/rackdapter/spawner.rb

Defined Under Namespace

Modules: Configuration, MerbBackend, ProxyBackend, RailsBackend Classes: Application, ApplicationInstance, Config, InboundProxyConnection, Master, OutboundProxyConnection, Proxy, ProxyBalancer

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.config_pathObject

Returns the value of attribute config_path.



6
7
8
# File 'lib/rackdapter/config.rb', line 6

def config_path
  @config_path
end

Class Method Details

.app_options(app, port, options) ⇒ Object



67
68
69
70
71
72
73
74
75
76
77
# File 'lib/rackdapter/spawner.rb', line 67

def self.app_options(app, port, options)
  log = app.log.gsub(/<port>/, port.to_s).gsub(/<environment>/, app.environment)
  opts = []
  options.each do |k,v|
    unless v.blank?
      opts << "-#{k.to_s}"
      opts << v.to_s
    end
  end
  opts
end

.configObject



9
10
11
# File 'lib/rackdapter/config.rb', line 9

def self.config
  @config ||= Config.new(@config_path)
end