module SuperHooks
A module to interact with git hooks
It is knows if hooks are installed or not
Constants
- BINARY_NAME
The binary name Used for covenience when creating the scripts
- ROOT
The root pathname
- VERSION
The current version of
SuperHooks
Public Class Methods
installed?()
click to toggle source
Allows to look if super_hooks is installed
Example:
installed? #=> true
Returns a boolean
# File lib/super_hooks.rb, line 37 def self.installed? return false unless Git.repository? hooks_folder = File.join(Git.current_repository, '.git', 'hooks.old', '') File.exist?(hooks_folder) end