Class: OxenDeployer::Subversion
- Inherits:
-
Object
- Object
- OxenDeployer::Subversion
- Defined in:
- lib/oxen_deployer/subversion.rb
Instance Method Summary collapse
-
#checkout(revision, destination) ⇒ Object
Returns the command that will check out
revision
from the repository into directorydestination
. -
#export(revision_or_source, destination) ⇒ Object
Returns the command that will export
revision
from the repository into the directorydestination
.
Instance Method Details
#checkout(revision, destination) ⇒ Object
Returns the command that will check out revision
from the repository into directory destination
11 12 13 |
# File 'lib/oxen_deployer/subversion.rb', line 11 def checkout(revision, destination) "#{svn_cmd} co -r #{revision} #{repository} #{destination}" end |
#export(revision_or_source, destination) ⇒ Object
Returns the command that will export revision
from the repository into the directory destination
.
19 20 21 22 23 24 25 26 |
# File 'lib/oxen_deployer/subversion.rb', line 19 def export(revision_or_source, destination) "#{svn_cmd} #{deploy_via} " + if revision_or_source =~ /^(\d+|head)$/i then "-r #{revision_or_source} #{repository} #{destination}" else "#{revision_or_source} #{destination}" end end |