Exception: Zypper::Upgraderepo::UnableToUpgrade

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

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ UnableToUpgrade

Returns a new instance of UnableToUpgrade.



101
102
103
# File 'lib/zypper/upgraderepo/utils.rb', line 101

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



105
106
107
# File 'lib/zypper/upgraderepo/utils.rb', line 105

def error_code
  7
end