Method: God::CLI::Run#attach

Defined in:
lib/god/cli/run.rb

#attachObject



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/god/cli/run.rb', line 27

def attach
  process = System::Process.new(@options[:attach])
  Thread.new do
    loop do
      unless process.exists?
        applog(nil, :info, "Going down because attached process #{@options[:attach]} exited")
        exit!
      end
      sleep 5
    end
  end
end