Class: Pennyworth::CLI::Actions::Gem

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/pennyworth/cli/actions/gem.rb

Overview

Handles the RubyGem action.

Instance Method Summary collapse

Constructor Details

#initialize(processor: Processor.for_gems) ⇒ Gem

Returns a new instance of Gem.



18
19
20
21
# File 'lib/pennyworth/cli/actions/gem.rb', line 18

def initialize(processor: Processor.for_gems, **)
  super(**)
  @processor = processor
end

Instance Method Details

#call(handle = default) ⇒ Object



23
# File 'lib/pennyworth/cli/actions/gem.rb', line 23

def call(handle = default) = io.puts processor.call("owners/#{handle}/gems.json").to_json