Sha256: 4c543393b7a7d58cb0b7a05490ed1f5708eca44673640ebd6c859d6843cc1bd1
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the HTTP statuses action. class HTTPStatuses include Pennyworth::Import[:logger] def initialize(processor: Processor.for_http_statuses, **) super(**) @processor = processor end def call = processor.call.to_json.then { |json| logger.info { json } } private attr_reader :processor end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pennyworth-14.2.1 | lib/pennyworth/cli/actions/http_statuses.rb |
pennyworth-14.2.0 | lib/pennyworth/cli/actions/http_statuses.rb |
pennyworth-14.1.2 | lib/pennyworth/cli/actions/http_statuses.rb |