class ThorFoodCritic::Tasks
Public Instance Methods
lint()
click to toggle source
# File lib/thor-foodcritic.rb, line 39 def lint review = ::FoodCritic::Linter.new.check( cookbook_paths: options[:cookbook_path], role_paths: options[:role_path], tags: options[:tags], include_rules: options[:include], fail_tags: options[:epic_fail], exclude_paths: options[:exclude_paths] ) say(review, :red) exit_if_failure(review) end
Private Instance Methods
exit_if_failure(review)
click to toggle source
# File lib/thor-foodcritic.rb, line 54 def exit_if_failure(review) review.failed? ? exit(100) : nil end