Module: HealthInspector::ExistenceValidations

Overview

Mixins for common validations across pairings

Instance Method Summary collapse

Instance Method Details

#validate_existenceObject



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