xlogin 0.13.7 → 0.13.8
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 +4 -4
- data/README.md +2 -3
- data/lib/xlogin/cli.rb +2 -2
- data/lib/xlogin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ba001cd49f0bd60c2168140e62401cee51da1302efb23bd72ff92f33dc28786
|
4
|
+
data.tar.gz: fd1f680eb98ed1855d7989c9d73f128eadf91aefb1595c8da17b8a9432317e51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba627f57c1e234f390fcea1e707689ad8795ce58d1fdc204fdcfe6da07bba540bffa2753dd7925c008c92e449ae24641761fefbd3bf4b131c5d71dc91b25ae75
|
7
|
+
data.tar.gz: 71298622f2acd5bf43dd29aa2c0d51cb1467214ffed7e1acd63c3aba75a20d245ba6e08cd817638c27eb18e92390de0783a8169e6ba17acdc2cc26991d0daf5c
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# xlogin
|
2
2
|
|
3
|
-
rancid clogin alternative.
|
4
3
|
xlogin is a tool to login devices and execute series of commands with ease.
|
5
4
|
|
6
5
|
## Installation
|
@@ -38,7 +37,7 @@ end
|
|
38
37
|
Some other example templates are in [lib/xlogin/templates](https://github.com/haccht/xlogin/tree/master/lib/xlogin/templates).
|
39
38
|
You can just load these built-in templates by adding `require "xlogin/template"` in your script.
|
40
39
|
|
41
|
-
|
40
|
+
Beside template files, you should have your own inventory file `~/.xloginrc` that list all information required to login each devices.
|
42
41
|
|
43
42
|
```
|
44
43
|
#hosttype hostname uri scheme
|
@@ -46,7 +45,7 @@ vyos 'vyos01', 'telnet://vagrant:vagrant@127.0.0.1:2200'
|
|
46
45
|
vyos 'vyos02', 'telnet://vagrant:vagrant@127.0.0.1:2201'
|
47
46
|
```
|
48
47
|
|
49
|
-
Now you can login the device in your `.xloginrc` file.
|
48
|
+
Now you can login to the device in your `.xloginrc` file.
|
50
49
|
|
51
50
|
```sh
|
52
51
|
$ xlogin vyos01
|
data/lib/xlogin/cli.rb
CHANGED
@@ -63,7 +63,7 @@ module Xlogin
|
|
63
63
|
config = Hash.new
|
64
64
|
config[:runner] = self.method(:tty)
|
65
65
|
config[:inventory] = DEFAULT_INVENTORY_FILE
|
66
|
-
config[:
|
66
|
+
config[:template] = DEFAULT_TEMPLATE_DIR
|
67
67
|
|
68
68
|
parser = OptionParser.new
|
69
69
|
parser.banner = "#{File.basename($0)} HOST_PATTERN [Options]"
|
@@ -87,7 +87,7 @@ module Xlogin
|
|
87
87
|
Xlogin.configure do
|
88
88
|
set assume_yes: true if config[:assume_yes]
|
89
89
|
source File.expand_path(config[:inventory], ENV['PWD'])
|
90
|
-
template File.expand_path(config[:
|
90
|
+
template File.expand_path(config[:template], ENV['PWD'])
|
91
91
|
end
|
92
92
|
raise "No host found: `#{args.join(', ')}`" if Xlogin.list(*config[:pattern]).empty?
|
93
93
|
|
data/lib/xlogin/version.rb
CHANGED
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.13.
|
4
|
+
version: 0.13.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- haccht
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-telnet
|