Sha256: 34fc1b4b6b34c14592a345162fe1281cc2471c29bb079b60e13fca26c16f8abc
Contents?: true
Size: 308 Bytes
Versions: 2
Compression:
Stored size: 308 Bytes
Contents
module Overcommit::Hook::PreCommit # Runs `travis-lint` against any modified Travis CI files. class TravisLint < Base def run result = execute([executable, 'lint'] + applicable_files) return :pass if result.success? [:fail, (result.stdout + result.stderr).strip] end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jawshooah-overcommit-0.22.0 | lib/overcommit/hook/pre_commit/travis_lint.rb |
overcommit-0.21.0 | lib/overcommit/hook/pre_commit/travis_lint.rb |