Class: DailyLog::ScmCheck
- Inherits:
-
Object
- Object
- DailyLog::ScmCheck
- Defined in:
- lib/daily_log/scm_check.rb
Overview
Source-Code management check. Make sure the entries aren’t being checked into Git. # TODO: Allow devs to disable this in as an option # TODO: Allow devs to disable this in a .daily_log file # TODO: Add support for other SCM
Instance Method Summary collapse
-
#perform! ⇒ Object
Perform the check.
Instance Method Details
#perform! ⇒ Object
Perform the check. Print to STDOUT if there is a warning
13 14 15 16 17 18 19 |
# File 'lib/daily_log/scm_check.rb', line 13 def perform! return unless git_project? return if has_gitignore? && has_ignored_daily_logs? warn <<~TEXT You should add .daily_logs to your .gitignore file TEXT end |