class Capistrano::Svn

Public Instance Methods

svn(*args) click to toggle source

execute svn in context with arguments

# 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