Sha256: d8382a4464bb8949bc54e0ede218e1b01f10142861dd705905c5c74eaaffd165

Contents?: true

Size: 228 Bytes

Versions: 10

Compression:

Stored size: 228 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
local_pac-0.10.2 lib/local_pac/cli/helper.rb
local_pac-0.10.1 lib/local_pac/cli/helper.rb
local_pac-0.10.0 lib/local_pac/cli/helper.rb
local_pac-0.9.0 lib/local_pac/cli/helper.rb
local_pac-0.7.0 lib/local_pac/cli/helper.rb
local_pac-0.6.3 lib/local_pac/cli/helper.rb
local_pac-0.6.2 lib/local_pac/cli/helper.rb
local_pac-0.6.1 lib/local_pac/cli/helper.rb
local_pac-0.5.0 lib/local_pac/cli/helper.rb
local_pac-0.4.0 lib/local_pac/cli/helper.rb