Class: RspecProfiling::VCS::Svn

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_profiling/vcs/svn.rb

Instance Method Summary collapse

Instance Method Details

#branchObject



6
7
8
# File 'lib/rspec_profiling/vcs/svn.rb', line 6

def branch
  nil
end

#shaObject



10
11
12
# File 'lib/rspec_profiling/vcs/svn.rb', line 10

def sha
  `svn info -r 'HEAD' | grep "Revision" | cut -f2 -d' '`
end

#timeObject



14
15
16
# File 'lib/rspec_profiling/vcs/svn.rb', line 14

def time
  Time.parse `svn info -r 'HEAD' | grep "Last Changed Date" | cut -f4,5,6 -d' '`
end