capistrano 2.15.9 → 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 +5 -5
- data/CHANGELOG +8 -0
- data/Gemfile +2 -0
- data/bin/capify +4 -4
- data/lib/capistrano/configuration/actions/invocation.rb +2 -2
- data/lib/capistrano/ext/multistage.rb +1 -1
- data/lib/capistrano/logger.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 +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
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/Gemfile
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
|
|
@@ -248,7 +248,7 @@ module Capistrano
|
|
|
248
248
|
prompt_host = nil
|
|
249
249
|
|
|
250
250
|
Proc.new do |ch, stream, out|
|
|
251
|
-
if out =~ /^Sorry, try again/
|
|
251
|
+
if out.to_s =~ /^Sorry, try again/
|
|
252
252
|
if prompt_host.nil? || prompt_host == ch[:server]
|
|
253
253
|
prompt_host = ch[:server]
|
|
254
254
|
logger.important out, "#{stream} :: #{ch[:server]}"
|
|
@@ -256,7 +256,7 @@ module Capistrano
|
|
|
256
256
|
end
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
-
if out =~ /^#{Regexp.escape(sudo_prompt)}/
|
|
259
|
+
if out.to_s =~ /^#{Regexp.escape(sudo_prompt)}/
|
|
260
260
|
ch.send_data "#{self[:password]}\n"
|
|
261
261
|
elsif fallback
|
|
262
262
|
fallback.call(ch, stream, out)
|
|
@@ -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/logger.rb
CHANGED
|
@@ -102,7 +102,7 @@ module Capistrano
|
|
|
102
102
|
|
|
103
103
|
Logger.sorted_formatters.each do |formatter|
|
|
104
104
|
if (formatter[:level] == level || formatter[:level].nil?)
|
|
105
|
-
if message =~ formatter[:match] ||
|
|
105
|
+
if message =~ formatter[:match] || formatter[:match] =~ line_prefix.to_s
|
|
106
106
|
color = formatter[:color] if formatter[:color]
|
|
107
107
|
style = formatter[:style] || formatter[:attribute] # (support original cap colors)
|
|
108
108
|
message.gsub!(formatter[:match], formatter[:replace]) if formatter[:replace]
|
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,15 +1,15 @@
|
|
|
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
|
|
8
8
|
- Lee Hambley
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-06-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: highline
|
|
@@ -229,7 +229,7 @@ files:
|
|
|
229
229
|
homepage: http://github.com/capistrano/capistrano
|
|
230
230
|
licenses: []
|
|
231
231
|
metadata: {}
|
|
232
|
-
post_install_message:
|
|
232
|
+
post_install_message:
|
|
233
233
|
rdoc_options: []
|
|
234
234
|
require_paths:
|
|
235
235
|
- lib
|
|
@@ -244,9 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
244
244
|
- !ruby/object:Gem::Version
|
|
245
245
|
version: '0'
|
|
246
246
|
requirements: []
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
signing_key:
|
|
247
|
+
rubygems_version: 3.4.13
|
|
248
|
+
signing_key:
|
|
250
249
|
specification_version: 3
|
|
251
250
|
summary: Capistrano - Welcome to easy deployment with Ruby over SSH
|
|
252
251
|
test_files:
|