Method: Overcommit::Hook::PreCommit::LicenseFinder#run
- Defined in:
- lib/overcommit/hook/pre_commit/license_finder.rb
#run ⇒ Object
5 6 7 8 9 10 |
# File 'lib/overcommit/hook/pre_commit/license_finder.rb', line 5 def run result = execute(command) return :pass if result.success? output = result.stdout + result.stderr [:fail, output] end |