lib/quality/runner.rb in quality-21.0.2 vs lib/quality/runner.rb in quality-21.0.3
- old
+ new
@@ -74,10 +74,14 @@
def tools
self.class.ancestors.map do |ancestor|
ancestor_name = ancestor.to_s
next unless ancestor_name.start_with?('Quality::Tools::')
- ancestor_name.split('::').last.underscore
+ if ancestor.respond_to? :command_name
+ ancestor.command_name
+ else
+ ancestor_name.split('::').last.underscore
+ end
end.compact
end
def ratchet_quality_cmd(cmd,
command_options,