Method: Spring::Server#initialize

Defined in:
lib/spring/server.rb

#initialize(env = Env.new) ⇒ Server

Returns a new instance of Server.



19
20
21
22
23
24
# File 'lib/spring/server.rb', line 19

def initialize(env = Env.new)
  @env          = env
  @applications = Hash.new { |h, k| h[k] = ApplicationManager.new(k) }
  @pidfile      = env.pidfile_path.open('a')
  @mutex        = Mutex.new
end