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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a937f85c069e164f1b22267aba8b2c27be65c0a0
4
- data.tar.gz: e75533f3a212c83a781091782d19bbf50e50564d
3
+ metadata.gz: 8eae4f263ad06b3a1fd6c314443a54f5cb374b02
4
+ data.tar.gz: 246fde4205bd404a981f5a54835533a65cc49c1e
5
5
  SHA512:
6
- metadata.gz: 0f3db960a1dacf592e2ca2ba0fb46dea1bc3fdc8f0ff05f9e85b0758c6a44c74045f5bd12290974e8cbe4e562d8ab34267d950fb33b30ce8e2d2b1e3a7e7969c
7
- data.tar.gz: d926bd78da8f87cbe2ae30697f5b4fec2af9f63b3ca12f496a2bf3c7d2556cca8caf9f2d0ad3220988342721ae9036053d79916012a93c014e896b0396fbe96c
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.4'
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 existing. Skipping creating archive."
30
+ warn "#{path} does not exist. Skipping creating archive."
31
31
  end
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-tar-files
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Palmer