capistrano-net_storage 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +5 -2
- data/CHANGELOG.md +6 -0
- data/lib/capistrano/net_storage/bundler.rb +5 -2
- data/lib/capistrano/net_storage/scm/base.rb +1 -1
- data/lib/capistrano/net_storage/utils.rb +12 -18
- data/lib/capistrano/net_storage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19ebcc34c38db947f673187c11e11eee4851f41d
|
4
|
+
data.tar.gz: e10efbaca64771685092abc467c8a978f779288e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19bd1b5051ba897e75014dce2e715ea12d7b959524b44ade6b31dee8ce7497e8601408d53ac60a7841c2f752b1718369b9d68d855b6425e9320df8d78f4e30b1
|
7
|
+
data.tar.gz: 6414f21a258819cfa9b424de33a2357bc2a9a6f6abde1bb4b26b9d6ee248b962b802d4e870968f7b45daaa7d400941a8075fdc8e3966a98a872cdbb2e85febf0
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -4,9 +4,12 @@ rvm:
|
|
4
4
|
- 2.0.0
|
5
5
|
- 2.1.8
|
6
6
|
- 2.2.0
|
7
|
+
- 2.3.5
|
8
|
+
- 2.4.2
|
9
|
+
|
7
10
|
before_install: gem install bundler -v 1.14.6
|
8
|
-
install: bundle
|
9
|
-
script: bundle
|
11
|
+
install: bundle install
|
12
|
+
script: bundle exec rake spec
|
10
13
|
notifications:
|
11
14
|
slack:
|
12
15
|
secure: lJCLJetpFwFujt467h250JgTyjF+7qU04Ef6FdwOBZwvjgYmyyZMBhdbL2JOAxrQd6XCWhZy56jCXr4ZdMbMLtzL+wEkQefiOLdpV/556xXK5qmkjLyRWoYOMFEhxSTqjk8hHZVYcLO6IYmwr9CHBWaVGOydADCkR4CYyqmSHtKIbznSs9Y4qrpsf6YC9QiSxoP7d5hayvnVUI8oFvxC8DfPuwrmWoO4WyVTJy2ODg/r/ZNGJCMzW3pvnXGK5oZqgwArlGIV7l3tOX2l24QilkhxhuX7QRCikYoGiIdXqkXdf1S/piaflFGXJ1C2PN5aWEv1/8EYcm7RgPm8I9Pol+7zkpUFUiSj3FDLc/TZZKP7OwPCpXOXZkDTLn0+96H5oWUR+2xwTwETQpW8Qz6ZMiu4EKAiAeU99YgSZOgc3fmonvsQREFwTV1n9AHPFsTHv8f3bzC8gUm3n7PIZX4/vR7Aa+vTVZ1QGW9T7OuWThdCMVVB7L7Q/5pRaE+gFLsN9MQBfbZ5uOOXYHd+yh9rC5qi/wRXPxQ4w1F8R+iKIhF32nUF96jwwCkd7O/LZKlmFRT43App6sfmQIAdPp7Oy/BZZD34u0k5aOciZ59h10+BHmA1E0kphXfbYcbXd53MUCEiYc4HC2xtC5yT+ko+PQ2T37VkkneZIIhjRf+WzXQ=
|
data/CHANGELOG.md
CHANGED
@@ -48,7 +48,10 @@ module Capistrano
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
|
51
|
+
run_locally do
|
52
|
+
execute :mkdir, '-p', "#{c.local_base_path}/.bundle"
|
53
|
+
end
|
54
|
+
bundle_config_path = "#{c.local_base_path}/.bundle/config"
|
52
55
|
File.open(bundle_config_path, 'w') do |file|
|
53
56
|
file.print(<<-EOS)
|
54
57
|
---
|
@@ -60,7 +63,7 @@ BUNDLE_BIN: "#{release_path.join('bin')}"
|
|
60
63
|
EOS
|
61
64
|
end
|
62
65
|
|
63
|
-
upload_files([bundle_config_path],
|
66
|
+
upload_files([bundle_config_path], release_path.join('.bundle'))
|
64
67
|
end
|
65
68
|
end
|
66
69
|
end
|
@@ -41,7 +41,7 @@ module Capistrano
|
|
41
41
|
# Copy local config files to servers
|
42
42
|
def sync_config
|
43
43
|
return unless config.config_files
|
44
|
-
upload_files(config.config_files,
|
44
|
+
upload_files(config.config_files, release_path.join('config'))
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -14,27 +14,21 @@ module Capistrano
|
|
14
14
|
end
|
15
15
|
|
16
16
|
# @param dest_dir [String, Pathname] Destination directory on remote to copy local files into
|
17
|
-
|
18
|
-
# You can provide either of +dest_dir+ or +dest_path+, or files are copied to same pathes
|
19
|
-
def upload_files(files, dest_dir: nil, dest_path: nil)
|
17
|
+
def upload_files(files, dest_dir)
|
20
18
|
c = config
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
if c.upload_files_by_rsync?
|
29
|
-
Parallel.each(c.servers, in_threads: c.max_parallels) do |host|
|
30
|
-
ssh = build_ssh_command(host)
|
31
|
-
run_locally do
|
32
|
-
execute :rsync, "-az --rsh='#{ssh}' #{src} #{host}:#{dest}"
|
19
|
+
if c.upload_files_by_rsync?
|
20
|
+
on c.servers, in: :groups, limit: c.max_parallels do |host|
|
21
|
+
ssh = build_ssh_command(host)
|
22
|
+
run_locally do
|
23
|
+
files.each do |src|
|
24
|
+
execute :rsync, "-az --rsh='#{ssh}' #{src} #{host}:#{dest_dir}"
|
33
25
|
end
|
34
26
|
end
|
35
|
-
|
36
|
-
|
37
|
-
|
27
|
+
end
|
28
|
+
else
|
29
|
+
on c.servers, in: :groups, limit: c.max_parallels do
|
30
|
+
files.each do |src|
|
31
|
+
upload! src, dest_dir
|
38
32
|
end
|
39
33
|
end
|
40
34
|
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.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- progrhyme
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.6.
|
153
|
+
rubygems_version: 2.6.13
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Capistrano SCM Plugin for fast deployment via remote storage
|