Module: Capistrano::Svn::DefaultStrategy

Defined in:
lib/capistrano/svn.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



18
19
20
# File 'lib/capistrano/svn.rb', line 18

def check
  test! :svn, :info, repo_url
end

#cloneObject



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

def clone
  svn :checkout, repo_url, repo_path
end

#fetch_revisionObject



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

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

#releaseObject



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

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

#testObject



14
15
16
# File 'lib/capistrano/svn.rb', line 14

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

#updateObject



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

def update
  svn :update
end