kamal-backup 0.3.0.beta16 → 0.3.0.beta17
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/lib/kamal_backup/command.rb +4 -0
- data/lib/kamal_backup/kamal_bridge.rb +2 -1
- data/lib/kamal_backup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88d55c67a4d6276ea516c9d3149ee486c3da3587a438856fa08ba0050f0b99d0
|
|
4
|
+
data.tar.gz: '09290fe105b1ef100c9d59f8631426f86ee169977cb5561e4308aec05f3e3eb5'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f0de6a3b23a06e127b860b63d2227ba154272ef6da3e011943f8d82fae445b4f676ae89e8f52931aaf11ea142c73d5fb417e8e360c04912bb42604d2fcf6b76
|
|
7
|
+
data.tar.gz: a26fb0fbc1b23f03a0e3316606e07c3df718368e42bb3ac8d082218dc9c1bf4e3ff010695812e3532b1f09bd1c878b979aaff0098b9c04389c07abd097a38354
|
data/lib/kamal_backup/command.rb
CHANGED
|
@@ -170,6 +170,10 @@ module KamalBackup
|
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
def local_target
|
|
173
|
+
if remote_host = @env["KAMAL_HOST"].to_s
|
|
174
|
+
return "on #{colorize(remote_host, :blue)}" unless remote_host.empty?
|
|
175
|
+
end
|
|
176
|
+
|
|
173
177
|
user = @env["USER"].to_s.empty? ? @env["USERNAME"].to_s : @env["USER"].to_s
|
|
174
178
|
|
|
175
179
|
if user.empty?
|
|
@@ -270,7 +270,8 @@ module KamalBackup
|
|
|
270
270
|
def filtered_interactive_stdout
|
|
271
271
|
FilteringIO.new(@stdout) do |output|
|
|
272
272
|
stripped = output.to_s.gsub(/\e\[[0-9;]*m/, "").delete("\r").strip
|
|
273
|
-
stripped == "Launching interactive command via SSH from existing container..."
|
|
273
|
+
stripped == "Launching interactive command via SSH from existing container..." ||
|
|
274
|
+
stripped.match?(/\AConnection to .+ closed\.\z/)
|
|
274
275
|
end
|
|
275
276
|
end
|
|
276
277
|
|
data/lib/kamal_backup/version.rb
CHANGED