Exception: Yobi::MountTimeout

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(argv:, timeout:) ⇒ MountTimeout

:nodoc:

Parameters:



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

#argvArray[String] (readonly)

Returns the value of attribute argv.

Returns:



112
113
114
# File 'lib/yobi/errors.rb', line 112

def argv
  @argv
end

#timeoutNumeric (readonly)

Returns the value of attribute timeout.

Returns:



112
113
114
# File 'lib/yobi/errors.rb', line 112

def timeout
  @timeout
end