Module: Scm::GitSvn
- Defined in:
- lib/eo/scm/git-svn.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
3 4 5 |
# File 'lib/eo/scm/git-svn.rb', line 3 def init system("git svn clone #{self.repo} #{self.path}") end |
#now_commit ⇒ Object
22 23 24 |
# File 'lib/eo/scm/git-svn.rb', line 22 def now_commit return `git log --pretty=format:%H -1` end |
#push ⇒ Object
18 19 20 |
# File 'lib/eo/scm/git-svn.rb', line 18 def push system("git svn dcommit") end |
#update ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/eo/scm/git-svn.rb', line 7 def update old_commit = now_commit system("git svn rebase") new_commit = now_commit if new_commit != old_commit && self.autorun self.autorun.split(';').each do |x| eval x end end end |