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
Returns the value of attribute argv.
-
#restic_path ⇒ String
readonly
Returns the value of attribute restic_path.
Instance Method Summary collapse
-
#initialize(restic_path:, argv:) ⇒ ResticNotFound
constructor
:nodoc:.
Constructor Details
#initialize(restic_path:, argv:) ⇒ ResticNotFound
:nodoc:
48 49 50 51 52 |
# File 'lib/yobi/errors.rb', line 48 def initialize(restic_path:, argv:) # :nodoc: @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)
Returns the value of attribute argv.
46 47 48 |
# File 'lib/yobi/errors.rb', line 46 def argv @argv end |
#restic_path ⇒ String (readonly)
Returns the value of attribute restic_path.
46 47 48 |
# File 'lib/yobi/errors.rb', line 46 def restic_path @restic_path end |