Class: TrackerGitHook::StoryStatusChecker
- Inherits:
-
Object
- Object
- TrackerGitHook::StoryStatusChecker
- Defined in:
- lib/tracker_git_hook/story_status_checker.rb
Instance Method Summary collapse
- #check(message) ⇒ Object
-
#initialize(repo:) ⇒ StoryStatusChecker
constructor
A new instance of StoryStatusChecker.
Constructor Details
#initialize(repo:) ⇒ StoryStatusChecker
Returns a new instance of StoryStatusChecker.
3 4 5 |
# File 'lib/tracker_git_hook/story_status_checker.rb', line 3 def initialize(repo:) @repo = repo end |
Instance Method Details
#check(message) ⇒ Object
7 8 9 10 11 |
# File 'lib/tracker_git_hook/story_status_checker.rb', line 7 def check() if repo.current_story_id && contains_completion_keyword?() && contains_current_story_id?() repo.clear_story_id end end |