Module: OngrDeploy::Capistrano::Archive::DefaultStrategy
- Defined in:
- lib/ongr_deploy/scm/archive.rb
Instance Method Summary collapse
Instance Method Details
#fetch_revision ⇒ Object
17 18 19 |
# File 'lib/ongr_deploy/scm/archive.rb', line 17 def fetch_revision "" # context.capture :git, "rev-parse --short origin/#{fetch :branch}" end |
#release ⇒ Object
13 14 15 |
# File 'lib/ongr_deploy/scm/archive.rb', line 13 def release context.execute :tar, "-xzf", "#{repo_path}/current", "-C", release_path end |