Class: Lich::DependencyRecovery::Plan

Inherits:
Struct
  • Object
show all
Defined in:
documented/dependency_recovery.rb

Overview

A validated, manifest-derived set of units. Planning intentionally fetches no gem artifacts, so callers can obtain user consent before an installation changes the runtime.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



83
84
85
# File 'documented/dependency_recovery.rb', line 83

def error
  @error
end

#unitsObject

Returns the value of attribute units

Returns:

  • (Object)

    the current value of units



83
84
85
# File 'documented/dependency_recovery.rb', line 83

def units
  @units
end

Instance Method Details

#success?Boolean

Returns whether the requested units are approved and valid.

Returns:

  • (Boolean)

    whether the requested units are approved and valid



85
86
87
# File 'documented/dependency_recovery.rb', line 85

def success?
  error.nil?
end