class FedoraMigrate::DatesMover

Constants

Report

Public Instance Methods

migrate() click to toggle source
Calls superclass method
# File lib/fedora_migrate/dates_mover.rb, line 5
def migrate
  migrate_date_uploaded if source.respond_to?(:createdDate) && target.respond_to?(:date_uploaded)
  migrate_date_modified if source.respond_to?(:lastModifiedDate) && target.respond_to?(:date_modified)
  super
end
migrate_date_modified() click to toggle source
# File lib/fedora_migrate/dates_mover.rb, line 20
def migrate_date_modified
  target.date_modified = source.lastModifiedDate
  report.modified = source.lastModifiedDate
end
migrate_date_uploaded() click to toggle source
# File lib/fedora_migrate/dates_mover.rb, line 15
def migrate_date_uploaded
  target.date_uploaded = source.createdDate
  report.uploaded = source.createdDate
end
results_report() click to toggle source
# File lib/fedora_migrate/dates_mover.rb, line 11
def results_report
  Report.new
end