xlogin 0.8.8 → 0.8.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d419ec1f812e99a1b4f7237fd8d563dbb330f9c
4
- data.tar.gz: 0627ae7ad9bb67ce1d6325036051e4f282b44c9a
3
+ metadata.gz: cbf0d7ecb76ccf1f015e4fd2983b1522f8fb12af
4
+ data.tar.gz: c1254fdfc92bcf8bada32fd1bee56bef483bdccf
5
5
  SHA512:
6
- metadata.gz: eb9f0a8b82c7e6da969deb8a497d07e563a3d32e3bd019782cbb0ce1490f052189816b288b8791e5e719f49471456400c5bbfdeee36b762a3af7d47a39c876a4
7
- data.tar.gz: 03c2fcd89ccbaac330678bf01ab4a16d619736b9f12c75ba3ebbdad3ec5395e6c5681bfd7726aeb5728fae40ed973bfbd553d2194a2fe3f0c75d8aae2bb43a6e
6
+ metadata.gz: f2fdca9d728b15f0751575992209e03736f8671983221bae45c9f67c290301859228579f7cd47eff0fbb987c9ec54c0895593b2cc94d7a76a9405285daecd54c
7
+ data.tar.gz: be33efb5036512e577d89b1dc2013cc6ccf0b885d9c444df6ff9df45352cb26fd637276173ceab362644ccf7e0a2d1130a5079d8240aeb7f848032b08144d08d
data/lib/xlogin.rb CHANGED
@@ -26,6 +26,10 @@ module Xlogin
26
26
  begin block.call(session) ensure session.close end
27
27
  end
28
28
 
29
+ def list(*patterns)
30
+ factory.list_info(*patterns)
31
+ end
32
+
29
33
  def get_pool(args, **opts, &block)
30
34
  pool = Xlogin::SessionPool.new(args, **opts)
31
35
 
data/lib/xlogin/cli.rb CHANGED
@@ -64,7 +64,7 @@ module Xlogin
64
64
  load_templates(*config.templates.map { |file| File.expand_path(file, ENV['PWD']) })
65
65
  end
66
66
 
67
- config.hostlist = Xlogin.factory.list_info(*host.to_s.split(/\s+/))
67
+ config.hostlist = Xlogin.list(*host.to_s.split(/\s+/))
68
68
  raise "No host found: `#{host}`" if config.hostlist.empty?
69
69
  rescue => e
70
70
  $stderr.puts e, '', parser
@@ -1,3 +1,3 @@
1
1
  module Xlogin
2
- VERSION = "0.8.8"
2
+ VERSION = "0.8.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlogin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - haccht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-09 00:00:00.000000000 Z
11
+ date: 2018-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-telnet