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
18 19 20 |
# File 'lib/capistrano/svn.rb', line 18 def check test! :svn, :info, repo_url end |
#clone ⇒ Object
22 23 24 |
# File 'lib/capistrano/svn.rb', line 22 def clone svn :checkout, repo_url, repo_path end |
#fetch_revision ⇒ Object
34 35 36 |
# File 'lib/capistrano/svn.rb', line 34 def fetch_revision context.capture(:svnversion, repo_path) end |
#release ⇒ Object
30 31 32 |
# File 'lib/capistrano/svn.rb', line 30 def release svn :export, '--force', '.', release_path end |
#test ⇒ Object
14 15 16 |
# File 'lib/capistrano/svn.rb', line 14 def test test! " [ -d #{repo_path}/.svn ] " end |
#update ⇒ Object
26 27 28 |
# File 'lib/capistrano/svn.rb', line 26 def update svn :update end |