Sha256: a0c35a35075059271c50e798557a4b3ad76399e203407f83d13f1afb85d6a954

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  module CLI
    module Actions
      module System
        # Handles the signal action.
        class Signals
          include Pennyworth::Import[:kernel]

          def initialize(processor: Processor.for_system_signals, **)
            super(**)
            @processor = processor
          end

          def call = kernel.puts processor.call.to_json

          private

          attr_reader :processor
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pennyworth-14.3.0 lib/pennyworth/cli/actions/system/signals.rb