capistrano-tar-files 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/capistrano-tar-files.gemspec +1 -1
- data/lib/capistrano/tasks/tar_files.rake +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eae4f263ad06b3a1fd6c314443a54f5cb374b02
|
4
|
+
data.tar.gz: 246fde4205bd404a981f5a54835533a65cc49c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fca779abfd1faa89b5911571f67d98c9ca43dbdf127ad4ac1cff9964db2097cc18ea33db5e14da508fdf86df370b1d60a42e26a576cecca75a2182f66fdbc6b
|
7
|
+
data.tar.gz: d2321ec345d83fe36d0a3df775e68b0b2a1581b30e5efe45765785ffd8240430ba44244056d5fa59cd7e2c37426456b7befc7bcb613c90a89bc229f9413196d6
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano-tar-files'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.5'
|
8
8
|
spec.authors = ['Andy Palmer']
|
9
9
|
spec.email = ['andy@andypalmer.me']
|
10
10
|
spec.description = %q{Create/unpack tarball archives for directories that don't change often like vendor and node_modules}
|
@@ -24,10 +24,10 @@ namespace :deploy do
|
|
24
24
|
on roles :app do
|
25
25
|
execute :mkdir, "-p", "#{deploy_to}/#{fetch(:tar_location)}"
|
26
26
|
fetch(:tar_files).each do |path|
|
27
|
-
if test "[ -f #{current_path.to_s}/#{path} ]"
|
27
|
+
if test "[ -f #{current_path.to_s}/#{path} || -d #{current_path.to_s}/#{path} ]"
|
28
28
|
execute :tar, fetch(:tar_create_flags), "#{deploy_to}/#{fetch(:tar_location)}/#{path.gsub("/", "_")}.tar", "-C #{current_path.to_s}/#{path} ."
|
29
29
|
else
|
30
|
-
warn "#{path} does not
|
30
|
+
warn "#{path} does not exist. Skipping creating archive."
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|