Sha256: ff825f588a741887a9a551612bdb7b7e87bb5eb55a68b272423257dabdeac347

Contents?: true

Size: 523 Bytes

Versions: 3

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

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

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

          def call = processor.call.to_json.then { |json| logger.info { json } }

          private

          attr_reader :processor
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pennyworth-14.2.1 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-14.2.0 lib/pennyworth/cli/actions/system/signals.rb
pennyworth-14.1.2 lib/pennyworth/cli/actions/system/signals.rb