Class: Zypper::Upgraderepo::View::Ini
- Inherits:
-
Object
- Object
- Zypper::Upgraderepo::View::Ini
- Defined in:
- lib/zypper/upgraderepo/view.rb
Direct Known Subclasses
Class Method Summary collapse
- .alternative(num, repo, max_col, alt) ⇒ Object
- .available(num, repo, max_col) ⇒ Object
- .footer ⇒ Object
- .forbidden(num, repo, max_col) ⇒ Object
- .header(max_col, upgrade = false) ⇒ Object
- .not_found(num, repo, max_col) ⇒ Object
- .redirected(num, repo, max_col, redirected) ⇒ Object
- .separator ⇒ Object
- .status(os_release) ⇒ Object
- .timeout(num, repo, max_col) ⇒ Object
- .untouched(num, repo, max_col) ⇒ Object
- .upgraded(num, repo, max_col) ⇒ Object
Class Method Details
.alternative(num, repo, max_col, alt) ⇒ Object
217 218 219 220 221 |
# File 'lib/zypper/upgraderepo/view.rb', line 217 def self.alternative(num, repo, max_col, alt) self.info num, 'Not Found', repo, false, alt[:url] puts "hint=#{alt[:message]}" puts "suggested_url=#{alt[:url]}" unless alt[:url].to_s.empty? end |
.available(num, repo, max_col) ⇒ Object
200 201 202 |
# File 'lib/zypper/upgraderepo/view.rb', line 200 def self.available(num, repo, max_col) self.info num, 'Ok', repo end |
.footer ⇒ Object
242 243 |
# File 'lib/zypper/upgraderepo/view.rb', line 242 def self. end |
.forbidden(num, repo, max_col) ⇒ Object
213 214 215 |
# File 'lib/zypper/upgraderepo/view.rb', line 213 def self.forbidden(num, repo, max_col) self.info num, 'Forbidden Path', repo, false end |
.header(max_col, upgrade = false) ⇒ Object
239 240 |
# File 'lib/zypper/upgraderepo/view.rb', line 239 def self.header(max_col, upgrade = false) end |
.not_found(num, repo, max_col) ⇒ Object
209 210 211 |
# File 'lib/zypper/upgraderepo/view.rb', line 209 def self.not_found(num, repo, max_col) self.info num, 'Not Found', repo, false end |
.redirected(num, repo, max_col, redirected) ⇒ Object
204 205 206 207 |
# File 'lib/zypper/upgraderepo/view.rb', line 204 def self.redirected(num, repo, max_col, redirected) self.info num, 'Redirected', repo, false puts "redirected_to=#{redirected}" end |
.separator ⇒ Object
235 236 237 |
# File 'lib/zypper/upgraderepo/view.rb', line 235 def self.separator puts '' end |
.status(os_release) ⇒ Object
245 246 247 248 249 250 251 252 253 |
# File 'lib/zypper/upgraderepo/view.rb', line 245 def self.status(os_release) puts '[os_release]' puts "name=#{os_release.fullname}" puts "current=#{os_release.current}" puts "next=#{os_release.next}" puts "last=#{os_release.last}" puts "available=#{os_release.newer.join(' ')}" puts "allow_unstable=#{os_release.unstable}" end |
.timeout(num, repo, max_col) ⇒ Object
223 224 225 |
# File 'lib/zypper/upgraderepo/view.rb', line 223 def self.timeout(num, repo, max_col) self.info num, 'Server Timeout', repo, false end |
.untouched(num, repo, max_col) ⇒ Object
231 232 233 |
# File 'lib/zypper/upgraderepo/view.rb', line 231 def self.untouched(num, repo, max_col) self.info num, 'Untouched', repo end |
.upgraded(num, repo, max_col) ⇒ Object
227 228 229 |
# File 'lib/zypper/upgraderepo/view.rb', line 227 def self.upgraded(num, repo, max_col) self.info num, 'Upgraded', repo end |