Class: Pennyworth::CLI::Actions::RubyGems
- Inherits:
-
Object
- Object
- Pennyworth::CLI::Actions::RubyGems
- Defined in:
- lib/pennyworth/cli/actions/ruby_gems.rb
Overview
Handles the RubyGems action.
Instance Method Summary collapse
- #call(endpoint) ⇒ Object
-
#initialize(processor: Processor.for_gems, container: Container) ⇒ RubyGems
constructor
A new instance of RubyGems.
Constructor Details
Instance Method Details
#call(endpoint) ⇒ Object
13 14 15 16 17 |
# File 'lib/pennyworth/cli/actions/ruby_gems.rb', line 13 def call endpoint processor.call(endpoint) .to_json .then { |json| logger.info json } end |