Exception: Yobi::ResticNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/yobi/errors.rb,
sig/yobi.rbs

Overview

Raised when the Restic binary itself can't be found or executed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(restic_path:, argv:) ⇒ ResticNotFound

Returns a new instance of ResticNotFound.

Parameters:

  • restic_path: (String)
  • argv: (Array[String])


55
56
57
58
59
# File 'lib/yobi/errors.rb', line 55

def initialize(restic_path:, argv:)
  @restic_path = restic_path
  @argv = argv
  super("Restic binary not found: #{restic_path.inspect} (tried to run #{argv.inspect})")
end

Instance Attribute Details

#argvArray<String> (readonly)

Returns:

  • (Array<String>)


52
53
54
# File 'lib/yobi/errors.rb', line 52

def argv
  @argv
end

#restic_pathString (readonly)

Returns:

  • (String)


50
51
52
# File 'lib/yobi/errors.rb', line 50

def restic_path
  @restic_path
end