capistrano 2.15.10 → 2.15.11
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/CHANGELOG +4 -0
- data/bin/capify +4 -4
- data/lib/capistrano/ext/multistage.rb +1 -1
- data/lib/capistrano/recipes/deploy/strategy/copy.rb +1 -1
- data/lib/capistrano/version.rb +1 -1
- data/test/deploy/strategy/copy_test.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bbbdc546cc7bf99f6279f5b9e646b278e6a8afd1019610162e4487734b47f9e
|
4
|
+
data.tar.gz: 57448a1d53a918a5180ebb6f7e30b5f33b9145b27cc088f250e8218fdba7f7a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13aad84b057a8b6d856d00c8ee921a82abda3239840ff75535e58ee3e0349446860b0037c85d1622a98a2b8cd081995bcbfc1b374998b72d1d9e6900875b336a
|
7
|
+
data.tar.gz: 760398ba57d0b509d16fe0ec8163e0af6f443eb624ec63276fd6b870cc3a3a24866472fde768190fd54d67933850bd12dd4b690700fd82993815ff22d5984d5c
|
data/CHANGELOG
CHANGED
data/bin/capify
CHANGED
@@ -22,7 +22,7 @@ end
|
|
22
22
|
|
23
23
|
if ARGV.empty?
|
24
24
|
abort "Please specify the directory to capify, e.g. `#{File.basename($0)} .'"
|
25
|
-
elsif !File.
|
25
|
+
elsif !File.exist?(ARGV.first)
|
26
26
|
abort "`#{ARGV.first}' does not exist."
|
27
27
|
elsif !File.directory?(ARGV.first)
|
28
28
|
abort "`#{ARGV.first}' is not a directory."
|
@@ -75,12 +75,12 @@ role :db, "your slave db-server here"
|
|
75
75
|
base = ARGV.shift
|
76
76
|
files.each do |file, content|
|
77
77
|
file = File.join(base, file)
|
78
|
-
if File.
|
78
|
+
if File.exist?(file)
|
79
79
|
warn "[skip] '#{file}' already exists"
|
80
|
-
elsif File.
|
80
|
+
elsif File.exist?(file.downcase)
|
81
81
|
warn "[skip] '#{file.downcase}' exists, which could conflict with `#{file}'"
|
82
82
|
else
|
83
|
-
unless File.
|
83
|
+
unless File.exist?(File.dirname(file))
|
84
84
|
puts "[add] making directory '#{File.dirname(file)}'"
|
85
85
|
FileUtils.mkdir(File.dirname(file))
|
86
86
|
end
|
@@ -52,7 +52,7 @@ Capistrano::Configuration.instance.load do
|
|
52
52
|
FileUtils.mkdir_p(location)
|
53
53
|
stages.each do |name|
|
54
54
|
file = File.join(location, name + ".rb")
|
55
|
-
unless File.
|
55
|
+
unless File.exist?(file)
|
56
56
|
File.open(file, "w") do |f|
|
57
57
|
f.puts "# #{name.upcase}-specific deployment configuration"
|
58
58
|
f.puts "# please put general deployment config in config/deploy.rb"
|
data/lib/capistrano/version.rb
CHANGED
@@ -222,7 +222,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
|
|
222
222
|
@config[:copy_cache] = true
|
223
223
|
|
224
224
|
Dir.stubs(:tmpdir).returns("/temp/dir")
|
225
|
-
File.expects(:
|
225
|
+
File.expects(:exist?).with("/temp/dir/captest").returns(false)
|
226
226
|
Dir.expects(:chdir).with("/temp/dir/captest").yields
|
227
227
|
|
228
228
|
@source.expects(:checkout).with("154", "/temp/dir/captest").returns(:local_checkout)
|
@@ -240,7 +240,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
|
|
240
240
|
@config[:copy_cache] = true
|
241
241
|
|
242
242
|
Dir.stubs(:tmpdir).returns("/temp/dir")
|
243
|
-
File.expects(:
|
243
|
+
File.expects(:exist?).with("/temp/dir/captest").returns(true)
|
244
244
|
Dir.expects(:chdir).with("/temp/dir/captest").yields
|
245
245
|
|
246
246
|
@source.expects(:sync).with("154", "/temp/dir/captest").returns(:local_sync)
|
@@ -258,7 +258,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
|
|
258
258
|
@config[:copy_cache] = "/u/caches/captest"
|
259
259
|
|
260
260
|
Dir.stubs(:tmpdir).returns("/temp/dir")
|
261
|
-
File.expects(:
|
261
|
+
File.expects(:exist?).with("/u/caches/captest").returns(true)
|
262
262
|
Dir.expects(:chdir).with("/u/caches/captest").yields
|
263
263
|
|
264
264
|
@source.expects(:sync).with("154", "/u/caches/captest").returns(:local_sync)
|
@@ -277,7 +277,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
|
|
277
277
|
|
278
278
|
Dir.stubs(:pwd).returns("/u")
|
279
279
|
Dir.stubs(:tmpdir).returns("/temp/dir")
|
280
|
-
File.expects(:
|
280
|
+
File.expects(:exist?).with("/u/caches/captest").returns(true)
|
281
281
|
Dir.expects(:chdir).with("/u/caches/captest").yields
|
282
282
|
|
283
283
|
@source.expects(:sync).with("154", "/u/caches/captest").returns(:local_sync)
|
@@ -296,7 +296,7 @@ class DeployStrategyCopyTest < Test::Unit::TestCase
|
|
296
296
|
@config[:copy_exclude] = "*/bar.txt"
|
297
297
|
|
298
298
|
Dir.stubs(:tmpdir).returns("/temp/dir")
|
299
|
-
File.expects(:
|
299
|
+
File.expects(:exist?).with("/temp/dir/captest").returns(true)
|
300
300
|
Dir.expects(:chdir).with("/temp/dir/captest").yields
|
301
301
|
|
302
302
|
@source.expects(:sync).with("154", "/temp/dir/captest").returns(:local_sync)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.15.
|
4
|
+
version: 2.15.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.4.
|
247
|
+
rubygems_version: 3.4.13
|
248
248
|
signing_key:
|
249
249
|
specification_version: 3
|
250
250
|
summary: Capistrano - Welcome to easy deployment with Ruby over SSH
|