rbbt-util 5.26.88 → 5.26.89

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/share/rbbt_commands/migrate +9 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ea3940c476d54994086edb928a7f3bd8e0f9106cf702fc5383c10dbf43df2f8
4
- data.tar.gz: 842453f1c75c7d67307a9d7196273a233cc00d4a4adb27d4cb62d8c41111f748
3
+ metadata.gz: 2048fc4bf27e71b78965d321babe1566f4bf09b654c1f418e93828fa8bc7e998
4
+ data.tar.gz: 9596275b040cee47814e374dfbc26aae14de160cde1980666d9a6a783a81c03e
5
5
  SHA512:
6
- metadata.gz: 5d679b8414ef4ed9463e2a214edf51375f417c8f6c5b5b576619efda32fd100f9d3fc623164b3e685b6bee31136a1219cf78a4d0955f5c3661c305598addeab8
7
- data.tar.gz: 88e3ad03874491db2536aad2c64269fb165a92aa944101c98d59013b91eb2f05c47bf0680931f849a2a1de4422fe7bde7b7c261e915604141b8c31ee5026fbeb
6
+ metadata.gz: 1ced1d0f0735e1306c245d6012acbe2c20c8aac64a08aa19fbaa80cb433693d136eff5aad65c6bbe1edc29da53429ec2dd7116189fac16b23679e7e28d7c11c6
7
+ data.tar.gz: fc75b92e3c5aa74692ec3730b4f0ffcbae2efcb46ba4e5d8e47fcf6bdac2bb5e9066db5f300c0924690fa7bc2559e9b9018c092a64dfd6bb45ef82b507c9f09a
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'rbbt-util'
4
4
  require 'rbbt/util/simpleopt'
5
- require 'rbbt/workflow/remote/ssh/get'
5
+ require 'rbbt/workflow/remote/ssh/driver'
6
6
 
7
7
  $0 = "rbbt #{$previous_commands*""} #{ File.basename(__FILE__) }" if $previous_commands
8
8
 
@@ -42,29 +42,30 @@ path, search_path, _sep, *other = ARGV
42
42
  search_path = 'user' if search_path.nil?
43
43
  resource = Rbbt
44
44
 
45
- path, real_paths = if options[:source]
46
- paths = SSHClient.run(options[:source], <<-EOF).split("\n")
45
+ path, real_paths, lpath = if options[:source]
46
+ lpath, *paths = SSHDriver.run(options[:source], <<-EOF).split("\n")
47
47
  require 'rbbt-util'
48
48
  path = "#{path}"
49
- if File.exists?(path)
49
+ if Open.exists?(path)
50
50
  path = #{resource.to_s}.identify(path)
51
51
  else
52
52
  path = Path.setup(path)
53
53
  end
54
+ puts path
54
55
  puts path.glob_all.collect{|p| File.directory?(p) ? p + "/" : p } * "\n"
55
56
  EOF
56
- [path, paths.collect{|p| [options[:source], p] * ":"}]
57
+ [path, paths.collect{|p| [options[:source], p] * ":"}, lpath]
57
58
  else
58
59
  if File.exists?(path)
59
60
  path = resource.identify(path)
60
61
  else
61
62
  path = Path.setup(path)
62
63
  end
63
- [path, path.glob_all]
64
+ [path, path.glob_all, path]
64
65
  end
65
66
 
66
67
  target = if options[:target]
67
- target = SSHClient.run(options[:target], <<-EOF).split("\n").first
68
+ target = SSHDriver.run(options[:target], <<-EOF).split("\n").first
68
69
  require 'rbbt-util'
69
70
  path = "#{path}"
70
71
  resource = #{resource.to_s}
@@ -72,7 +73,7 @@ search_path = "#{search_path}"
72
73
  puts resource[path].find(search_path)
73
74
  EOF
74
75
  else
75
- resource[path].find(search_path)
76
+ resource[lpath].find(search_path)
76
77
  end
77
78
 
78
79
  real_paths.each do |source|
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.88
4
+ version: 5.26.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez