Sha256: 393921b641b92af5f9849a2e0abc81eb8f38ed9c9a8554a3aa6725f917fdb617

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

module Overcommit::Hook::PreCommit
  # Runs `travis-lint` against any modified Travis CI files.
  #
  # @see https://github.com/travis-ci/travis.rb
  class TravisLint < Base
    def run
      result = execute(command + applicable_files)
      return :pass if result.success?

      [:fail, (result.stdout + result.stderr).strip]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
overcommit-0.27.0 lib/overcommit/hook/pre_commit/travis_lint.rb
overcommit-0.26.0 lib/overcommit/hook/pre_commit/travis_lint.rb