Class: EmergeCLI::Commands::GlobalOptions

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/commands/global_options.rb

Instance Method Summary collapse

Instance Method Details

#before(args) ⇒ Object



9
10
11
12
13
14
# File 'lib/commands/global_options.rb', line 9

def before(args)
  log_level = args[:debug] ? ::Logger::DEBUG : ::Logger::INFO
  EmergeCLI::Logger.configure(log_level)

  EmergeCLI::Utils::VersionCheck.new.check_version
end