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

- old
+ new

@@ -3,21 +3,21 @@ module Pennyworth module CLI module Actions # Handles the HTTP statuses action. class HTTPStatuses - def initialize processor: Processor.for_http_statuses, container: Container + include Pennyworth::Import[:logger] + + def initialize processor: Processor.for_http_statuses, **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