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

- old
+ new

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