Class: Raykit::Git
- Inherits:
-
Object
- Object
- Raykit::Git
- Defined in:
- lib/raykit/git.rb
Instance Attribute Summary collapse
-
#start_time ⇒ Object
Returns the value of attribute start_time.
Class Method Summary collapse
Instance Attribute Details
#start_time ⇒ Object
Returns the value of attribute start_time.
3 4 5 |
# File 'lib/raykit/git.rb', line 3 def start_time @start_time end |
Class Method Details
.branch ⇒ Object
5 6 7 8 |
# File 'lib/raykit/git.rb', line 5 def self.branch branches = `git branch` branches.match(/\* ([\w\d.]+)/).captures[0] end |
.last_tag ⇒ Object
10 11 12 |
# File 'lib/raykit/git.rb', line 10 def self.last_tag `git describe --abbrev=0 --tags`.strip end |