To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaborator-P (--pid_dir) option
-P (--pid_dir) option specifies the location to put pid files
- Background
-
- Given
-
I set the environment variables to:
variable value TREMA_LOG_DIR . TREMA_SOCKET_DIR . - And
-
a file named "null_controller.rb" with:
class NullController < Trema::Controller; end
- Scenarios
-
- -P option
-
- Given
- a directory named "pid"
- When
-
I successfully run
trema run null_controller.rb -P pid -d
- And
- sleep 3
- Then
- a file named "pid/NullController.pid" should exist
- --pid_dir option
-
- Given
- a directory named "pid"
- When
-
I successfully run
trema run null_controller.rb --pid_dir pid -d
- And
- sleep 3
- Then
- a file named "pid/NullController.pid" should exist
- "No such directory" error
-
- When
-
I run
trema run null_controller.rb -P pid -d
- Then
- the exit status should not be 0
- And
-
the stderr should contain:
No such directory
Last published over 5 years ago by Yasuhito Takamiya.