Class: FedoraMigrate::RelsExtDatastreamMover
- Defined in:
- lib/fedora_migrate/rels_ext_datastream_mover.rb
Constant Summary collapse
- RELS_EXT_DATASTREAM =
"RELS-EXT".freeze
Instance Attribute Summary
Attributes inherited from Mover
Attributes included from MigrationOptions
Instance Method Summary collapse
Methods inherited from Mover
#id_component, id_component, #initialize, #results_report, #save, #target_errors
Methods included from Hooks
#after_datastream_migration, #after_object_migration, #after_rdf_datastream_migration, #before_datastream_migration, #before_object_migration, #before_rdf_datastream_migration
Methods included from MigrationOptions
#application_creates_versions?, #blacklist, #conversion_options, #forced?, #not_forced?
Constructor Details
This class inherits a constructor from FedoraMigrate::Mover
Instance Method Details
#migrate ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fedora_migrate/rels_ext_datastream_mover.rb', line 5 def migrate migrate_statements target.ldp_source.update update_index super end |
#post_initialize ⇒ Object
12 13 14 15 16 |
# File 'lib/fedora_migrate/rels_ext_datastream_mover.rb', line 12 def post_initialize @target ||= ActiveFedora::Base.find(id_component) rescue ActiveFedora::ObjectNotFoundError raise FedoraMigrate::Errors::MigrationError, "Target object was not found in Fedora 4. Did you migrate it?" end |