Exception: Zypper::Upgraderepo::UnableToUpgrade

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

Overview

The repository URL can’t be interpolated.

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ UnableToUpgrade

Returns a new instance of UnableToUpgrade.



199
200
201
202
# File 'lib/zypper/upgraderepo/utils.rb', line 199

def initialize(args)
  super "The repository n.#{args[:num].to_s.bold.red} named #{args[:repo].name.bold.red} " \
        "can't be upgraded, a manual check is required!"
end

Instance Method Details

#error_codeObject



204
205
206
# File 'lib/zypper/upgraderepo/utils.rb', line 204

def error_code
  7
end