Class: Heroku::Forward::Backends::Base
- Inherits:
-
Object
- Object
- Heroku::Forward::Backends::Base
- Defined in:
- lib/heroku/forward/backends/base.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#socket ⇒ Object
Returns the value of attribute socket.
Instance Method Summary collapse
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
5 6 7 |
# File 'lib/heroku/forward/backends/base.rb', line 5 def application @application end |
#environment ⇒ Object
Returns the value of attribute environment.
5 6 7 |
# File 'lib/heroku/forward/backends/base.rb', line 5 def environment @environment end |
#pid ⇒ Object
Returns the value of attribute pid.
5 6 7 |
# File 'lib/heroku/forward/backends/base.rb', line 5 def pid @pid end |
#socket ⇒ Object
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
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 |