Class: Pennyworth::CLI::Actions::Gem
- Inherits:
-
Sod::Action
- Object
- Sod::Action
- Pennyworth::CLI::Actions::Gem
- Defined in:
- lib/pennyworth/cli/actions/gem.rb
Overview
Handles the RubyGem action.
Instance Method Summary collapse
- #call(handle = nil) ⇒ Object
-
#initialize(processor: Processor.for_gems) ⇒ Gem
constructor
A new instance of Gem.
Constructor Details
Instance Method Details
#call(handle = nil) ⇒ Object
23 24 25 26 |
# File 'lib/pennyworth/cli/actions/gem.rb', line 23 def call handle = nil endpoint = "owners/#{handle || default}/gems.json" kernel.puts processor.call(endpoint).to_json end |