kamal-backup 0.3.0.beta1 → 0.3.0.beta2
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/kamal_bridge.rb +9 -3
- 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: 55945234709fcf743588fe6fadf7873ff43dcc832a2bc8303e42ba67e15c13db
|
|
4
|
+
data.tar.gz: a3e05e3428bdcceafa37d2dc2f0cdea53d50e204f7c9345e38308be0085ba9ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f23ce66cf13a8b420d6171e16489f2c4e2bc44c522b222637eac0ac809e1092e8634396589a1ea4b58c9f01e3ef446f57e4b8f38a157be3423e482cbe8bd2e9a
|
|
7
|
+
data.tar.gz: 103ff0d7ffb950b7f6927a8c22591e7f91c8cc06d5456bb04a6b119eda21f7198aa949375d19e3689040db34c8c2a4dc8ed4b2ab6e59911672e4b9033b700fe5
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require "shellwords"
|
|
1
2
|
require "yaml"
|
|
2
3
|
require_relative "command"
|
|
3
4
|
|
|
@@ -147,10 +148,15 @@ module KamalBackup
|
|
|
147
148
|
|
|
148
149
|
def parse_secret_output(output)
|
|
149
150
|
output.to_s.lines.each_with_object({}) do |line, secrets|
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
tokens = Shellwords.split(line.chomp)
|
|
152
|
+
tokens.shift if tokens.first == "export"
|
|
152
153
|
|
|
153
|
-
|
|
154
|
+
tokens.each do |assignment|
|
|
155
|
+
key, value = assignment.split("=", 2)
|
|
156
|
+
next if key.to_s.empty? || value.nil?
|
|
157
|
+
|
|
158
|
+
secrets[key] = value.to_s
|
|
159
|
+
end
|
|
154
160
|
end
|
|
155
161
|
end
|
|
156
162
|
|
data/lib/kamal_backup/version.rb
CHANGED