Sha256: b7c7d991fecec132b4a85a605f354e136d0891f842945041e23256d758bb98ce

Contents?: true

Size: 794 Bytes

Versions: 36

Compression:

Stored size: 794 Bytes

Contents

#!/bin/bash

set -eux

export PATH=~/bin:$PATH

cat << 'EOF' > ~/.gemrc
---
:backtrace: false
:bulk_threshold: 1000
:sources:
- https://rubygems.org
:update_sources: true
:verbose: true
benchmark: false
install: "--no-ri --no-rdoc --no-document"
update: "--no-ri --no-rdoc --no-document"
EOF

gem install bundler # upgrade bundler

# In original ufo source and install ufo
cd $CODEBUILD_SRC_DIR # ufo folder - in case code is added later above this that uses cd
bundle install
bundle exec rake install

mkdir -p ~/bin
cat << EOF > ~/bin/ufo
#!/bin/bash
# If there's a Gemfile, assume we're in a ufo project with a Gemfile for ufo
if [ -f Gemfile ]; then
  exec bundle exec $CODEBUILD_SRC_DIR/exe/ufo "\$@"
else
  exec $CODEBUILD_SRC_DIR/exe/ufo "\$@"
fi
EOF

cat ~/bin/ufo

chmod a+x ~/bin/ufo

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ufo-6.3.13 .cody/shared/script/install/ufo.sh
ufo-6.3.12 .cody/shared/script/install/ufo.sh
ufo-6.3.11 .cody/shared/script/install/ufo.sh
ufo-6.3.10 .cody/shared/script/install/ufo.sh
ufo-6.3.9 .cody/shared/script/install/ufo.sh
ufo-6.3.8 .cody/shared/script/install/ufo.sh
ufo-6.3.7 .cody/shared/script/install/ufo.sh
ufo-6.3.6 .cody/shared/script/install/ufo.sh
ufo-6.3.5 .cody/shared/script/install/ufo.sh
ufo-6.3.4 .cody/shared/script/install/ufo.sh
ufo-6.3.3 .cody/shared/script/install/ufo.sh
ufo-6.3.2 .cody/shared/script/install/ufo.sh
ufo-6.3.1 .cody/shared/script/install/ufo.sh
ufo-6.3.0 .cody/shared/script/install/ufo.sh
ufo-6.2.5 .cody/shared/script/install/ufo.sh
ufo-6.2.4 .cody/shared/script/install/ufo.sh
ufo-6.2.3 .cody/shared/script/install/ufo.sh
ufo-6.2.2 .cody/shared/script/install/ufo.sh
ufo-6.2.1 .cody/shared/script/install/ufo.sh
ufo-6.2.0 .cody/shared/script/install/ufo.sh