Sha256: c226dc93b1683b2d37c34df55b4b41886bc6cc7ed741611173a9e573c601dc6e

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 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 lono source and install lono
cd $CODEBUILD_SRC_DIR # lono folder - in case code is added later above this that uses cd
bundle install
bundle exec rake install

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

cat ~/bin/lono

chmod a+x ~/bin/lono

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 .cody/shared/script/install/lono.sh
lono-8.0.0.pre.rc5 .cody/shared/script/install/lono.sh
lono-8.0.0.pre.rc4 .cody/shared/script/install/lono.sh
lono-8.0.0.pre.rc3 .cody/shared/script/install/lono.sh
lono-8.0.0.pre.rc2 .cody/shared/script/install/lono.sh
lono-8.0.0.pre.rc1 .cody/shared/script/install/lono.sh