diff --git a/lib/knife-spork/plugins/foodcritic.rb b/lib/knife-spork/plugins/foodcritic.rb index 129725a..7047fca 100644 --- a/lib/knife-spork/plugins/foodcritic.rb +++ b/lib/knife-spork/plugins/foodcritic.rb @@ -31,7 +31,7 @@ def perform if review.failed? ui.error "Foodcritic failed!" review.to_s.split("\n").each{ |r| ui.error r.to_s } - exit(1) if config.epic_fail + exit(1) if epic_fail? else ui.info "Passed!" end