lib/pennyworth/cli/shell.rb in pennyworth-14.1.1 vs lib/pennyworth/cli/shell.rb in pennyworth-14.1.2

- old
+ new

@@ -18,25 +18,25 @@ :text, :specification, :logger ] - def initialize parser: Parser.new, **dependencies - super(**dependencies) + def initialize(parser: Parser.new, **) + super(**) @parser = parser end def call arguments = Core::EMPTY_ARRAY - perform parser.call(arguments) + act_on parser.call(arguments) rescue OptionParser::ParseError, KeyError => error logger.error { error.message } end private attr_reader :parser - def perform configuration + def act_on configuration case configuration in action_config: Symbol => action then config.call action in action_encodings: true then encodings.call in action_git_hub: :organization git_hub.call "orgs/#{configuration.git_hub_organization}"