class RspecProfiling::VCS::Git

Public Instance Methods

branch() click to toggle source
# File lib/rspec_profiling/vcs/git.rb, line 6
def branch
  `git rev-parse --abbrev-ref HEAD`.chomp
end
sha() click to toggle source
# File lib/rspec_profiling/vcs/git.rb, line 10
def sha
  `git rev-parse HEAD`.chomp
end
time() click to toggle source
# File lib/rspec_profiling/vcs/git.rb, line 14
def time
  Time.parse `git show -s --format=%ci #{sha}`
end