Module: FedoraMigrate
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/fedora_migrate/hooks.rb,
lib/fedora-migrate.rb,
lib/fedora_migrate/mover.rb,
lib/fedora_migrate/errors.rb,
lib/fedora_migrate/logger.rb,
lib/fedora_migrate/version.rb,
lib/fedora_migrate/dates_mover.rb,
lib/fedora_migrate/object_mover.rb,
lib/fedora_migrate/content_mover.rb,
lib/fedora_migrate/rights_metadata.rb,
lib/fedora_migrate/datastream_mover.rb,
lib/fedora_migrate/migration_report.rb,
lib/fedora_migrate/file_configurator.rb,
lib/fedora_migrate/migration_options.rb,
lib/fedora_migrate/permissions_mover.rb,
lib/fedora_migrate/target_constructor.rb,
lib/fedora_migrate/repository_migrator.rb,
lib/fedora_migrate/rubydora_connection.rb,
lib/fedora_migrate/rdf_datastream_mover.rb,
lib/fedora_migrate/rels_ext_datastream_mover.rb
Overview
Override this methods to perform additional actions before and after migation of objects and datastreams.
To do so, simply define a FedoraMigrate::Hooks module anywhere in you application and substitute methods for the ones listed below
Defined Under Namespace
Modules: DatastreamVerification, Errors, Hooks, MigrationOptions, Permissions Classes: ContentMover, DatastreamMover, DatesMover, FileConfigurator, Logger, MigrationReport, Mover, ObjectMover, PermissionsMover, RDFDatastreamMover, RelsExtDatastreamMover, RepositoryMigrator, RightsMetadata, RubydoraConnection, TargetConstructor
Constant Summary collapse
- VERSION =
"0.3.0"
Class Attribute Summary collapse
-
.configurator ⇒ Object
Returns the value of attribute configurator.
-
.fedora_config ⇒ Object
readonly
Returns the value of attribute fedora_config.
-
.source ⇒ Object
readonly
Returns the value of attribute source.
Class Method Summary collapse
Class Attribute Details
.configurator ⇒ Object
Returns the value of attribute configurator.
38 39 40 |
# File 'lib/fedora-migrate.rb', line 38 def configurator @configurator end |
.fedora_config ⇒ Object (readonly)
Returns the value of attribute fedora_config.
37 38 39 |
# File 'lib/fedora-migrate.rb', line 37 def fedora_config @fedora_config end |
.source ⇒ Object (readonly)
Returns the value of attribute source.
37 38 39 |
# File 'lib/fedora-migrate.rb', line 37 def source @source end |
Class Method Details
.find(id) ⇒ Object
48 49 50 |
# File 'lib/fedora-migrate.rb', line 48 def find id FedoraMigrate.source.connection.find(id) end |
.migrate_repository(args) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/fedora-migrate.rb', line 52 def migrate_repository args migrator = FedoraMigrate::RepositoryMigrator.new(args[:namespace], args[:options]) migrator.migrate_objects migrator.migrate_relationships migrator end |