barking_iguana-compound 0.1.14 → 0.1.15
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f689b6fe18b87887bfc6ef69ad669787821e29e5
|
|
4
|
+
data.tar.gz: 756619210722e5fc597360df7973d625d4f6477a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
87
|
-
|
|
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}" }
|
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.
|
|
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-
|
|
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.
|
|
253
|
+
rubygems_version: 2.5.2
|
|
254
254
|
signing_key:
|
|
255
255
|
specification_version: 4
|
|
256
256
|
summary: Compound testing of Ansible playbooks
|