Class: TrackerGitHook::Installer

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

Instance Method Summary collapse

Constructor Details

#initialize(repo:) ⇒ Installer

Returns a new instance of Installer.



3
4
5
# File 'lib/tracker_git_hook/installer.rb', line 3

def initialize(repo:)
  @repo = repo
end

Instance Method Details

#installObject



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

def install
  @repo.install_hook(AddStoryIdHook.new)
  @repo.install_hook(CheckStoryIdHook.new)
end