Class: Git::Catch::Runner
- Inherits:
-
Object
- Object
- Git::Catch::Runner
- Defined in:
- lib/git/catch.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/git/catch.rb', line 11 def init hooks = [ "applypatch-msg", "commit-msg", "post-update", "pre-applypatch", "pre-commit", "pre-push", "pre-rebase", "prepare-commit-msg", "update", ] config = YAML.load_file("./.git-catch.yaml") config.each do |name, files| if !hooks.include? name puts "==> Hook #{name} is not known" next end build name, files end end |