Skip to content

Commit 1b74282

Browse files
committed
Make sure the install generator will fail if an error occurs
Otherwise it will exit with 0 in any case.
1 parent 4f8a081 commit 1b74282

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/solidus_dev_support/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ module <%= class_name %>
66
class_option :auto_run_migrations, type: :boolean, default: false
77
source_root File.expand_path('templates', __dir__)
88

9+
def self.exit_on_failure?
10+
true
11+
end
12+
913
def copy_initializer
1014
template 'initializer.rb', 'config/initializers/<%= file_name %>.rb'
1115
end

0 commit comments

Comments
 (0)