Sha256: bff7ec868962866db241217f070a921124a432a7ec39469e49b8de0d1c7f7808
Contents?: true
Size: 721 Bytes
Versions: 7
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true require "sod" module Pennyworth module CLI module Actions # Handles the RubyGem action. class Gem < Sod::Action include Import[:kernel] description "Render Alfred RubyGems script filter." on "--gems", argument: "[HANDLE]" default { Container[:configuration].ruby_gems_owner } def initialize(processor: Processor.for_gems, **) super(**) @processor = processor end def call handle = nil endpoint = "owners/#{handle || default}/gems.json" kernel.puts processor.call(endpoint).to_json end private attr_reader :processor end end end end
Version data entries
7 entries across 7 versions & 1 rubygems