Method: Overcommit::Hook::PreCommit::PuppetLint#run
- Defined in:
- lib/overcommit/hook/pre_commit/puppet_lint.rb
#run ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/overcommit/hook/pre_commit/puppet_lint.rb', line 14 def run result = execute(command, args: applicable_files) output = result.stdout.chomp.gsub(/^"|"$/, '') return :pass if result.success? && output.empty? ( output.split("\n"), MESSAGE_REGEX, MESSAGE_TYPE_CATEGORIZER ) end |