Sha256: 68ee7e53f0fce2f228787654490de49ffd5eafc50e2bd58547ff1913aeb36ca4
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
#!/usr/bin/env ruby require 'pathname' APP_ROOT=Pathname.new(File.expand_path(File.join(File.dirname(__FILE__),'..','..'))) HOOKS_PATH=APP_ROOT.join('.codeqa','hooks') #run each hook if one gives an error then commit will fail HOOKS_PATH.children(false).sort.each do |filename| exe=HOOKS_PATH.join(filename) ok=system(%{#{exe} APP_ROOT="#{APP_ROOT}"}) exit 1 unless ok end exit 0
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codeqa-0.5.0 | lib/templates/git_hook.rb |