Sha256: ffba097863207e66b57b7e6b150bc6da2a931670043925c376a31c96a679166f

Contents?: true

Size: 944 Bytes

Versions: 5

Compression:

Stored size: 944 Bytes

Contents

# frozen_string_literal: true

# This Karafka component is a Pro component under a commercial license.
# This Karafka component is NOT licensed under LGPL.
#
# All of the commercial components are present in the lib/karafka/pro directory of this
# repository and their usage requires commercial license agreement.
#
# Karafka has also commercial-friendly license, commercial support and commercial components.
#
# By sending a pull request to the pro components, you are agreeing to transfer the copyright of
# your code to Maciej Mensfeld.

module Karafka
  module Web
    module Pro
      module Commanding
        # Namespace for commands the process can react to
        module Commands
          # Sends a signal to stop the process
          class Stop < Base
            # Performs the command
            def call
              ::Process.kill('QUIT', ::Process.pid)
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
karafka-web-0.9.1 lib/karafka/web/pro/commanding/commands/stop.rb
karafka-web-0.9.0 lib/karafka/web/pro/commanding/commands/stop.rb
karafka-web-0.9.0.rc3 lib/karafka/web/pro/commanding/commands/stop.rb
karafka-web-0.9.0.rc2 lib/karafka/web/pro/commanding/commands/stop.rb
karafka-web-0.9.0.rc1 lib/karafka/web/pro/commanding/commands/stop.rb