Sha256: 40b1090b73c3c197a1da6e49e0e6a8b6f3ea72cbf5b1874aca0104d213c27fe1

Contents?: true

Size: 214 Bytes

Versions: 3

Compression:

Stored size: 214 Bytes

Contents

#!/usr/bin/env ruby

if system("which rvm > /dev/null")
  cmd = "rvm default do ruby -rrubygems "
else
  cmd = "ruby -rrubygems "
end

cmd << %Q{-e "require 'pre-commit'; PreCommit.run"}

exit(system(cmd) ? 0 : 1)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pre-commit-0.3.1 templates/pre-commit-hook
pre-commit-0.3.0 templates/pre-commit-hook
pre-commit-0.2.0 templates/pre-commit-hook