Module: HealthInspector::ExistenceValidations
- Included in:
- Checklists::Cookbook, Checklists::DataBag, Checklists::DataBagItem, Checklists::Environment, Checklists::Role
- Defined in:
- lib/health_inspector/pairing.rb
Overview
Mixins for common validations across pairings
Instance Method Summary collapse
Instance Method Details
#validate_existence ⇒ Object
72 73 74 75 76 77 78 79 80 |
# File 'lib/health_inspector/pairing.rb', line 72 def validate_existence if local.nil? && server.nil? errors.add 'does not exist locally or on server' return end validate_local_copy_exists validate_server_copy_exists end |