Class: GitPreCommitDebuggerPointsChecker::Runner
- Inherits:
-
Object
- Object
- GitPreCommitDebuggerPointsChecker::Runner
- Defined in:
- lib/git_pre_commit_debugger_points_checker.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.disable! ⇒ Object
8 9 10 |
# File 'lib/git_pre_commit_debugger_points_checker.rb', line 8 def self.disable! system('rm -rf ./.git/hooks/pre-commit') end |
.enable! ⇒ Object
4 5 6 |
# File 'lib/git_pre_commit_debugger_points_checker.rb', line 4 def self.enable! new.enable end |
Instance Method Details
#enable ⇒ Object
12 13 14 15 16 |
# File 'lib/git_pre_commit_debugger_points_checker.rb', line 12 def enable system('mkdir -p ./.git/hooks') write_pre_commit_hook create_pre_commit_ignore end |