Sha256: fdb9a471510d42a728277700172674ae0668644582b91420a22dd77579c9aabe
Contents?: true
Size: 394 Bytes
Versions: 4
Compression:
Stored size: 394 Bytes
Contents
# we must be very careful to load outside ruby code # because they are out of our control # only load outside "*.rake" when there are ".git" and ".githook" folder, and target task isn't "install" if Dir.exist?('.git') && Dir.exist?('.githook') && ARGV[0] != "install" begin load ".githook/config.rb" rescue => e puts "Error: #{e.message} in .githook/config.rb" exit 1 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
git-hook-0.1.5 | lib/githook/config.rb |
git-hook-0.1.4 | lib/githook/config.rb |
git-hook-0.1.3 | lib/githook/config.rb |
git-hook-0.1.2 | lib/githook/config.rb |