barking_iguana-compound 0.1.14 → 0.1.15

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
  SHA1:
3
- metadata.gz: 19a95aca5869b74517a69c1b1b49967fa244cbca
4
- data.tar.gz: d94eb86d12e6c7ac362f1dd711cd2c8548ca2dd5
3
+ metadata.gz: f689b6fe18b87887bfc6ef69ad669787821e29e5
4
+ data.tar.gz: 756619210722e5fc597360df7973d625d4f6477a
5
5
  SHA512:
6
- metadata.gz: 122efd677eeb565461646b6c7586481704fc6274cd2fb58367d0f4daae7f20f313f298c57c57fde68ea8523ed827e187f3a38b75f8bae79e78bc3b9a0ebd72db
7
- data.tar.gz: e70bce8a86fe0f16b49ced02e1ea087cbd8517f8f2769a7b5dd6f7f92ab99aa9688122ea32853d5bdd223fa43ed61f13d499560b2217e02092d04928e8343f72
6
+ metadata.gz: 46017f1776d37432197e087c7bb513fe466f8176579c3ed9a463c9269b134a8ff9e6c52d8d9c73d8de54a8783e8305ae533448b2f590cf1b5ae2b0f01ec9c82b
7
+ data.tar.gz: 275002bed1d9058a3a37df2d013f09222f001cade275a58020429a849ae0c24676ae0c3a1a70de608c5445a0dcd6743edce7873c987e8d5db36ff3dd0254ce51
data/docs/CHANGELOG.md CHANGED
@@ -2,10 +2,17 @@
2
2
 
3
3
  Entries are in reverse chronological order.
4
4
 
5
- ## *0.1.15* (Current Development)
5
+ ## *0.1.16* (Current Development)
6
6
 
7
7
  * ...
8
8
 
9
+ ## *0.1.15* (2017-09-25)
10
+
11
+ * Performance improvement: don't query Vagrant for each host for status
12
+ individually when building the connection inventory. This mostly affects
13
+ test inventories that have large-ish collections of hosts, and saves
14
+ approx 30s per host.
15
+
9
16
  ## *0.1.14* (2017-05-26)
10
17
 
11
18
  * Bug fix: the path to Vagrant isn't always `/usr/local/bin`. Remove the
@@ -52,6 +52,13 @@ module BarkingIguana
52
52
  end
53
53
  end
54
54
 
55
+ def find_all_by_name names
56
+ logger.debug { "Finding hosts with names #{names.sort}" }
57
+ all.select { |h| names.include? h.inventory_name }.tap do |hosts|
58
+ logger.debug { "Result: #{hosts.inspect}" }
59
+ end
60
+ end
61
+
55
62
  def find_by_name name
56
63
  logger.debug { "Finding host with name #{name}" }
57
64
  all.detect { |h| h.inventory_name == name }.tap do |h|
@@ -83,8 +83,8 @@ module BarkingIguana
83
83
  connection_file = File.expand_path 'connection', d
84
84
  Ansible::InventoryWriter.new(connection_file).tap do |i|
85
85
  benchmark "#{name}: generating connection inventory at #{connection_file}" do
86
- hosts.each do |host|
87
- h = test.host_manager.find_by_name host.inventory_name
86
+ test_hosts = test.host_manager.find_all_by_name hosts.map(&:inventory_name)
87
+ test_hosts.each do |h|
88
88
  i.add_host h
89
89
  end
90
90
  logger.debug { "#{name}: writing connection inventory:\n#{i.to_s}" }
@@ -1,5 +1,5 @@
1
1
  module BarkingIguana
2
2
  module Compound
3
- VERSION = "0.1.14"
3
+ VERSION = "0.1.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barking_iguana-compound
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig R Webster
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-26 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  version: '0'
251
251
  requirements: []
252
252
  rubyforge_project:
253
- rubygems_version: 2.4.5.1
253
+ rubygems_version: 2.5.2
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: Compound testing of Ansible playbooks