capistrano-s3_archive 0.3.6 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ecfcfadd59e8c957d1d85db6b15490bb3e24395
4
- data.tar.gz: c1d697b601b3e4fd0a5b57cdd6a7ee9ed38a6305
3
+ metadata.gz: a1c7d03927c1d18d1433fed2016022b4bd747398
4
+ data.tar.gz: 1bdbf2f079dfd82c8b7085e89221ad8f2669433c
5
5
  SHA512:
6
- metadata.gz: 0c5ca9d947f7fad702553e498cbd44cd555004903ae60356db4fd4a02d3731d5c088eff0defccfcca6b8db03fd8b90c255e7ebf561a7bb32e06a99b2cc1c7b76
7
- data.tar.gz: 55d26357752657c69f03c0eaf3666dcadb13661b29b86bb88d460ced0d43f2efc7ab95f64536fbf0e63869470c289f88bf2f21dcdf881a67aa8c1ab03da3c66f
6
+ metadata.gz: 2aafd36db855642ca79c1526cc15eeb0a670e914787b52d096be3b6221832d652c9244479d3e5f4e7ad9c0ac5ebb5a097bcc51eb5aa2a12ee2937d3ad79d4a65
7
+ data.tar.gz: 67ba2981f8fab96cb6cde11780fe332b156d25ef5a14f8efe8003f2d0909609ac542b3198f526a96849c9d5d8fb4a2ac5c9b35d16ea19b594456e2e48e60a1da
data/README.md CHANGED
@@ -68,6 +68,11 @@ rsync_cache | `shared/deploy` | Path where to cache your repository on the ser
68
68
  s3_archive | `tmp/archives` | Path where to download source archives. Can be both relative or absolute.
69
69
 
70
70
 
71
+ ##### Experimental configration
72
+ Key | Default | Description
73
+ --------------|---------|------------
74
+ hardlink | nil | Enable `--link-dest` option when remote rsyncing. It could speed deployment up in the case rsync_cache enabled.
75
+
71
76
  ## Development
72
77
 
73
78
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module S3Archive
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.8"
4
4
  end
5
5
  end
@@ -150,7 +150,10 @@ module Capistrano
150
150
  unless fetch(:rsync_cache).nil?
151
151
  cache = rsync_cache
152
152
  on [server] do
153
- copy = %(#{fetch(:rsync_copy)} "#{cache}/" "#{release_path}/")
153
+ link_option = if fetch(:hardlink) && test("[ `readlink #{current_path}` != #{release_path} ]")
154
+ "--link-dest `readlink #{current_path}`"
155
+ end
156
+ copy = %(#{fetch(:rsync_copy)} #{link_option} "#{cache}/" "#{release_path}/")
154
157
  execute copy
155
158
  end
156
159
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2015-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano