A Sinatra based web app to automate submissions to APTrust
This software downloads a selection of files from a remote server, creates a BagIt bag based on the APTrust bagging profile, and uploads it to APTrust's S3 receving bucket.
- Ruby 1.9.3 or higher
- Unix tools: rsync, tar, df, awk
- [Library of Congress BagIt] (https://github.com/LibraryOfCongress/bagit-java)
- [File Information Tool Set] (http://projects.iq.harvard.edu/fits)
- [AWS Command Line Interface] (http://aws.amazon.com/cli/)
How do I get set up?
To run the software you'll need to configure settings in the APTrustAuto.rb file to match your server enviroment.
The software uses rsync over ssh to transfer files from the remote server to the machine running the automation software. For this to work, you'll need to set up public key authentication for the user that runs the server.
After that, run:
bundle install rackup
The server should be up and running. If you are using Passenger, you'll need to configure it to run the application as the user who you've set up authentication for.
To run the tests, alter them to match your server enviroment and then run:
bundle exec rake test