Sha256: fdeb19d4b986b0d7604699525b42c21564149fd70ead4d418a5c283b3e412988

Contents?: true

Size: 270 Bytes

Versions: 11

Compression:

Stored size: 270 Bytes

Contents

require 'qs/pid_file'

module Qs

  class ProcessSignal

    attr_reader :signal, :pid

    def initialize(daemon, signal)
      @signal = signal
      @pid = PIDFile.new(daemon.pid_file).pid
    end

    def send
      ::Process.kill(@signal, @pid)
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
qs-0.8.1 lib/qs/process_signal.rb
qs-0.8.0 lib/qs/process_signal.rb
qs-0.7.1 lib/qs/process_signal.rb
qs-0.7.0 lib/qs/process_signal.rb
qs-0.6.1 lib/qs/process_signal.rb
qs-0.6.0 lib/qs/process_signal.rb
qs-0.5.0 lib/qs/process_signal.rb
qs-0.4.0 lib/qs/process_signal.rb
qs-0.3.0 lib/qs/process_signal.rb
qs-0.2.0 lib/qs/process_signal.rb
qs-0.1.0 lib/qs/process_signal.rb