Module: Capistrano::Svn::DefaultStrategy

Defined in:
lib/capistrano/svn.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



20
21
22
23
24
# File 'lib/capistrano/svn.rb', line 20

def check
  svn_username = fetch(:svn_username) ? "--username #{fetch(:svn_username)}" : ""
  svn_password = fetch(:svn_password) ? "--password #{fetch(:svn_password)}" : ""
  test! :svn, :info, repo_url, svn_username, svn_password
end

#cloneObject



26
27
28
# File 'lib/capistrano/svn.rb', line 26

def clone
  svn :checkout, repo_url, repo_path
end

#fetch_revisionObject



38
39
40
# File 'lib/capistrano/svn.rb', line 38

def fetch_revision
  context.capture(:svnversion, repo_path)
end

#releaseObject



34
35
36
# File 'lib/capistrano/svn.rb', line 34

def release
  svn :export, "--force", ".", release_path
end

#testObject



16
17
18
# File 'lib/capistrano/svn.rb', line 16

def test
  test! " [ -d #{repo_path}/.svn ] "
end

#updateObject



30
31
32
# File 'lib/capistrano/svn.rb', line 30

def update
  svn :update
end