class method
self.spawn_all
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
self.spawn_all()
No documentation comment.
Source
# File railties/lib/commands/process/spawner.rb, line 23
def self.spawn_all
OPTIONS[:instances].times do |i|
port = OPTIONS[:port] + i
print "Checking if something is already running on #{OPTIONS[:address]}:#{port}..."
begin
srv = TCPServer.new(OPTIONS[:address], port)
srv.close
srv = nil
puts "NO"
puts "Starting dispatcher on port: #{OPTIONS[:address]}:#{port}"
FileUtils.mkdir_p(OPTIONS[:pids])
spawn(port)
rescue
puts "YES"
end
end
end
Defined in railties/lib/commands/process/spawner.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Spawner