Sha256: 6f16afdf3569903ed812141f04dde51f14b9907e92901f6a3b50da7ca82bba89
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 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_version=`bundle exec ruby -e'require "rails"; puts Rails.version'` rails _${rails_version}_ 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.3.0 | bin/dummy-app |