Sha256: b4f0aa4a2b1d607ebaba10c923382b509e6f399b2bebe2296d61a043ba8bbbf3
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
#!/usr/bin/env bash set -e extension_name="solidus_braintree" # Stay away from the bundler env of the containing extension. function unbundled { ruby -rbundler -e'b = proc {system *ARGV}; Bundler.respond_to?(:with_unbundled_env) ? Bundler.with_unbundled_env(&b) : Bundler.with_clean_env(&b)' -- "$@" } # "sqlite" is set by the ORB extension instead of "sqlite3", # all other options are already in the format expected by `rails new`. test "$DB" = "sqlite" && export DB="sqlite3" rm -rf ./dummy-app rails new dummy-app \ --database=${DB:-sqlite3} \ --skip-git \ --skip-keeps \ --skip-rc \ --skip-bootsnap \ --skip-test if [ ! -d "dummy-app" ]; then echo 'dummy-app rails application failed' exit 1 fi cd ./dummy-app unbundled bundle add solidus --github solidusio/solidus --branch "${BRANCH:-main}" --version '> 0.a' unbundled bundle exec rake db:drop db:create unbundled bundle exec rails generate solidus:install --auto-accept --payment-method=none --no-seed --no-sample --admin-preview=false "$@" unbundled bundle add $extension_name --path .. unbundled bundle exec rails generate $extension_name:install --migrate --specs=all
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_braintree-3.2.0 | bin/dummy-app |