Module: RubyGitHooks
- Defined in:
- lib/ruby_git_hooks.rb,
lib/ruby_git_hooks/git_ops.rb,
lib/ruby_git_hooks/version.rb
Overview
Copyright © 2013-2014 OL2, Inc. See LICENSE.txt for details.
Defined Under Namespace
Constant Summary collapse
- CAN_FAIL_HOOKS =
This isn’t all hook names, just the ones we already support.
[ "pre-commit", "pre-receive", "commit-msg" ]
- NO_FAIL_HOOKS =
[ "post-receive", "post-commit" ]
- HOOK_NAMES =
CAN_FAIL_HOOKS + NO_FAIL_HOOKS
- VERSION =
"0.0.45"
Class Method Summary collapse
Class Method Details
.current_hook ⇒ Object
378 379 380 381 |
# 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 ⇒ Object
374 375 376 |
# File 'lib/ruby_git_hooks.rb', line 374 def self.shebang ENV['RUBYGITHOOKS_SHEBANG'] end |