Class: Upkeep::HerbSupport::ManifestDiff::Plan
- Inherits:
-
Data
- Object
- Data
- Upkeep::HerbSupport::ManifestDiff::Plan
- Defined in:
- lib/upkeep/herb/manifest_diff.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#diff_identical ⇒ Object
readonly
Returns the value of attribute diff_identical.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#new_manifest ⇒ Object
readonly
Returns the value of attribute new_manifest.
-
#new_topology_signature ⇒ Object
readonly
Returns the value of attribute new_topology_signature.
-
#old_manifest ⇒ Object
readonly
Returns the value of attribute old_manifest.
-
#old_topology_signature ⇒ Object
readonly
Returns the value of attribute old_topology_signature.
-
#operation_types ⇒ Object
readonly
Returns the value of attribute operation_types.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#topology_changed ⇒ Object
readonly
Returns the value of attribute topology_changed.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def action @action end |
#diff_identical ⇒ Object (readonly)
Returns the value of attribute diff_identical
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def diff_identical @diff_identical end |
#error ⇒ Object (readonly)
Returns the value of attribute error
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def error @error end |
#new_manifest ⇒ Object (readonly)
Returns the value of attribute new_manifest
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def new_manifest @new_manifest end |
#new_topology_signature ⇒ Object (readonly)
Returns the value of attribute new_topology_signature
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def new_topology_signature @new_topology_signature end |
#old_manifest ⇒ Object (readonly)
Returns the value of attribute old_manifest
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def old_manifest @old_manifest end |
#old_topology_signature ⇒ Object (readonly)
Returns the value of attribute old_topology_signature
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def old_topology_signature @old_topology_signature end |
#operation_types ⇒ Object (readonly)
Returns the value of attribute operation_types
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def operation_types @operation_types end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def operations @operations end |
#path ⇒ Object (readonly)
Returns the value of attribute path
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def path @path end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def reason @reason end |
#topology_changed ⇒ Object (readonly)
Returns the value of attribute topology_changed
20 21 22 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 20 def topology_changed @topology_changed end |
Instance Method Details
#gate_passed? ⇒ Boolean
34 35 36 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 34 def gate_passed? error.nil? end |
#to_h ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/upkeep/herb/manifest_diff.rb', line 38 def to_h { path: path, action: action, reason: reason, topology_changed: topology_changed, diff_identical: diff_identical, operation_types: operation_types, operations: operations, old_manifest_fingerprint: old_manifest&.fingerprint, new_manifest_fingerprint: new_manifest&.fingerprint, stable_topology: old_topology_signature == new_topology_signature, gate_passed: gate_passed?, error: error }.compact end |