Commit Graph

275 Commits

Author SHA1 Message Date
Koen Van der Auwera 0b0324fed9 set port from .env if specified 2012-05-11 14:17:03 +02:00
David Dollar fa46a605bb 0.46.0 2012-05-02 13:19:11 -04:00
Michael Granger 053ae8f0be Add Profile load/write/append API 2012-05-02 09:30:57 -07:00
David Dollar af58af1c60 Merge pull request #187 from bkaney/master
Guard against missing Procfile in engine.rb
2012-04-29 21:00:58 -07:00
David Dollar 047f1ff5c4 0.45.0 2012-04-26 17:49:35 -04:00
Phil Hagelberg 7b85ad7c1a Create and chown log dir in upstart export. 2012-04-24 17:24:53 -07:00
Brian Kaney 91a87049db Guard against missing Procfile in engine.rb
Should be able to 'foreman run <task>' without a Procfile.  This seems true to the orig. intent as the cli does not directly check with 'run' (as it  does for 'start').
2012-04-24 15:51:14 -04:00
David Dollar 5689d75a87 0.44.0 2012-04-23 15:55:56 -04:00
David Dollar 638005403f clean up file/directory interaction, add some tests 2012-04-23 15:50:23 -04:00
Phil Hagelberg 66f76c2036 Look for .env and app_root in the same dir as the Procfile. 2012-04-20 20:59:37 -07:00
David Dollar 383c1f87af 0.43.0 2012-04-20 17:41:08 -04:00
David Dollar ce3003b026 factor out wrap_environment 2012-04-20 17:40:53 -04:00
Raphael Randschau b721fd894e per default wrap every environment value in quotes 2012-04-20 21:15:43 +02:00
Raphael Randschau dbda63263b fix supervisord export for environments containing commas 2012-04-20 09:11:25 +02:00
David Dollar 0033f9caeb 0.42.0 2012-04-18 13:02:51 -04:00
Phil Hagelberg b75337e21e Move read_environment to a public class method. 2012-04-18 09:56:17 -07:00
David Dollar 0b34f067cb Revert "Merge pull request #176 from rtyler/feature/156-foreman-stop-command"
Rewriting using a better Process API

This reverts commit dbe51832b0, reversing
changes made to 69216b4c5e.
2012-04-18 12:48:51 -04:00
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
David Dollar 39b48b566f 0.41.0 2012-03-16 16:34:32 -04:00
David Dollar 2f982ff9c7 replace term-ansicolor with built-in colorization 2012-03-16 16:34:14 -04:00
David Dollar bb3377407a Merge pull request #160 from leahpar/master
supervisord support
2012-02-24 11:49:55 -08:00
Raphael Randschau 0b3da59947 passing first export 2012-02-24 19:52:18 +01:00
David Dollar d86b0bed1f 0.40.0 2012-02-24 11:32:00 -05:00
David Dollar 12f825204b support various quoting styles in .env 2012-02-24 11:31:21 -05:00
David Dollar 62c9d1db45 remove load_env! as it's made unnecessary by foreman run 2012-02-24 11:31:21 -05:00
Raphael Randschau 1127551369 rename supervisord base template to app
add supervisord stub
2012-02-23 17:24:08 +01:00
Raphael Randschau 8cb58b8517 require supervisord export 2012-02-23 17:11:19 +01:00
Raphael Randschau d03e931b67 add supervisord export engine 2012-02-23 17:10:57 +01: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
David Dollar df8c05cd6c 0.39.0 2012-02-07 11:17:59 -05:00
David Dollar edcc4f3567 move to foreman-runner 2012-02-07 11:17:44 -05:00
David Dollar 7535f1d3d8 0.38.0 2012-02-02 17:26:42 -05:00
David Dollar 3af0dfb4ae bring back single process starting 2012-02-02 17:26:25 -05:00
David Dollar 2ec6a23fb3 force to binary encoding if supported 2012-01-29 23:02:20 -05:00
David Dollar 7dca45db57 0.37.2 2012-01-29 21:28:30 -05:00
David Dollar de54f6a5a5 0.37.1 2012-01-29 14:03:45 -05:00
David Dollar 0dff116340 use a 1.8-compatbiel method for IO.pipe 2012-01-29 14:01:13 -05:00
David Dollar 20f6ba1563 use binary pipes 2012-01-29 13:56:57 -05:00
David Dollar 347d4a0184 factor out poll_readers 2012-01-29 13:56:35 -05:00
David Dollar 8c3ef1a7af 0.37.0 2012-01-29 01:13:27 -05:00
David Dollar 2490dd2a5b put an entire line of output inside a single mutex so we don't cross the streams 2012-01-29 00:09:44 -05:00
David Dollar 2705520496 fix race condition with process termination 2012-01-29 00:09:28 -05:00
David Dollar 522fee5e9e pedantry 2012-01-29 00:08:58 -05:00
David Dollar 224fe94dc2 add more tests 2012-01-28 18:48:26 -05:00