Class: Tuya::TuyaGit
- Inherits:
-
Object
- Object
- Tuya::TuyaGit
- Defined in:
- lib/tycli/git.rb
Class Method Summary collapse
Class Method Details
.commit_all(msg) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/tycli/git.rb', line 3 def self.commit_all(msg) puts "commit message can not be nil".red unless msg `git add -A` `git commit -am '#{msg}'` end |
.commit_file(file, msg) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/tycli/git.rb', line 11 def self.commit_file(file, msg) puts "commit message/file can not be nil".red unless msg `git add #{file}` `git commit -m '#{msg}'` end |