Class: CryptReboot::Cli::ParamsParsingExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/crypt_reboot/cli/params_parsing_executor.rb

Overview

Interprets parameters, executes everything and returns callable object

Instance Method Summary collapse

Instance Method Details

#call(raw_params) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/crypt_reboot/cli/params_parsing_executor.rb', line 7

def call(raw_params)
  params = parser.call(raw_params)
  handle_action_params!(params) or configure_and_exec(params)
rescue StandardError, Interrupt => e
  raise if debug?

  sad_exiter_class.new(error_message(e))
end