-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5047 from solidusio/waiting-for-dev/remove_solidu…
…s_frontend_from_the_installer Remove solidus_frontend option from the installer
- Loading branch information
Showing
8 changed files
with
19 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
core/lib/generators/solidus/install/app_templates/frontend/classic.rb
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
core/lib/generators/solidus/install/app_templates/payment_method/bolt.rb
This file was deleted.
Oops, something went wrong.
12 changes: 2 additions & 10 deletions
12
core/lib/generators/solidus/install/app_templates/payment_method/paypal.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
if @selected_frontend == 'classic' | ||
version = '< 1' | ||
migrations_flag = options[:migrate] ? '--auto-run-migrations' : '--skip-migrations' | ||
else | ||
version = '~> 1.0' | ||
migrations_flag = "--migrate=#{options[:migrate]}" | ||
end | ||
|
||
unless Bundler.locked_gems.dependencies['solidus_paypal_commerce_platform'] | ||
bundle_command "add solidus_paypal_commerce_platform --version='#{version}'" | ||
bundle_command "add solidus_paypal_commerce_platform --version='~> 1.0'" | ||
end | ||
|
||
generate "solidus_paypal_commerce_platform:install #{migrations_flag}" | ||
generate "solidus_paypal_commerce_platform:install --migrate=#{options[:migrate]}" |
3 changes: 1 addition & 2 deletions
3
core/lib/generators/solidus/install/app_templates/payment_method/stripe.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
unless Bundler.locked_gems.dependencies['solidus_stripe'] | ||
bundle_options = @selected_frontend == 'classic' ? "--version='< 5'" : "--version='~> 5.a'" | ||
bundle_command "add solidus_stripe #{bundle_options}" | ||
bundle_command "add solidus_stripe --version '~> 5.a'" | ||
end | ||
|
||
generate 'solidus_stripe:install' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters