Class: TrackerGitHook::CheckStoryIdHook

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

Instance Method Summary collapse

Instance Method Details

#filenameObject



34
35
36
# File 'lib/tracker_git_hook/installer.rb', line 34

def filename
  'commit-msg'
end

#scriptObject



27
28
29
30
31
32
# File 'lib/tracker_git_hook/installer.rb', line 27

def script
  <<-BASH
/usr/bin/env ruby -e "require 'tracker_git_hook/commit_msg';
TrackerGitHook::CommitMsg.new.run(message_file_path: ARGV[0])" $1
  BASH
end