lib/pennyworth/cli/shell.rb in pennyworth-14.2.1 vs lib/pennyworth/cli/shell.rb in pennyworth-14.3.0
- old
+ new
@@ -9,17 +9,18 @@
include Actions::Import[
:config,
:encodings,
:git_hub,
:http_statuses,
+ :kernel,
+ :logger,
:ruby_gems,
+ :specification,
:standard_errors,
:system_errors,
:system_signals,
:text,
- :specification,
- :logger
]
def initialize(parser: Parser.new, **)
super(**)
@parser = parser
@@ -47,11 +48,11 @@
ruby_gems.call "owners/#{configuration.ruby_gems_owner}/gems.json"
in action_standard_errors: true then standard_errors.call
in action_system_errors: true then system_errors.call
in action_system_signals: true then system_signals.call
in action_text: String => content then text.call content
- in action_version: true then logger.info { specification.labeled_version }
- else logger.any { parser.to_s }
+ in action_version: true then kernel.puts specification.labeled_version
+ else kernel.puts parser.to_s
end
end
end
end
end