Class: Coauthor::Git::Commit
- Inherits:
-
Object
- Object
- Coauthor::Git::Commit
- Includes:
- Constants
- Defined in:
- lib/coauthor/git/commit.rb
Constant Summary
Constants included from Constants
Constants::PAIR_CONFIG_FILE, Constants::PAIR_FILE_PATH
Class Method Summary collapse
Class Method Details
.call ⇒ Object
7 8 9 10 |
# File 'lib/coauthor/git/commit.rb', line 7 def self.call return system("git commit --template #{PAIR_CONFIG_FILE}") if File.file?(PAIR_FILE_PATH) puts('Run `coauthor setup` before committing with Coauthor').colorize(:red) end |