xlogin 0.13.7 → 0.13.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bc69e183ff35766c37757d591eaa1ae2b3a02ba87f68b4a3d2b507d63d6dbcc
4
- data.tar.gz: a191341e653964b9ede0d34bc358c79b763d8f919f2d8e37c23f63020232a94f
3
+ metadata.gz: 6ba001cd49f0bd60c2168140e62401cee51da1302efb23bd72ff92f33dc28786
4
+ data.tar.gz: fd1f680eb98ed1855d7989c9d73f128eadf91aefb1595c8da17b8a9432317e51
5
5
  SHA512:
6
- metadata.gz: cd3f12ab6862d1f4efebfbe91ef24482b09e0471f0ecc73c548ee4392b88209718601673ac45134e571356c9554488cfc97bb0d86967037e2cc5819858131b5e
7
- data.tar.gz: e1a6b33fc3c4102219556fbe626cea6a5f1d71346dfae5adc7a3815be844538cd9ee0a3d41feabf8fccec11fa59891785af45324d036dd6ab54b86bb848f5793
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
- Besides template files, you need to prepare an inventory file `~/.xloginrc` that list all information required to login each devices.
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
@@ -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[:templates] = DEFAULT_TEMPLATE_DIR
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[:templates], ENV['PWD'])
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
 
@@ -1,3 +1,3 @@
1
1
  module Xlogin
2
- VERSION = "0.13.7"
2
+ VERSION = "0.13.8"
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.13.7
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-07 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-telnet