Methods, post-ASpace transformation tools, and reports to support common SC activities around ArchivesSpace. For a detailed introduction to working with this repository, see this workshop.
The ArchivesSpace API documentation can be found here: https://archivesspace.github.io/archivesspace/api/?shell#get-a-list-of-preferences-for-a-repository-and-optionally-a-user
The general data model and system architecture are described here: https://archivesspace.org/application/original-system-overview
Dependencies: aspace_helpers
depends on the archivesspace-client gem: https://github.com/lyrasis/archivesspace-client
gem install bundler
locally: push a change to git
locally: get the latest capistrano on your local machine
bundle install
locally: run capistrano
bundle install
to install the default branch run
bundle exec cap staging deploy
to deploy a different branch run
BRANCH=<name> bundle exec cap staging deploy
server (lib-jobs-staging2
or lib-jobs-prod2
): as deploy
user:
cd /opt/aspace_helpers/current
bundle install
cd out and back into current as needed to get the latest current
run your script and see it go! E.g.:
bundle exec ruby my_script_name >> my_script.log 2>&1 &
tail -300f my_script.log
aspace_helpers uses 4 environment variables to connect to Aspace:
To test that your environment has the correct environment variables set, you can run:
$ bundle exec ruby test_connection.rb
Successfully authenticated to aspace-staging.princeton.edu
You can also pass those environment variables over the command line as needed:
$ ASPACE_USER=wrong_user ASPACE_URL=http://example.com bundle exec ruby test_connection.rb
API client login failed as user [wrong_user], check username and password are correct
bundle exec rspec
bundle exec rspec spec/reports/get_MARCxml_spec.rb
bundle exec rubocop
bundle exec rubocop -a
bundle exec rubocop -A