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>)
  • restic_path: (String)
  • argv: (Array[String])


58
59
60
61
62
# File 'lib/yobi/errors.rb', line 58

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>)


54
55
56
# File 'lib/yobi/errors.rb', line 54

def argv
  @argv
end

#restic_pathString (readonly)

Returns:

  • (String)


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

def restic_path
  @restic_path
end