Skip to content

Instantly share code, notes, and snippets.

@mark-cooper
Created December 11, 2014 16:32
Show Gist options
  • Save mark-cooper/a2088f416058dc2b7937 to your computer and use it in GitHub Desktop.
Save mark-cooper/a2088f416058dc2b7937 to your computer and use it in GitHub Desktop.
Make it so archivesspace can find plugin gems by installing gems to the base gems folder
#!/bin/bash
plugin="$1"
export ASPACE_LAUNCHER_BASE="$("`dirname $0`"/find-base.sh)"
cd "$ASPACE_LAUNCHER_BASE/plugins/$plugin"
if [ "$plugin" = "" ]; then
echo "Usage: $0 <plugin name>"
exit
fi
if [ "$?" != "0" ]; then
echo "Failed to find plugin: $plugin"
exit
fi
export JRUBY=
for dir in ../../gems/gems/jruby-*; do
JRUBY="$JRUBY:$dir/lib/*"
done
export GEM_HOME="$ASPACE_LAUNCHER_BASE/gems"
java $JAVA_OPTS -cp "../../lib/*$JRUBY" org.jruby.Main --1.9 ../../gems/bin/bundle install --gemfile=Gemfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment