Exception: Yobi::ResticNotFound
- Defined in:
- lib/yobi/errors.rb,
sig/yobi.rbs
Overview
Raised when the Restic binary itself can't be found or executed.
Instance Attribute Summary collapse
- #argv ⇒ Array<String> readonly
- #restic_path ⇒ String readonly
Instance Method Summary collapse
-
#initialize(restic_path:, argv:) ⇒ ResticNotFound
constructor
A new instance of ResticNotFound.
Constructor Details
#initialize(restic_path:, argv:) ⇒ ResticNotFound
Returns a new instance of ResticNotFound.
58 59 60 61 62 |
# File 'lib/yobi/errors.rb', line 58 def initialize(restic_path:, argv:) @restic_path = restic_path @argv = argv super("Restic binary not found: #{restic_path.inspect} (tried to run #{argv.inspect})") end |
Instance Attribute Details
#argv ⇒ Array<String> (readonly)
54 55 56 |
# File 'lib/yobi/errors.rb', line 54 def argv @argv end |
#restic_path ⇒ String (readonly)
52 53 54 |
# File 'lib/yobi/errors.rb', line 52 def restic_path @restic_path end |