From 98e9b10731998ba15de6d8e15a2715b7861a050f Mon Sep 17 00:00:00 2001 From: Noah Silvera Date: Wed, 17 Mar 2021 07:29:34 -0700 Subject: [PATCH] Only run spring stop if available The `spring stop` command in the install generator was being run even if spring is not installed. We should only run this command if Spring is available. Co-authored-by: Mike Conlin --- core/lib/generators/solidus/install/install_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/generators/solidus/install/install_generator.rb b/core/lib/generators/solidus/install/install_generator.rb index 2c4549a4c83..dbc6d5c5b96 100644 --- a/core/lib/generators/solidus/install/install_generator.rb +++ b/core/lib/generators/solidus/install/install_generator.rb @@ -182,7 +182,7 @@ def run_bundle_install_if_needed_by_plugins end bundle_cleanly{ run "bundle install" } if @plugins_to_be_installed.any? - run "spring stop" + run "spring stop" if defined?(Spring) @plugin_generators_to_run.each do |plugin_generator_name| generate "#{plugin_generator_name} --skip_migrations=true"