lib/builderator/patch/thor-actions.rb in builderator-1.2.3.pre.beta.1 vs lib/builderator/patch/thor-actions.rb in builderator-1.3.0

- old
+ new

@@ -80,9 +80,15 @@ end end end end + alias_method :thor_run, :run + def run(command, config = {}) + thor_run(command, config) + fail "Command failed: #{command}" if $?.exitstatus != 0 + end + ## # Make `template` load from a sane path and render in the context of Config ## def template(source, destination, config = {}) content = ERB.new(Builderator::Util.source_path(source).binread,