Class: DanarchyDeploy::Archiver::Svn

Inherits:
Object
  • Object
show all
Defined in:
lib/danarchy_deploy/archiver/svn.rb

Instance Method Summary collapse

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)
  @options = 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