class method self.record_pid

Ruby on Rails 2.2.3

Last seen in v2.2.3

Signature

self.record_pid(name = "#{OPTIONS[:process]}.spawner", id = Process.pid)

No documentation comment.

Parameters

name opt = "#{OPTIONS[:process]}.spawner"
id opt = Process.pid
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

Defined in railties/lib/commands/process/spawner.rb line 18 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Spawner

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close