Class: Lich::DependencyRecovery::Result

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

Overview

Result of a successful or unsuccessful recovery attempt.

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



73
74
75
# File 'documented/dependency_recovery.rb', line 73

def error
  @error
end

#installed_gemsObject

Returns the value of attribute installed_gems

Returns:

  • (Object)

    the current value of installed_gems



73
74
75
# File 'documented/dependency_recovery.rb', line 73

def installed_gems
  @installed_gems
end

#restart_requiredObject

Returns the value of attribute restart_required

Returns:

  • (Object)

    the current value of restart_required



73
74
75
# File 'documented/dependency_recovery.rb', line 73

def restart_required
  @restart_required
end

Instance Method Details

#success?Boolean

Returns whether recovery completed successfully.

Returns:

  • (Boolean)

    whether recovery completed successfully



75
76
77
# File 'documented/dependency_recovery.rb', line 75

def success?
  error.nil?
end