Class: Unitsdb::Commands::Validate::QudtReferences
- Defined in:
- lib/unitsdb/commands/validate/qudt_references.rb
Overview
unitsdb validate qudt_references. Checks that no QUDT
reference URI is used by more than one entity of a given type.
Constant Summary collapse
- AUTHORITY =
"qudt"
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Unitsdb::Commands::Base
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/unitsdb/commands/validate/qudt_references.rb', line 11 def run db = load_database(@options[:database]) duplicates = scan(db) display(duplicates) rescue Unitsdb::Errors::DatabaseError => e raise Unitsdb::Errors::ValidationError, "Failed to validate QUDT references: #{e.}" end |