Class: DanarchyDeploy::Archiver::Svn
- Inherits:
-
Object
- Object
- DanarchyDeploy::Archiver::Svn
- Defined in:
- lib/danarchy_deploy/archiver/svn.rb
Instance Method Summary collapse
- #co(repo, path) ⇒ Object
-
#initialize(options) ⇒ Svn
constructor
A new instance of Svn.
Constructor Details
#initialize(options) ⇒ Svn
Returns a new instance of Svn.
5 6 7 |
# File 'lib/danarchy_deploy/archiver/svn.rb', line 5 def initialize() @options = end |
Instance Method Details
#co(repo, path) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/danarchy_deploy/archiver/svn.rb', line 9 def co(repo, path) puts "Checking out '#{repo}' to '#{path}'" cmd = 'svn --non-interactive --trust-server-cert ' + "co #{repo} #{path}" DanarchyDeploy::Helpers.run_command(cmd, @options) end |