koma 0.16.0 → 0.17.0

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: b6e94b0bc0d4e9b4bbdfefeb510bbc4b7eb2a429
4
- data.tar.gz: 5f13188a65d9397006317c93f61ad8de3cdec855
3
+ metadata.gz: 651053b47c9eb173036543a06c946015b9dd36ce
4
+ data.tar.gz: 4119cb155dd721d62e4533cbe85852d3f57050ef
5
5
  SHA512:
6
- metadata.gz: df23263ecc1afab1281963073e9497b49f7ce2affdf6e27dd328efb1a9b2b1dfc8547436371aa37e572b87a269a101d858bbaddd8d2925f4ca04f8ddbb261533
7
- data.tar.gz: d97c9d07b2d7405239a16223d43d545c2bb34a3c6f3430f141f2026379bf1cf7511be28bd38946705738715c4c9fde4ed1e2fae400552ee4226946fc62ca4ead
6
+ metadata.gz: bd1eeef8f14608e77490236eee03838a5198fdbef0b2c1a94986db20e3d491e1b99985c3fbfb02a8bf93eda5227406680bf6dd129702a3426ad2d7a1e560406b
7
+ data.tar.gz: c7ba2bbab513f61bee9a5506fceb8c8b2c373bea151712a7f0a18a6ceb82edf8a6ebe99f77a1186f3eb2da6275180997437418e02cf3860a148779772ff7a007
@@ -23,11 +23,10 @@ module Koma
23
23
  def run_commands(commands)
24
24
  if host.include?(',')
25
25
  list = host.split(',').uniq
26
- results = Parallel.map(list) do |h|
27
- run_commands_via_ssh(h, options, commands)
26
+ result = {}
27
+ list.each do |h|
28
+ result[h] = run_commands_via_ssh(h, options, commands)
28
29
  end
29
- arr = [list, results].transpose
30
- result = Hash[*arr.flatten]
31
30
  else
32
31
  result = run_commands_via_ssh(host, options, commands)
33
32
  end
@@ -57,6 +56,7 @@ module Koma
57
56
  private
58
57
 
59
58
  def build_ssh_options(host, options)
59
+ Specinfra::Backend::Ssh.clear
60
60
  user, host = host.split('@') if host.include?('@')
61
61
  set :backend, :ssh
62
62
  set :host, host
@@ -1,3 +1,3 @@
1
1
  module Koma
2
- VERSION = '0.16.0'
2
+ VERSION = '0.17.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor