lib/pennyworth/cli/actions/system/signals.rb in pennyworth-12.3.1 vs lib/pennyworth/cli/actions/system/signals.rb in pennyworth-13.0.0

- old
+ new

@@ -4,21 +4,21 @@ module CLI module Actions module System # Handles the signal action. class Signals - def initialize processor: Processor.for_system_signals, container: Container + include Pennyworth::Import[:logger] + + def initialize processor: Processor.for_system_signals, **dependencies + super(**dependencies) @processor = processor - @container = container end def call = processor.call.to_json.then { |json| logger.info { json } } private - attr_reader :processor, :container - - def logger = container[__method__] + attr_reader :processor end end end end end