Class: SVNClient
- Inherits:
-
Object
- Object
- SVNClient
- Defined in:
- lib/codespicuous/svn_client.rb
Instance Method Summary collapse
Instance Method Details
#log_xml ⇒ Object
9 10 11 12 13 |
# File 'lib/codespicuous/svn_client.rb', line 9 def log_xml AttemptTo.attempt_to('svn log: "' + @repository + '"', 5) { CommandRunner.run("svn log #{@repository} --xml --non-interactive ") } end |
#log_xml_for_timeframe(from, to) ⇒ Object
16 17 18 19 20 |
# File 'lib/codespicuous/svn_client.rb', line 16 def log_xml_for_timeframe(from, to) AttemptTo.attempt_to('svn log: "' + @repository + '"', 5) { CommandRunner.run("svn log #{@repository} -r{#{from.strftime("%Y-%m-%d")}}:{#{to.strftime("%Y-%m-%d")}} --xml --non-interactive ") } end |
#repository(repository) ⇒ Object
5 6 7 |
# File 'lib/codespicuous/svn_client.rb', line 5 def repository(repository) @repository = repository end |