Merge pull request #340 from ldmosquera/set_env_var_with_process_name

Set FOREMAN_PROCESS_NAME env var for spawned procs
This commit is contained in:
David Dollar
2013-05-03 06:42:04 -07:00
3 changed files with 14 additions and 1 deletions
+7
View File
@@ -44,6 +44,13 @@ describe "Foreman::CLI", :fakefs do
output.should =~ /test.1 \| testing/
end
end
it "sets PS variable with the process name" do
without_fakefs do
output = foreman("start -f #{resource_path("Procfile")}")
output.should =~ /ps.1 \| PS env var is ps.1/
end
end
end
end
+1
View File
@@ -2,3 +2,4 @@ echo: bin/echo echoing
env: bin/env FOO
test: bin/test
utf8: bin/utf8
ps: bin/echo PS env var is $PS