Exception: Yobi::MountTimeout

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

Instance Method Summary collapse

Constructor Details

#initialize(argv:, timeout:) ⇒ MountTimeout

Returns a new instance of MountTimeout.

Parameters:

  • argv (Array<String>)
  • timeout (Numeric)
  • argv: (Array[String])
  • timeout: (Numeric)


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

#argvArray<String> (readonly)

Returns:

  • (Array<String>)


97
98
99
# File 'lib/yobi/errors.rb', line 97

def argv
  @argv
end

#timeoutNumeric (readonly)

Returns:

  • (Numeric)


99
100
101
# File 'lib/yobi/errors.rb', line 99

def timeout
  @timeout
end