Class: Zypper::Upgraderepo::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/zypper/upgraderepo/cli.rb

Overview

Interface class to run the application.

Class Method Summary collapse

Class Method Details

.startObject



226
227
228
229
230
231
232
# File 'lib/zypper/upgraderepo/cli.rb', line 226

def self.start
  options = OptParseMain.parse(ARGV)
  Upgraderepo::Builder.new(options).send(options.operation)
rescue StandardError => e
  Messages.error e
  exit e.error_code
end