Class: Wip::ErrorInterpreter
- Inherits:
-
Object
- Object
- Wip::ErrorInterpreter
- Defined in:
- lib/wip/error_interpreter.rb
Overview
Translates raw WSLC error output into friendlier hints.
Instance Method Summary collapse
-
#initialize(architecture: Environment.new.architecture) ⇒ ErrorInterpreter
constructor
A new instance of ErrorInterpreter.
- #interpret(output) ⇒ Object
Constructor Details
#initialize(architecture: Environment.new.architecture) ⇒ ErrorInterpreter
Returns a new instance of ErrorInterpreter.
6 7 8 |
# File 'lib/wip/error_interpreter.rb', line 6 def initialize(architecture: Environment.new.architecture) @architecture = architecture end |
Instance Method Details
#interpret(output) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/wip/error_interpreter.rb', line 10 def interpret(output) case output when /pull access denied|insufficient_scope|authorization failed/i then when %r{no matching manifest for linux/(?:amd64|arm64)}i then end end |