Exception: Yobi::MountTimeout
- Defined in:
- lib/yobi/errors.rb,
sig/yobi.rbs
Overview
Raised by Repository#mount when Restic doesn't report itself
ready within ready_timeout: seconds.
Instance Attribute Summary collapse
- #argv ⇒ Array<String> readonly
- #timeout ⇒ Numeric readonly
Instance Method Summary collapse
-
#initialize(argv:, timeout:) ⇒ MountTimeout
constructor
A new instance of MountTimeout.
Constructor Details
#initialize(argv:, timeout:) ⇒ MountTimeout
Returns a new instance of MountTimeout.
103 104 105 106 107 |
# File 'lib/yobi/errors.rb', line 103 def initialize(argv:, timeout:) @argv = argv @timeout = timeout super("Restic mount didn't report readiness within #{timeout}s (tried to run #{argv.inspect})") end |
Instance Attribute Details
#argv ⇒ Array<String> (readonly)
97 98 99 |
# File 'lib/yobi/errors.rb', line 97 def argv @argv end |
#timeout ⇒ Numeric (readonly)
99 100 101 |
# File 'lib/yobi/errors.rb', line 99 def timeout @timeout end |