lib/cms_scanner/finders/finder.rb in cms_scanner-0.0.16 vs lib/cms_scanner/finders/finder.rb in cms_scanner-0.0.17
- old
+ new
@@ -25,9 +25,18 @@
# @param [ Hash ] _opts
def aggressive(_opts = {})
end
+ # @param [ Integer ] total
+ # @param [ String ] title
+ # @param [ String ] format See https://github.com/jfelchner/ruby-progressbar/wiki/Formatting
+ #
+ # @return [ ProgressBar ]
+ def progress_bar(total, title = '', format = '%t %a <%B> (%c / %C) %P%% %e')
+ ProgressBar.create(total: total, title: title, format: format)
+ end
+
def found_by
caller_locations.each do |call|
label = call.label
next unless label == 'aggressive' || label == 'passive'