xlogin 0.8.11 → 0.8.13

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: 6ebec2f7381c0f7c298d7b35ef87cc03813eb59c
4
- data.tar.gz: 76d69229f307f874ef30b7eeaa793c017427e84a
3
+ metadata.gz: d4e251188ed2cd4bf54eb0ce913589b90616028c
4
+ data.tar.gz: e97da63feb0cfb0c021d5a9a65429ec6ff10175c
5
5
  SHA512:
6
- metadata.gz: c97edb12ebe94348594c4cbbec346b808b7b18cde456f7482052d705760a529ae3c96d396ab157b3c3b9fd983867013e9ef7703183fd18862f37a99fc7e87c12
7
- data.tar.gz: 64e6619eb20a0fb933e73ab93cc3e0b89decd2cc4223280a98ab5293fd0da5dc742f9f933105c63597a5c931d45b998df3ff86b78fc099f44e8129bf652ad445
6
+ metadata.gz: ebb68fec6f598de8e5464acf4d7939d309ba302f125fc3f809c8ffb2669acdb596907563bce762fdfdd44aa90f47cbdd7aa64ebb15dbcc7095da7a0cccf4dcdf
7
+ data.tar.gz: dc8d06e60ba16f5c488f8e70abc6ea49b65b31258213ca2c317d4daed4f7942f73bdc8ecee06436aae6ab9b329821d0959db58f3e62c8dafc7cd07018d87db40
data/lib/xlogin/cli.rb CHANGED
@@ -131,8 +131,9 @@ module Xlogin
131
131
  end
132
132
 
133
133
  def exec(config, &block)
134
- width = config.hostlist.map { |e| e[:name].length }.max
134
+ Signal.trap(:INT) { exit 0 }
135
135
 
136
+ width = config.hostlist.map { |e| e[:name].length }.max
136
137
  Parallel.map(config.hostlist, in_threads: config.jobs) do |hostinfo|
137
138
  session = nil
138
139
  error = nil
@@ -85,7 +85,7 @@ module Xlogin
85
85
 
86
86
  begin
87
87
  session = Xlogin.get(name, log: loggers, **@config.to_h)
88
- session.instance_eval(&@runner)
88
+ @runner.call(session)
89
89
  session.close if session
90
90
 
91
91
  output($stdout, buffer.string) if !silent && Rake.application.options.always_multitask
@@ -1,3 +1,3 @@
1
1
  module Xlogin
2
- VERSION = "0.8.11"
2
+ VERSION = "0.8.13"
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.11
4
+ version: 0.8.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - haccht
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-16 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-telnet