https://github.com/andyexeter/capistrano-tar-files
Capistrano extension to speed up deployments by creating and unpacking tarballs for vendor directories
https://github.com/andyexeter/capistrano-tar-files
capistrano copy tar
Last synced: about 1 month ago
JSON representation
Capistrano extension to speed up deployments by creating and unpacking tarballs for vendor directories
- Host: GitHub
- URL: https://github.com/andyexeter/capistrano-tar-files
- Owner: andyexeter
- License: mit
- Created: 2017-05-20T14:11:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-23T12:34:28.000Z (about 6 years ago)
- Last Synced: 2025-02-07T17:18:05.212Z (3 months ago)
- Topics: capistrano, copy, tar
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
capistrano-tar-files
=====================Capistrano v3.* extension to speed up deployments by creating and unpacking tarball archives
for directories which don't change much between releases e.g `vendor` (Composer) and `node_modules` (npm/yarn)## Installation
Add this line to your application's Gemfile:
```ruby
gem 'capistrano', '~> 3.3.0'
gem 'capistrano-tar-files'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-tar-files
## Usage
Require in `Capfile` to use the default task:
```ruby
require 'capistrano/tar_files'
```Tarballs are unpacked during `deploy:updating` and created during `deploy:finishing` as part of Capistrano's default deploy
Configurable options:
```ruby
set :tar_files, [] # default
set :tar_location, "tarballs" # default
set :tar_unpack_flags, "xf" # default
set :tar_create_flags, "cf" # default
```## Example
```ruby
# Create and unpack tarballs for these directories between releases
set :tar_files, ['vendor', 'node_modules', 'web/assets']
```## Prior Art
This extension was inspired by [capistrano-copy-files](https://github.com/capistrano/copy-files)
## License
Released under the [MIT license](LICENSE)