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

#error ⇒ Object

Returns the value of attribute error

Returns:

  • (Object) —

    the current value of error



98
99
100
# File 'documented/dependency_recovery.rb', line 98

def error
  @error
end

#units ⇒ Object

Returns the value of attribute units

Returns:

  • (Object) —

    the current value of units



98
99
100
# File 'documented/dependency_recovery.rb', line 98

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



100
101
102
# File 'documented/dependency_recovery.rb', line 100

def success?
  error.nil?
end