Class: Pennyworth::CLI::Actions::System::Signal
- Inherits:
-
Sod::Action
- Object
- Sod::Action
- Pennyworth::CLI::Actions::System::Signal
- Defined in:
- lib/pennyworth/cli/actions/system/signal.rb
Overview
Handles the system signal action.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(processor: Processor.for_system_signals) ⇒ Signal
constructor
A new instance of Signal.
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
#call ⇒ Object
22 |
# File 'lib/pennyworth/cli/actions/system/signal.rb', line 22 def call(*) = io.puts processor.call.to_json |