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

:nodoc:

Parameters:

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


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

def initialize(restic_path:, argv:) # :nodoc:
  @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 the value of attribute argv.

Returns:

  • (Array[String])


46
47
48
# File 'lib/yobi/errors.rb', line 46

def argv
  @argv
end

#restic_pathString (readonly)

Returns the value of attribute restic_path.

Returns:

  • (String)


46
47
48
# File 'lib/yobi/errors.rb', line 46

def restic_path
  @restic_path
end