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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f72320b28b9901449334c25d24b746db58fd323
4
- data.tar.gz: 8df7ac5b2832242c59a2974f0ff89d24e233960d
3
+ metadata.gz: f4841cbbd83f35e5827733a6640b5c43de4783d3
4
+ data.tar.gz: 9950f891d4c208c92a5a5158c159f818613218cd
5
5
  SHA512:
6
- metadata.gz: cc892e3c8242f90dce6e5becec0a06454bcc91dfb5712cb511a199f12beac2df19f4c8687d28293a24f058eea73be2f6f81405add1e228c9a10c5adead4f5700
7
- data.tar.gz: 49f13f981fb0dab697131810dc8dc510ad51010e42ea9994f75fb8d27676712c8ff0a251b62a5bcbd6a0f68492b4142ac9bd3103842f6e0583be029e5b6e0e1b
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
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module S3Archive
3
- VERSION = "0.4.5"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
@@ -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 do
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 :all do |server|
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki