Class: Heroku::Forward::Backends::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku/forward/backends/base.rb

Direct Known Subclasses

Puma, Thin, Unicorn

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



5
6
7
# File 'lib/heroku/forward/backends/base.rb', line 5

def application
  @application
end

#environmentObject

Returns the value of attribute environment.



5
6
7
# File 'lib/heroku/forward/backends/base.rb', line 5

def environment
  @environment
end

#pidObject

Returns the value of attribute pid.



5
6
7
# File 'lib/heroku/forward/backends/base.rb', line 5

def pid
  @pid
end

#socketObject

Returns the value of attribute socket.



5
6
7
# File 'lib/heroku/forward/backends/base.rb', line 5

def socket
  @socket
end

Instance Method Details

#spawned?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/heroku/forward/backends/base.rb', line 14

def spawned?
  !!@spawned
end

#terminate!Object



7
8
9
10
11
12
# File 'lib/heroku/forward/backends/base.rb', line 7

def terminate!
  return false unless spawned?
  Process.kill 'QUIT', @pid
  @spawned = false
  true
end