Class: TrackerGitHook::Installer
- Inherits:
-
Object
- Object
- TrackerGitHook::Installer
- Defined in:
- lib/tracker_git_hook/installer.rb
Instance Method Summary collapse
-
#initialize(repo:) ⇒ Installer
constructor
A new instance of Installer.
- #install ⇒ Object
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
#install ⇒ Object
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 |