Class: Overcommit::Installer
- Inherits:
-
Object
- Object
- Overcommit::Installer
- Defined in:
- lib/overcommit/installer.rb
Overview
Manages the installation of Overcommit hooks in a git repository.
Instance Method Summary collapse
-
#initialize(logger) ⇒ Installer
constructor
A new instance of Installer.
- #run(target, options) ⇒ Object
Constructor Details
#initialize(logger) ⇒ Installer
Returns a new instance of Installer.
6 7 8 |
# File 'lib/overcommit/installer.rb', line 6 def initialize(logger) @log = logger end |
Instance Method Details
#run(target, options) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/overcommit/installer.rb', line 10 def run(target, ) @target = target = validate_target [:action] == :uninstall ? uninstall : install end |