Class: Bauditor::CLI
- Inherits:
-
Thor
- Object
- Thor
- Bauditor::CLI
- Defined in:
- lib/bauditor/cli.rb
Instance Method Summary collapse
Instance Method Details
#audit ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/bauditor/cli.rb', line 27 def audit puts if [:repos].nil? && [:config].nil? puts 'Please provide either a list of repos (--repos=one two)' puts 'or a configuraiton file --config=repos.cfg' exit 1 end @cwd = Dir.getwd setup_dirs Dir.chdir repo_path update_db set_repos self.summary = {} audit_repos summary_report ensure teardown end |