rbbt-util 5.26.133 → 5.26.134
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/share/rbbt_commands/migrate +7 -2
- 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: ba54901fafef6428fe96583512b3760909f9d0f535575bc26da5bc590ec8d832
|
4
|
+
data.tar.gz: 7d6468ffda01e175ab48dd0f1a622cc00b9abc01624006c133c26950c1ac7225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468dfc192067e76b71c73d73b0d2e6b6fb468a24452054edc791337886366630484a4bd43c8fe045334c1bdf46da3ebd19b3e18c6b1a3f236395336b1bc26ab7
|
7
|
+
data.tar.gz: ba8710edc5ec1033d5bd0eca18eff9bd36f2443bc4363a2eee1a94a5fa156be4c1a841a10854a1b86c831a7e61df5d13f00feee9812d76662c6dab90a9842cf4
|
data/share/rbbt_commands/migrate
CHANGED
@@ -57,6 +57,7 @@ puts path.glob_all.collect{|p| File.directory?(p) ? p + "/" : p } * "\n"
|
|
57
57
|
[path, paths.collect{|p| [options[:source], p] * ":"}, lpath]
|
58
58
|
else
|
59
59
|
if File.exists?(path)
|
60
|
+
|
60
61
|
path = resource.identify(path)
|
61
62
|
else
|
62
63
|
path = Path.setup(path)
|
@@ -92,9 +93,13 @@ real_paths.each do |source|
|
|
92
93
|
Open.mkdir File.dirname(target)
|
93
94
|
end
|
94
95
|
|
95
|
-
|
96
|
+
if options[:target]
|
97
|
+
target_path = [options[:target], target] * ":"
|
98
|
+
else
|
99
|
+
target_path = target
|
100
|
+
end
|
96
101
|
|
97
|
-
cmd = "rsync -avztAXHP --copy-unsafe-links #{test_str} #{excludes_str} #{source} #{
|
102
|
+
cmd = "rsync -avztAXHP --copy-unsafe-links #{test_str} #{excludes_str} #{source} #{target_path} #{other * " "}"
|
98
103
|
|
99
104
|
cmd << " && rm -Rf #{source}" if options[:delete]
|
100
105
|
|