Sha256: 5a2e07254552b225b722d1bb9bea15a421abcc152574d11652c9fc641fbf61ef

Contents?: true

Size: 232 Bytes

Versions: 20

Compression:

Stored size: 232 Bytes

Contents

# encoding: utf-8
module TestServer
  module Cli
    module Helper
      def pid(config = TestServer.config)
        ::File.read(config.pid_file).chomp
      rescue Errno::ENOENT
        'Stale PID-file'
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
test_server-0.5.2 lib/test_server/cli/helper.rb
test_server-0.5.1 lib/test_server/cli/helper.rb
test_server-0.5.0 lib/test_server/cli/helper.rb
test_server-0.4.1 lib/test_server/cli/helper.rb
test_server-0.4.0 lib/test_server/cli/helper.rb
test_server-0.3.7 lib/test_server/cli/helper.rb
test_server-0.3.6 lib/test_server/cli/helper.rb
test_server-0.3.5 lib/test_server/cli/helper.rb
test_server-0.3.4 lib/test_server/cli/helper.rb
test_server-0.3.2 lib/test_server/cli/helper.rb
test_server-0.3.1 lib/test_server/cli/helper.rb
test_server-0.2.4 lib/test_server/cli/helper.rb
test_server-0.2.3 lib/test_server/cli/helper.rb
test_server-0.2.2 lib/test_server/cli/helper.rb
test_server-0.2.1 lib/test_server/cli/helper.rb
test_server-0.2.0 lib/test_server/cli/helper.rb
test_server-0.1.2 lib/test_server/cli/helper.rb
test_server-0.1.1 lib/test_server/cli/helper.rb
test_server-0.1.0 lib/test_server/cli/helper.rb
test_server-0.0.11 lib/test_server/cli/helper.rb