R. Tyler Croy
3a2a53be95
Remove ALL_PROCESSES and default the name arguments to #start/#stop to nil
2012-04-11 10:25:58 -07:00
R. Tyler Croy
b2bf95479e
Refactor #stop to reference ALL_PROCESSES for a bit clearer readability
2012-04-10 20:35:59 -07:00
R. Tyler Croy
48f764e347
Refactor #spawn_processes into #start(name)
...
When passed nil (aka ALL_PROCESSES) #start will start all processes in the
Procfile as per existing behavior
2012-04-10 20:35:59 -07:00
R. Tyler Croy
de62d0655e
Re-name the main Foreman::Engine method to #run to avoid a name collision with #start(name)
2012-04-10 20:35:59 -07:00
R. Tyler Croy
38aecff886
When executing #stop(nil), all processes should be sent the signal
2012-04-10 20:35:58 -07:00
R. Tyler Croy
e4a3215257
Re-implement #terminate_gracefully with #stop(name)
2012-04-10 20:19:23 -07:00
R. Tyler Croy
c705b5fbef
Add #stop method on Foreman::Engine for stopping certain named processes
...
This will make embedding foreman "nicer" since the embedder can then stop
a specific process (e.g. turning off a service for an integration fail-over test)
2012-04-10 20:10:51 -07:00
R. Tyler Croy
c23dbb79af
Provide a useful error if foreman check fails to find a Procfile
...
Fixes #152
2012-02-21 17:27:15 -08:00