lib/pennyworth/cli/shell.rb in pennyworth-12.0.2 vs lib/pennyworth/cli/shell.rb in pennyworth-12.1.0

- old
+ new

@@ -41,11 +41,11 @@ in action_http_statuses: true then http_statuses in action_ruby_gems: true then ruby_gems configuration in action_system_signals: true then system_signals in action_system_errors: true then system_errors in action_text: String => content then text content - in action_version: true then logger.info { Identity::VERSION_LABEL } + in action_version: true then logger.info { "Pennyworth #{specification.version}" } else usage end end # rubocop:enable Metrics/MethodLength @@ -72,9 +72,11 @@ def system_signals = actions.fetch(__method__).call def text(content) = actions.fetch(__method__).call(content) def usage = logger.unknown { parser.to_s } + + def specification = container[__method__] def logger = container[__method__] end end end