lib/cms_scanner.rb in cms_scanner-0.0.14 vs lib/cms_scanner.rb in cms_scanner-0.0.15

- old
+ new

@@ -3,10 +3,11 @@ require 'typhoeus' require 'nokogiri' require 'active_support/inflector' require 'addressable/uri' require 'public_suffix' +require 'ruby-progressbar' # Standard Libs require 'erb' require 'fileutils' require 'pathname' # Monkey Patches @@ -55,9 +56,13 @@ formatter.output('@scan_aborted', reason: e.message, trace: e.backtrace, verbose: controllers.first.parsed_options[:verbose]) ensure + # Ensures a clean abort of Hydra + Browser.instance.hydra.abort + Browser.instance.hydra.run + formatter.beautify end # Used for convenience # @See Formatter