lib/pennyworth/cli/actions/git_hub.rb in pennyworth-14.2.1 vs lib/pennyworth/cli/actions/git_hub.rb in pennyworth-14.3.0
- old
+ new
@@ -3,21 +3,17 @@
module Pennyworth
module CLI
module Actions
# Handles the GitHub action.
class GitHub
- include Pennyworth::Import[:logger]
+ include Pennyworth::Import[:kernel]
def initialize(processor: Processor.for_projects, **)
super(**)
@processor = processor
end
- def call endpoint
- processor.call(endpoint)
- .to_json
- .then { |json| logger.info { json } }
- end
+ def call(endpoint) = kernel.puts processor.call(endpoint).to_json
private
attr_reader :processor
end