require "manuals_republisher"
require "logger"

desc "Republish manuals"
task republish_manuals: [:environment] do
  logger = Logger.new(STDOUT)
  logger.formatter = Logger::Formatter.new

  republisher = ManualsRepublisher.new(logger)
  republisher.execute
end

Convert republish manuals script to a rake task
Convert republish manuals script to a rake task

Part of #858

Converting scripts in `bin/` to rake tasks allows them to be run from
Jenkins. We also need to run this particular script as part of the fix
for bad data caused by #970 so it seems like a good time to convert it.
