Sha256: 4882e2f40e1505c6162334070bdaf79a6219a578a4eb3c4460abe4ca11d02b9e

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

require 'ostruct'
require 'daemons'

class OpenStruct
  def to_h
    @table
  end
end

module Daemons
  class PidFile 
    # we override this method so creating pid files is fork-safe
    def filename 
      File.join(@dir, "#{@progname}#{Process.pid}.pid")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
auxesis-flapjack-0.3.8 lib/flapjack/patches.rb
auxesis-flapjack-0.4.1 lib/flapjack/patches.rb
auxesis-flapjack-0.4.2 lib/flapjack/patches.rb
auxesis-flapjack-0.4.5 lib/flapjack/patches.rb
auxesis-flapjack-0.4.6 lib/flapjack/patches.rb