Sha256: ae30fddf62c5e281dacf11abcaa19774b242f20d9e79fadac49bda780fb25e8b

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 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 StandardError => e
    puts "Error: #{e.message} in .githook/config.rb"
    exit 1
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git-hook-0.2.1 lib/githook/config.rb
git-hook-0.2.0 lib/githook/config.rb
git-hook-0.1.9 lib/githook/config.rb