Module: TestServer::Cli::Helper
- Defined in:
- lib/test_server/cli/helper.rb
Instance Method Summary collapse
Instance Method Details
#pid(config = TestServer.config) ⇒ Object
5 6 7 8 9 |
# File 'lib/test_server/cli/helper.rb', line 5 def pid(config = TestServer.config) ::File.read(config.pid_file).chomp rescue Errno::ENOENT 'Stale PID-file' end |