Class: CMSScanner::Scan
- Inherits:
-
Object
- Object
- CMSScanner::Scan
- Defined in:
- lib/cms_scanner.rb
Overview
Scan
Instance Method Summary collapse
- #controllers ⇒ Controllers
- #datastore ⇒ Hash
-
#formatter ⇒ Object
Used for convenience.
-
#initialize {|_self| ... } ⇒ Scan
constructor
A new instance of Scan.
- #run ⇒ Object
Constructor Details
Instance Method Details
#controllers ⇒ Controllers
43 44 45 |
# File 'lib/cms_scanner.rb', line 43 def controllers @controllers ||= NS::Controllers.new end |
#datastore ⇒ Hash
65 66 67 |
# File 'lib/cms_scanner.rb', line 65 def datastore controllers.first.datastore end |
#formatter ⇒ Object
Used for convenience
60 61 62 |
# File 'lib/cms_scanner.rb', line 60 def formatter controllers.first.formatter end |
#run ⇒ Object
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/cms_scanner.rb', line 47 def run controllers.run rescue => e formatter.output('@scan_aborted', reason: e., trace: e.backtrace, verbose: controllers.first.[:verbose]) ensure formatter.beautify end |