Sha256: d4cd4501e0223e3c0fff0fa58fa20c9eec5615e318b8d459d7c2501004ede94e
Contents?: true
Size: 780 Bytes
Versions: 7
Compression:
Stored size: 780 Bytes
Contents
#!/usr/bin/env bash set -e extension_name="solidus_stripe" app_name="sandbox" bin/rails-new "$app_name" # Stay away from the bundler env of the containing extension. function unbundled { echo "~~> Running: $@" ruby -rbundler -e'Bundler.with_unbundled_env {system *ARGV}' -- env BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES=true "$@" } cd "./$app_name" unbundled bundle add $extension_name --path .. unbundled bundle exec rails generate $extension_name:install --migrate --specs=all if [[ -n "$SOLIDUS_STRIPE_API_KEY" ]]; then echo "~~> Creating the stripe payment method using env credentials..." unbundled bundle exec rails runner \ 'p SolidusStripe::PaymentMethod.create!(name: "SolidusStripe", preference_source: "solidus_stripe_env_credentials", position: -1)' fi
Version data entries
7 entries across 7 versions & 1 rubygems