module RubyGitHooks

This module is the core of the ruby_git_hooks code. It includes the Git commands, the hook types and in general most of the interface. README.md is the best overall documentation for this package, but this is where you can dig into the lowest-level Git specifics.

This is a set of Git operations, run via shell. It permits much cleaner unit tests. Initially it was written in this way because it was very small and simple. Now it should be converted to Grit or a similar tool or library.

Copyright (C) 2013-2014 OL2, Inc. See LICENSE.txt for details.

Constants

CAN_FAIL_HOOKS

This isn't all hook names, just the ones we already support.

HOOK_NAMES
NO_FAIL_HOOKS
VERSION

Public Class Methods

current_hook() click to toggle source
# File lib/ruby_git_hooks.rb, line 378
def self.current_hook
  RubyGitHooks::Hook.run_as_specific_githook
  RubyGitHooks::Hook.run_as_hook
end
shebang() click to toggle source
# File lib/ruby_git_hooks.rb, line 374
def self.shebang
  ENV['RUBYGITHOOKS_SHEBANG']
end