Class | Foreman::Engine |
In: |
lib/foreman/engine.rb
|
Parent: | Object |
HANDLED_SIGNALS | = | [ :TERM, :INT, :HUP, :USR1, :USR2 ] | The signals that the engine cares about. |
env | [R] | |
options | [R] | |
processes | [R] |
Invoke the real handler for signal sig. This shouldn‘t be called directly by signal handlers, as it might invoke code which isn‘t re-entrant.
@param [Symbol] sig the name of the signal to be handled
Send a signal to the whole process group.
@param [String] signal The signal to send
Load a .env file into the env for this Engine
@param [String] filename A .env file to load into the environment
Get the Process for a specifid name
@param [String] name The process name
@returns [Foreman::Process] The Process for the specified name
Register a process to be run by this Engine
@param [String] name A name for this process @param [String] command The command to run @param [Hash] options
@option options [Hash] :env A custom environment for this process