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:
114 115 116 117 118 |
# File 'lib/yobi/errors.rb', line 114 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.
112 113 114 |
# File 'lib/yobi/errors.rb', line 112 def argv @argv end |
#timeout ⇒ Numeric (readonly)
Returns the value of attribute timeout.
112 113 114 |
# File 'lib/yobi/errors.rb', line 112 def timeout @timeout end |