Sha256: 1b19a4e05fc260ea8c339814b0301610591a486713298962e8e33ce64f19b7ae
Contents?: true
Size: 569 Bytes
Versions: 7
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require "sod" module Pennyworth module CLI module Actions # Handles the HTTP status action. class HTTPStatus < Sod::Action include Import[:kernel] description "Render Alfred HTTP statuses script filter." on "--http_statuses" def initialize(processor: Processor.for_http_statuses, **) super(**) @processor = processor end def call(*) = kernel.puts processor.call.to_json private attr_reader :processor end end end end
Version data entries
7 entries across 7 versions & 1 rubygems