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:

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


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

#argvArray[String] (readonly)

Returns the value of attribute argv.

Returns:

  • (Array[String])


85
86
87
# File 'lib/yobi/errors.rb', line 85

def argv
  @argv
end

#timeoutNumeric (readonly)

Returns the value of attribute timeout.

Returns:

  • (Numeric)


85
86
87
# File 'lib/yobi/errors.rb', line 85

def timeout
  @timeout
end