Flowdock
method

record_pid

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: Spawner
record_pid(name = "#{OPTIONS[:process]}.spawner", id = Process.pid) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/commands/process/spawner.rb, line 18
  def self.record_pid(name = "#{OPTIONS[:process]}.spawner", id = Process.pid)
    FileUtils.mkdir_p(OPTIONS[:pids])
    File.open(File.expand_path(OPTIONS[:pids] + "/#{name}.pid"), "w+") { |f| f.write(id) }
  end
Register or log in to add new notes.