Class: RakeCommit::GitSvn
- Inherits:
-
Object
- Object
- RakeCommit::GitSvn
- Defined in:
- lib/rake_commit/git_svn.rb
Instance Method Summary collapse
- #commit ⇒ Object
- #dcommit ⇒ Object
- #git_svn_commit_with_message ⇒ Object
-
#initialize(prompt_exclusions = [], precommit = nil) ⇒ GitSvn
constructor
A new instance of GitSvn.
- #rebase ⇒ Object
Constructor Details
#initialize(prompt_exclusions = [], precommit = nil) ⇒ GitSvn
Returns a new instance of GitSvn.
3 4 5 6 |
# File 'lib/rake_commit/git_svn.rb', line 3 def initialize(prompt_exclusions = [], precommit = nil) @prompt_exclusions = prompt_exclusions @precommit = precommit end |
Instance Method Details
#commit ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rake_commit/git_svn.rb', line 8 def commit RakeCommit::Shell.system(@precommit) unless @precommit.nil? git = RakeCommit::Git.new git.add git.status rebase RakeCommit::Shell.system "rake" dcommit end |
#dcommit ⇒ Object
28 29 30 |
# File 'lib/rake_commit/git_svn.rb', line 28 def dcommit RakeCommit::Shell.system "git svn dcommit" end |
#git_svn_commit_with_message ⇒ Object
19 20 21 22 |
# File 'lib/rake_commit/git_svn.rb', line 19 def = RakeCommit::CommitMessage.new(@prompt_exclusions). RakeCommit::Shell.system "git commit -m #{.inspect}" end |
#rebase ⇒ Object
24 25 26 |
# File 'lib/rake_commit/git_svn.rb', line 24 def rebase RakeCommit::Shell.system "git svn rebase" end |