Skip to content

Commit

Permalink
Merge pull request #4327 from nvandoorn/fix-install-generator-namespace
Browse files Browse the repository at this point in the history
Fix install generator on namespaced extensions
  • Loading branch information
kennyadsl authored Apr 6, 2022
2 parents 094bd7d + f5366b7 commit dddc570
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/lib/spree/testing_support/common_rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def initialize

if extension_installation_generator_exists?
puts 'Running extension installation generator...'
sh "bin/rails generate #{generator_namespace}:install --auto-run-migrations"
sh "bin/rails generate #{rake_generator_namespace}:install --auto-run-migrations"
end
end

Expand All @@ -52,6 +52,10 @@ def extension_installation_generator_exists?
def generator_namespace
"#{ENV['LIB_NAMESPACE']&.underscore || ENV['LIB_NAME']}"
end

def rake_generator_namespace
generator_namespace.gsub("/", ":")
end
end

CommonRakeTasks.new

0 comments on commit dddc570

Please sign in to comment.