Module: Capistrano::Svn::DefaultStrategy
- Defined in:
- lib/capistrano/svn.rb
Instance Method Summary collapse
- #check ⇒ Object
- #clone ⇒ Object
- #fetch_revision ⇒ Object
- #release ⇒ Object
- #test ⇒ Object
- #update ⇒ Object
Instance Method Details
#check ⇒ Object
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 |
#clone ⇒ Object
26 27 28 |
# File 'lib/capistrano/svn.rb', line 26 def clone svn :checkout, repo_url, repo_path end |
#fetch_revision ⇒ Object
38 39 40 |
# File 'lib/capistrano/svn.rb', line 38 def fetch_revision context.capture(:svnversion, repo_path) end |
#release ⇒ Object
34 35 36 |
# File 'lib/capistrano/svn.rb', line 34 def release svn :export, "--force", ".", release_path end |
#test ⇒ Object
16 17 18 |
# File 'lib/capistrano/svn.rb', line 16 def test test! " [ -d #{repo_path}/.svn ] " end |
#update ⇒ Object
30 31 32 |
# File 'lib/capistrano/svn.rb', line 30 def update svn :update end |