capistrano-net_storage 0.4.0 → 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
  SHA256:
3
- metadata.gz: 24781ed3a7d2676ccff180118e8c68fa4aa185d379d4ab6943f2c48d3c222b0f
4
- data.tar.gz: 6e955db0ccdc03e9179d47f9c21193cb0dbb85e8172291b3d0c584de0a7b406e
3
+ metadata.gz: f402751b93d15bbc8660b9669a18977ac69d67381d45c0316afd89d185f750fe
4
+ data.tar.gz: 38905906ddf2c6aae2706679eb907b6970c1099e058eb8f8c676932656cc3f7d
5
5
  SHA512:
6
- metadata.gz: a9160786565510e2b34110fdda42339ab107ccea6a27b86ba064b41bd8ac69fe08a218ee702ea853acedd3d6b271689ac64d0e08853105af8b1f49b109484607
7
- data.tar.gz: 37863818bb0bd9b07c37c72e0309482f67a879575d6e4d65b6dd21dfed3a839cd4a07d80e084bc1ef84ebbf0809e1c3660f2c914e2032e9131de4c7949fa5b6c
6
+ metadata.gz: 3c61f03392a39f8f69c824fc196ef3e056c206e1c00ecce038e73f18b8782074d4ef5895fbf65d4c5e42666950ab0b0c53b99ceeeeb5d428122c92caa1dc8373
7
+ data.tar.gz: cd42fc4f35a13075920dff572727a93e4f9db1d28249833d0af85a5edc82d661303a2595511ab2b7067f5a3939cead39d5a5a68ffe7a2577799ea94f03b9c099
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 2.0'
22
22
 
23
23
  spec.add_runtime_dependency 'capistrano', '>= 3.3.3'
24
- spec.add_runtime_dependency 'parallel'
25
24
  spec.add_runtime_dependency 'bundler'
26
25
 
27
26
  spec.add_development_dependency 'rake'
@@ -1,5 +1,3 @@
1
- require 'parallel'
2
-
3
1
  require 'capistrano/net_storage/base'
4
2
 
5
3
  module Capistrano
@@ -17,17 +15,19 @@ module Capistrano
17
15
  def upload_files(files, dest_dir)
18
16
  c = config
19
17
  hosts = ::Capistrano::Configuration.env.filter(c.servers)
20
- if c.upload_files_by_rsync?
21
- Parallel.each(hosts, in_threads: c.max_parallels) do |host|
22
- ssh = build_ssh_command(host)
18
+
19
+ # FIXME: This is a very workaround to architectural issue. Do not copy.
20
+ build_rsh_option = -> (host) {
21
+ build_ssh_command(host)
22
+ }
23
+
24
+ on hosts, in: :groups, limit: c.max_parallels do |host|
25
+ if c.upload_files_by_rsync?
26
+ rsh_option = build_rsh_option.call(host)
23
27
  run_locally do
24
- files.each do |src|
25
- execute :rsync, "-az --rsh='#{ssh}' #{src} #{host}:#{dest_dir}"
26
- end
28
+ execute :rsync, "-az --rsh='#{rsh_option}' #{files.join(' ')} #{host.hostname}:#{dest_dir}"
27
29
  end
28
- end
29
- else
30
- on c.servers, in: :groups, limit: c.max_parallels do
30
+ else
31
31
  files.each do |src|
32
32
  upload! src, dest_dir
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NetStorage
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-net_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - progrhyme
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2023-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.3.3
27
- - !ruby/object:Gem::Dependency
28
- name: parallel
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +83,7 @@ dependencies:
97
83
  description: |2
98
84
  A Capistrano SCM Plugin to deploy application via remove storage.
99
85
  Logically, this enables O(1) deployment.
100
- email:
86
+ email:
101
87
  executables: []
102
88
  extensions: []
103
89
  extra_rdoc_files: []
@@ -135,7 +121,7 @@ homepage: https://github.com/DeNADev/capistrano-net_storage
135
121
  licenses:
136
122
  - MIT
137
123
  metadata: {}
138
- post_install_message:
124
+ post_install_message:
139
125
  rdoc_options: []
140
126
  require_paths:
141
127
  - lib
@@ -150,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
136
  - !ruby/object:Gem::Version
151
137
  version: '0'
152
138
  requirements: []
153
- rubygems_version: 3.0.3
154
- signing_key:
139
+ rubygems_version: 3.4.13
140
+ signing_key:
155
141
  specification_version: 4
156
142
  summary: Capistrano SCM Plugin for fast deployment via remote storage
157
143
  test_files: []