Class: TrackerGitHook::AddStoryIdHook

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

Instance Method Summary collapse

Instance Method Details

#filenameObject



21
22
23
# File 'lib/tracker_git_hook/installer.rb', line 21

def filename
  'prepare-commit-msg'
end

#scriptObject



14
15
16
17
18
19
# File 'lib/tracker_git_hook/installer.rb', line 14

def script
  "/usr/bin/env ruby -e \"require 'tracker_git_hook/prepare_commit_msg';\nTrackerGitHook::PrepareCommitMsg.new.prepare message_file_path: ARGV[0]\" $1\n  BASH\nend\n"