Method: Quality::Runner#run_quality_with_tool
- Defined in:
- lib/quality/runner.rb
#run_quality_with_tool(tool_name, tool_exe, clazz) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/quality/runner.rb', line 43 def run_quality_with_tool(tool_name, tool_exe, clazz) suppressed = @config.skip_tools.include? tool_name installed = @gem_spec.find_all_by_name(tool_name).any? || !@which.which(tool_exe).nil? if installed && !suppressed clazz.new(self).method("quality_#{tool_name}".to_sym).call elsif !installed puts "#{tool_name} not installed" end end |