lib/pennyworth/cli/actions/ruby_gems.rb in pennyworth-12.3.1 vs lib/pennyworth/cli/actions/ruby_gems.rb in pennyworth-13.0.0
- old
+ new
@@ -3,25 +3,25 @@
module Pennyworth
module CLI
module Actions
# Handles the RubyGems action.
class RubyGems
- def initialize processor: Processor.for_gems, container: Container
+ include Pennyworth::Import[:logger]
+
+ def initialize processor: Processor.for_gems, **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