Class: GitReport::Hook

Inherits:
Object
  • Object
show all
Defined in:
lib/hook.rb

Class Method Summary collapse

Class Method Details

.remove!Object



12
13
14
# File 'lib/hook.rb', line 12

def self.remove!
  remove_hook! if (file_exists? hook_file)
end

.set!Object

creates a hook file if not exists and adds our hook line if it does not exist already



7
8
9
10
# File 'lib/hook.rb', line 7

def self.set!
  create_hook_file! unless (file_exists? hook_file)
  set_hook!
end