| 更新: | 2026-01-17 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2026.1 |
| URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
| 更新: | 2026-01-17 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2026.1 |
| URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
| 更新: | 2014-05-14 |
|---|---|
| バージョン: | 0.0.12 |
| 作者: | @voluntas |
| URL: | http://voluntas.github.io/ |
とても詳しいまとめがありますので、ますはそちらを見ることをオススメします。
| require 'capistrano/git' | |
| class Capistrano::Git | |
| module SubDirectoryStrategy | |
| include DefaultStrategy | |
| def release | |
| git :archive, fetch(:branch), fetch(:project_root), '| tar -x -C', release_path, "--strip=#{fetch(:project_root).count('/')+1}" | |
| end | |
| end |