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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84584457a37f5cd13b2380cb4d16b531ceff8c9b
4
- data.tar.gz: 38816e35039013bceec5d90e583c4b6d8e9dc26e
3
+ metadata.gz: 19ebcc34c38db947f673187c11e11eee4851f41d
4
+ data.tar.gz: e10efbaca64771685092abc467c8a978f779288e
5
5
  SHA512:
6
- metadata.gz: 06642197adfd2a84cd19b4fc94a364283281e537f11e04e188d3ac18fd95f2ab4085b9fbf80b1e2bd7073897f316d0e77ee63e21f4386bf478c8a5f6bd4da8fb
7
- data.tar.gz: e60acd1bdbd64fb0b6714cc150491427beb8a3f33d8f411eeb5ef85f1aa8cc90e7621386ef7869048f19aa6026a690c1dd3d91ee41a5eb6fa86d1c59c3b6ec64
6
+ metadata.gz: 19bd1b5051ba897e75014dce2e715ea12d7b959524b44ade6b31dee8ce7497e8601408d53ac60a7841c2f752b1718369b9d68d855b6425e9320df8d78f4e30b1
7
+ data.tar.gz: 6414f21a258819cfa9b424de33a2357bc2a9a6f6abde1bb4b26b9d6ee248b962b802d4e870968f7b45daaa7d400941a8075fdc8e3966a98a872cdbb2e85febf0
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /vendor/
10
11
 
11
12
  # Editor Artifacts
12
13
  *.sw[pon]
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 _1.14.6_ install
9
- script: bundle _1.14.6_ exec rake spec
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
@@ -1,3 +1,9 @@
1
+ ## 0.3.1 (2017/11/6)
2
+
3
+ Fix Bug:
4
+
5
+ - Enable HOSTS settings when using cap deploy --hosts (#6) @SpringMT
6
+
1
7
  ## 0.3.0 (2017/7/14)
2
8
 
3
9
  Improve:
@@ -48,7 +48,10 @@ module Capistrano
48
48
  end
49
49
  end
50
50
 
51
- bundle_config_path = "#{c.local_base_path}/bundle_config"
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], dest_path: release_path.join('.bundle', 'config'))
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, dest_dir: release_path.join('config'))
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
- # @param dest_path [String, Pathname] Destination file path on remote to copy local files to
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
- files.each do |src|
22
- basename = File.basename(src)
23
- dest = dest_path || begin
24
- dir = dest_dir || File.dirname(src)
25
- File.join(dir, basename)
26
- end
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
- else
36
- on c.servers, in: :groups, limit: c.max_parallels do
37
- upload! src, dest
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
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NetStorage
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
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.3.0
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-07-14 00:00:00.000000000 Z
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.11
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