capistrano-net_storage 0.4.0 → 0.5.0
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 +4 -4
- data/capistrano-net_storage.gemspec +0 -1
- data/lib/capistrano/net_storage/utils.rb +11 -11
- data/lib/capistrano/net_storage/version.rb +1 -1
- metadata +7 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f402751b93d15bbc8660b9669a18977ac69d67381d45c0316afd89d185f750fe
|
4
|
+
data.tar.gz: 38905906ddf2c6aae2706679eb907b6970c1099e058eb8f8c676932656cc3f7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c61f03392a39f8f69c824fc196ef3e056c206e1c00ecce038e73f18b8782074d4ef5895fbf65d4c5e42666950ab0b0c53b99ceeeeb5d428122c92caa1dc8373
|
7
|
+
data.tar.gz: cd42fc4f35a13075920dff572727a93e4f9db1d28249833d0af85a5edc82d661303a2595511ab2b7067f5a3939cead39d5a5a68ffe7a2577799ea94f03b9c099
|
@@ -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
|
-
|
21
|
-
|
22
|
-
|
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.
|
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
|
-
|
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
|
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
|
+
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:
|
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.
|
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: []
|