Class: Raykit::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/raykit/git.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#start_timeObject

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

.branchObject



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_tagObject



10
11
12
# File 'lib/raykit/git.rb', line 10

def self.last_tag
    `git describe --abbrev=0 --tags`.strip
end