Skip to content

Commit

Permalink
Merge 98c0738 into 04d84bc
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Apr 24, 2019
2 parents 04d84bc + 98c0738 commit b2c41ec
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bin/repub
@@ -0,0 +1,18 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

begin
load File.expand_path('spring', __dir__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require_relative '../config/boot'

IO.readlines('/home/lyberadmin/repub_druids.txt').each do |druid|
puts "Republishing #{druid}"
object = Dor.find(druid)
PublishMetadataService.publish(object)
rescue StandardError => e
puts "ERR Problem with #{druid}\n" << e.inspect << "\n" << e.backtrace.join("\n")
end
puts 'Done!'

0 comments on commit b2c41ec

Please sign in to comment.