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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/share/rbbt_commands/migrate +7 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 305b2b990497eb41e92a4abc1aa9beabd40d36c2a048b60a8d41123416e3c80b
4
- data.tar.gz: 1d1a4d961e7490060a71511b3f118c19c4bfe8b3148ee9138115c88f7df40e57
3
+ metadata.gz: ba54901fafef6428fe96583512b3760909f9d0f535575bc26da5bc590ec8d832
4
+ data.tar.gz: 7d6468ffda01e175ab48dd0f1a622cc00b9abc01624006c133c26950c1ac7225
5
5
  SHA512:
6
- metadata.gz: f31ec3f71b32e894e4a2755011184fa2a036b3dff1720725f6848b5e90cd62434ae4df4a617bc9ca95cbf56799564a6ca6bacc78923ac6e84185b853569fc89c
7
- data.tar.gz: 7fd22893c76e6f75e0903e8122b1e3462d534d61ddeb2a4352e7887febc55f6769116b0428349568e033e7c91f738ed4ac434555a2926074f086c5b46de79b78
6
+ metadata.gz: 468dfc192067e76b71c73d73b0d2e6b6fb468a24452054edc791337886366630484a4bd43c8fe045334c1bdf46da3ebd19b3e18c6b1a3f236395336b1bc26ab7
7
+ data.tar.gz: ba8710edc5ec1033d5bd0eca18eff9bd36f2443bc4363a2eee1a94a5fa156be4c1a841a10854a1b86c831a7e61df5d13f00feee9812d76662c6dab90a9842cf4
@@ -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
- target = [options[:target], target] * ":" if options[:target]
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} #{target} #{other * " "}"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.26.133
4
+ version: 5.26.134
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez