Class: GitTask
- Inherits:
-
Object
- Object
- GitTask
- Defined in:
- lib/tasks/git_task.rb
Class Method Summary collapse
Class Method Details
.get_user_email ⇒ Object
2 3 4 |
# File 'lib/tasks/git_task.rb', line 2 def self.get_user_email `git config --get user.email` end |
.remote_branch_exists?(branch) ⇒ Boolean
6 7 8 |
# File 'lib/tasks/git_task.rb', line 6 def self.remote_branch_exists?(branch) `git branch -r`.each_line.count {|l| l.include?(branch)} > 0 end |