Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 1.08 KB

README.md

File metadata and controls

80 lines (58 loc) · 1.08 KB

Ultraman check example

ultraman check checks if one or more processes are defined in the Procfile.
It does not check the contents of the process.

short long default description
-f --procfile Procfile Specify an alternate Procfile to load

Example

Here is an example when the Procfile and .env files have the following contents

[Procfile]

exit_0: ./fixtures/exit_0.sh
exit_1: ./fixtures/exit_1.sh
loop: ./fixtures/loop.sh $MESSAGE

[.env]

MESSAGE="Hello World"

Full option example (short)

cargo run check \
  -f Procfile
valid procfile detected (exit_0, exit_1, loop)
echo $?
0

case Procfile do not exist

cargo run check \
  -f ./tmp/do_not_exist/Procfile
./tmp/do_not_exist/Procfile does not exist.
echo $?
1

Full option example (long)

cargo run check \
  --procfile Procfile
valid procfile detected (exit_0, exit_1, loop)
echo $?
0