File: bundler-integration

package info (click to toggle)
ruby-standalone 2.7~5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 84 kB
  • sloc: sh: 95; makefile: 63; ansic: 25; ruby: 6
file content (20 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -ex

if [ -z "$AUTOPKGTEST_TMP" ]; then
  AUTOPKGTEST_TMP=$(mktemp -d)
  trap "rm -rf $AUTOPKGTEST_TMP" INT TERM EXIT
fi

cd $AUTOPKGTEST_TMP
cat > Gemfile <<EOF
source 'https://rubygems.org'
gem 'dotenv'
EOF
cat > .env <<EOF
FOO=BAR
EOF
ruby-standalone bundle install
ruby-standalone bundle exec gem list dotenv
ruby-standalone bundle exec dotenv ruby -e 'puts ENV["FOO"]' | grep BAR