capistrano-s3_archive 0.4.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/capistrano/s3_archive/version.rb +1 -1
- data/lib/capistrano/s3_archive.rb +2 -0
- data/lib/capistrano/tasks/s3_archive.rake +3 -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: f4841cbbd83f35e5827733a6640b5c43de4783d3
|
4
|
+
data.tar.gz: 9950f891d4c208c92a5a5158c159f818613218cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10beb3c0f542359c4f95668d68059bf386fc5c3f306051e2ad3404f59f13a7cdc3fca2564e88c186b83a2fe8ea9891e4fa5f005fb58213c2dd012826339ecde8
|
7
|
+
data.tar.gz: 5baec8a0189e2243a984318914fdbe47ddd31a0222a69b50abed295253a3cbce90ee0a9e8fd8cf23fadc99d1f9e6855b0e9d2b6f88e22bfbd902cfeebdae4c6c
|
data/README.md
CHANGED
@@ -67,7 +67,8 @@ rsync_options | `['-az']` | Options used to rsync.
|
|
67
67
|
local_cache | `tmp/deploy` | Path where to extruct your archive on local for staging and rsyncing. Can be both relative or absolute.
|
68
68
|
rsync_cache | `shared/deploy` | Path where to cache your repository on the server to avoid rsyncing from scratch each time. Can be both relative or absolute.<br> Set to `nil` if you want to disable the cache.
|
69
69
|
s3_archive | `tmp/archives` | Path where to download source archives. Can be both relative or absolute.
|
70
|
-
|
70
|
+
archive_release_runner_options | { in: :groups, limit: fetch(:archive_release_runner_concurrency) } | Runner options on creating releases.
|
71
|
+
(archive_release_runner_concurrency) | 20 | Default value of runner concurrency option.
|
71
72
|
|
72
73
|
##### Experimental configration
|
73
74
|
Key | Default | Description
|
@@ -12,6 +12,8 @@ set_if_empty :rsync_cache, "shared/deploy"
|
|
12
12
|
set_if_empty :local_cache, "tmp/deploy"
|
13
13
|
set_if_empty :s3_archive, "tmp/archives"
|
14
14
|
set_if_empty :sort_proc, ->(a,b) { b.key <=> a.key }
|
15
|
+
set_if_empty :archive_release_runner_concurrency, 20
|
16
|
+
set_if_empty :archive_release_runner_options, { in: :groups, limit: fetch(:archive_release_runner_concurrency) }
|
15
17
|
|
16
18
|
module Capistrano
|
17
19
|
module S3Archive
|
@@ -5,10 +5,11 @@ namespace :s3_archive do
|
|
5
5
|
end
|
6
6
|
|
7
7
|
desc 'Check that the S3 buckets are reachable'
|
8
|
-
task :check
|
8
|
+
task :check do
|
9
9
|
run_locally do
|
10
10
|
strategy.local_check
|
11
11
|
end
|
12
|
+
|
12
13
|
on release_roles :all do
|
13
14
|
strategy.check
|
14
15
|
end
|
@@ -33,7 +34,7 @@ namespace :s3_archive do
|
|
33
34
|
|
34
35
|
desc 'Copy repo to releases'
|
35
36
|
task :create_release => :stage do
|
36
|
-
on release_roles
|
37
|
+
on release_roles(:all), fetch(:archive_release_runner_options) do |server|
|
37
38
|
execute :mkdir, '-p', release_path
|
38
39
|
strategy.release(server)
|
39
40
|
end
|