Blame view

script/bootstrap 587 Bytes
9d3e514b9   John Barnette   Initial commit
1
2
  #!/bin/sh
  # Make sure all our local dependencies are available.
62a36b906   John Barnette   Fail fast
3
  set -e
9d3e514b9   John Barnette   Initial commit
4
  # FIX: only sudo if gem home isn't writable
20ad8323c   Will Farrington   Use full paths to...
5
6
7
8
  (/usr/bin/gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || {
    /usr/bin/sudo -p "Need to install Bundler for system ruby, password for sudo: " \
    /usr/bin/gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri
  }
9d3e514b9   John Barnette   Initial commit
9
10
11
12
  
  # We don't want old config hanging around.
  
  rm -rf .bundle/config
a32baeef4   John Barnette   Remove librarian-...
13
  rm -rf .librarian/puppet/config
9d3e514b9   John Barnette   Initial commit
14

9d3e514b9   John Barnette   Initial commit
15
  # Bundle install unless we're already up to date.
d4af4bf81   Will Farrington   Update our boxen ...
16
  export PATH=$(pwd)/vendor/shims:$PATH
20ad8323c   Will Farrington   Use full paths to...
17
  /usr/bin/bundle install --binstubs bin --path .bundle --quiet "$@"