Sha256: 436477570c6fd93bf5f535c2fa39d646df7b97b78df4891072d0adbd70b082d0

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

module Pione
  module Command
    # DaemonProcess is a class for commands that enable to daemonize.
    class DaemonProcess < FrontOwnerCommand
      prepare(:post) do
        Process.daemon(true, true) if option[:daemon]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pione-0.2.2 lib/pione/command/daemon-process.rb
pione-0.2.1 lib/pione/command/daemon-process.rb