Module: Scm::Svn
- Defined in:
- lib/eo/scm/svn.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
3 4 5 |
# File 'lib/eo/scm/svn.rb', line 3 def init system("svn co #{self.repo} #{self.path}") end |
#now_commit ⇒ Object
16 17 18 |
# File 'lib/eo/scm/svn.rb', line 16 def now_commit return `svn -l 1 log -q | sed '1d;3d' | awk '{print $1}'` end |
#update ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/eo/scm/svn.rb', line 7 def update old_commit = now_commit system("svn update") new_commit = now_commit if new_commit != old_commit && self.autorun self.autorun.split(';').each { |x| eval x } end end |