Exception: Yobi::MountTimeout
- Defined in:
- lib/yobi/errors.rb,
sig/yobi.rbs
Overview
Raised by Yobi::Repository#mount when Restic doesn't report itself
ready within ready_timeout: seconds.
Instance Attribute Summary collapse
-
#argv ⇒ Array[String]
readonly
Returns the value of attribute argv.
-
#timeout ⇒ Numeric
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(argv:, timeout:) ⇒ MountTimeout
constructor
:nodoc:.
Constructor Details
#initialize(argv:, timeout:) ⇒ MountTimeout
:nodoc:
87 88 89 90 91 |
# File 'lib/yobi/errors.rb', line 87 def initialize(argv:, timeout:) # :nodoc: @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)
Returns the value of attribute argv.
85 86 87 |
# File 'lib/yobi/errors.rb', line 85 def argv @argv end |
#timeout ⇒ Numeric (readonly)
Returns the value of attribute timeout.
85 86 87 |
# File 'lib/yobi/errors.rb', line 85 def timeout @timeout end |