Class: Capistrano::Svn

Inherits:
SCM
  • Object
show all
Defined in:
lib/capistrano/svn.rb

Defined Under Namespace

Modules: DefaultStrategy

Instance Attribute Summary

Attributes inherited from SCM

#context

Instance Method Summary collapse

Methods inherited from SCM

#check, #clone, #fetch, #fetch_revision, #initialize, #release, #release_path, #repo_path, #repo_url, #test, #test!, #update

Constructor Details

This class inherits a constructor from Capistrano::SCM

Instance Method Details

#svn(*args) ⇒ Object

execute svn in context with arguments



7
8
9
10
11
12
13
# File 'lib/capistrano/svn.rb', line 7

def svn(*args)
  args.unshift(:svn)
  args.push "--username #{fetch(:svn_username)}" if fetch(:svn_username)
  args.push "--password #{fetch(:svn_password)}" if fetch(:svn_password)
  args.push "--revision #{fetch(:svn_revision)}" if fetch(:svn_revision)
  context.execute(*args)
end