xlogin 0.16.8 → 0.16.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xlogin/factory.rb +1 -1
- data/lib/xlogin/version.rb +1 -1
- data/lib/xlogin.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ef34ad0c1f2f9c13dadd62e4f7d9e95117b98565a262b706dd55a74a9a0cb9e
|
4
|
+
data.tar.gz: 1da17b4bfd7a42d8e8ce7089a8ad1848b305540f9c962737517a62f617b50de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d689b9d6346ce14fd12c4c1d6eaa374a6c0165902efa94b359aee64cc46a27af4077524c0b8d93934c18aacee8281d3030a0d149739d4f041a39c5f04d5ff4e8
|
7
|
+
data.tar.gz: 95de7d124224a551cc7286a6627d688ee6e991330f79ddc1818c755bde0efb5d90162ae0b14e6df8f1413d590154861ba1aada49e13157386be0bb7f90c06cac
|
data/lib/xlogin/factory.rb
CHANGED
@@ -101,7 +101,7 @@ module Xlogin
|
|
101
101
|
template = get_template(type)
|
102
102
|
raise Xlogin::Error.new("Template not found: '#{type}'") unless template
|
103
103
|
|
104
|
-
session = template.build(uri(opts), **opts)
|
104
|
+
session = template.build(uri(**opts), **opts)
|
105
105
|
return session unless block
|
106
106
|
begin block.call(session) ensure session.close end
|
107
107
|
end
|
data/lib/xlogin/version.rb
CHANGED
data/lib/xlogin.rb
CHANGED
@@ -29,9 +29,9 @@ module Xlogin
|
|
29
29
|
factory.list_hostinfo(*patterns)
|
30
30
|
end
|
31
31
|
|
32
|
-
def get(args, **opts, &block)
|
32
|
+
def get(args = nil, **opts, &block)
|
33
33
|
case args
|
34
|
-
when
|
34
|
+
when nil then factory.build(**opts, &block)
|
35
35
|
when String then factory.build_from_hostname(args, **opts, &block)
|
36
36
|
else
|
37
37
|
raise Xlogin::Error.new("Invalid argument: '#{args}'")
|
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.16.
|
4
|
+
version: 0.16.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- haccht
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-telnet
|
@@ -178,7 +178,7 @@ licenses:
|
|
178
178
|
- MIT
|
179
179
|
metadata:
|
180
180
|
allowed_push_host: https://rubygems.org
|
181
|
-
post_install_message:
|
181
|
+
post_install_message:
|
182
182
|
rdoc_options: []
|
183
183
|
require_paths:
|
184
184
|
- lib
|
@@ -193,8 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
197
|
-
signing_key:
|
196
|
+
rubygems_version: 3.3.7
|
197
|
+
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: rancid clogin alternative
|
200
200
|
test_files: []
|