ansible_spec 0.2.20 → 0.2.21
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ansible_spec/load_ansible.rb +3 -1
- data/lib/ansible_spec/version.rb +1 -1
- data/spec/load_ansible_spec.rb +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3d4a63863f70b35d86dbe14795dc9ff5446621c
|
|
4
|
+
data.tar.gz: 0608e049cd384030b7683de980e6e3068e9dfeb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b9c770614a0b3706255317d2fa16a41465a9fbc6bef6ccdfe4bc66491c2abb417ebd448f94016e5c1c9a417e67e4fa75222f001563c4ce84ae83c6e998704e7
|
|
7
|
+
data.tar.gz: 24d9cb2c925e0be058a92a0d6269a03fc1fdba859fd959730b4c911587ff14678fe54f055d996b3d672bd726b42958a4642f731955197422eeaeb09aa82eb0d9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
# v0.2.21
|
|
2
|
+
- Merge [#103 Parse the full included playbook](https://github.com/volanja/ansible_spec/pull/103) by [agx](https://github.com/agx)
|
|
3
|
+
|
|
1
4
|
# v0.2.20
|
|
2
5
|
- Merge [#101 Added feature set path to group_vars and host_vars](https://github.com/volanja/ansible_spec/pull/101) by [rbramwell](https://github.com/rbramwell)
|
|
3
6
|
- Merge [#99 Unbreak 'serverspec:all' if groups with no hosts exist](https://github.com/volanja/ansible_spec/pull/99) by [agx](https://github.com/agx)
|
|
@@ -231,7 +231,9 @@ module AnsibleSpec
|
|
|
231
231
|
properties = Array.new
|
|
232
232
|
playbook.each do |site|
|
|
233
233
|
if site.has_key?("include")
|
|
234
|
-
|
|
234
|
+
YAML.load_file(site["include"]).each { |site|
|
|
235
|
+
properties.push site
|
|
236
|
+
}
|
|
235
237
|
else
|
|
236
238
|
properties.push site
|
|
237
239
|
end
|
data/lib/ansible_spec/version.rb
CHANGED
data/spec/load_ansible_spec.rb
CHANGED
|
@@ -591,6 +591,12 @@ EOF
|
|
|
591
591
|
user: nginx
|
|
592
592
|
roles:
|
|
593
593
|
- nginx
|
|
594
|
+
|
|
595
|
+
- name: Ansible-Nginx2
|
|
596
|
+
hosts: proxies
|
|
597
|
+
user: nginx
|
|
598
|
+
roles:
|
|
599
|
+
- nginx-proxy
|
|
594
600
|
EOF
|
|
595
601
|
create_file(tmp_inc,content_inc)
|
|
596
602
|
|
|
@@ -601,6 +607,11 @@ EOF
|
|
|
601
607
|
expect(@res.instance_of?(Array)).to be_truthy
|
|
602
608
|
end
|
|
603
609
|
|
|
610
|
+
it 'res has three groups' do
|
|
611
|
+
expect(@res.length).to eq 3
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
|
|
604
615
|
it 'res is hash' do
|
|
605
616
|
expect(@res[0].instance_of?(Hash)).to be_truthy
|
|
606
617
|
end
|
|
@@ -659,6 +670,12 @@ EOF
|
|
|
659
670
|
expect(@res[1]['roles'].instance_of?(Array)).to be_truthy
|
|
660
671
|
expect(@res[1]['roles'][0]).to eq 'nginx'
|
|
661
672
|
end
|
|
673
|
+
|
|
674
|
+
it 'exist name' do
|
|
675
|
+
expect(@res[2].key?('name')).to be_truthy
|
|
676
|
+
expect(@res[2]['name']).to eq 'Ansible-Nginx2'
|
|
677
|
+
end
|
|
678
|
+
|
|
662
679
|
after do
|
|
663
680
|
File.delete(tmp_pb)
|
|
664
681
|
File.delete(tmp_inc)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ansible_spec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- volanja
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|