Closed edsu closed 8 months ago
Just to note that in Rails apps like this you can also take advantage of the "rails runner" command to write a class and then execute in the context of the Rails environment of choice (and it will have the full context of the app, including any settings, libraries, gems etc.). Lets you skip some of that boilerplate setup code in a one off script like this
https://guides.rubyonrails.org/command_line.html#bin-rails-runner
Thanks for that doc link @peetucket -- I'll give that a try in the next iteration of this.
Why was this change made? 🤔
This is a temporary utility to help in GIS remediation. Currently it is only checking to see if a
data.zip
can be found in preservation. For context see: https://github.com/sul-dlss/gis-robot-suite/issues/829The utility will be modified to extract files from the data.zip and write them to an external location. Once it has been used, and remediation is complete it can be deleted.
How was this change tested? 🤨
It was run in prescat stage.