Module: HealthInspector::JsonValidations
- Included in:
- Checklists::DataBagItem, Checklists::Environment, Checklists::Role
- Defined in:
- lib/health_inspector/pairing.rb
Instance Method Summary collapse
Instance Method Details
#validate_items_are_the_same ⇒ Object
94 95 96 97 98 99 |
# File 'lib/health_inspector/pairing.rb', line 94 def validate_items_are_the_same return if server.nil? || local.nil? differences = hash_diff(server, local) errors.add differences unless differences.empty? end |