Class: Pennyworth::CLI::Actions::System::Signal

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/pennyworth/cli/actions/system/signal.rb

Overview

Handles the system signal action.

Instance Method Summary collapse

Constructor Details

#initialize(processor: Processor.for_system_signals) ⇒ Signal

Returns a new instance of Signal.



17
18
19
20
# File 'lib/pennyworth/cli/actions/system/signal.rb', line 17

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

Instance Method Details

#callObject



22
# File 'lib/pennyworth/cli/actions/system/signal.rb', line 22

def call(*) = io.puts processor.call.to_json