ansible_spec 0.2.20 → 0.2.21

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: 739a7ec257b6767370c7919f2cbf8a5a0508f73c
4
- data.tar.gz: d391ada2f510a29d259a5d7f6a51585857ffd5cf
3
+ metadata.gz: a3d4a63863f70b35d86dbe14795dc9ff5446621c
4
+ data.tar.gz: 0608e049cd384030b7683de980e6e3068e9dfeb3
5
5
  SHA512:
6
- metadata.gz: ebe5c892c76fb3a1e30e06be59f3b88a94da0521ac92a64705acd20077a392cb98067b38c9393abc0e1b60ea91547240b160a3521ba96c7bb9208ae5998bc3db
7
- data.tar.gz: a9f50b89fbba2ce8553517f3bba0033131b378af1760ec14153cc1069c8848cc2b0314de729833a7a7c1001ef32e468b923436b4b770c5c62f9fb45daf1a4da8
6
+ metadata.gz: 5b9c770614a0b3706255317d2fa16a41465a9fbc6bef6ccdfe4bc66491c2abb417ebd448f94016e5c1c9a417e67e4fa75222f001563c4ce84ae83c6e998704e7
7
+ data.tar.gz: 24d9cb2c925e0be058a92a0d6269a03fc1fdba859fd959730b4c911587ff14678fe54f055d996b3d672bd726b42958a4642f731955197422eeaeb09aa82eb0d9
@@ -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
- properties.push YAML.load_file(site["include"])[0]
234
+ YAML.load_file(site["include"]).each { |site|
235
+ properties.push site
236
+ }
235
237
  else
236
238
  properties.push site
237
239
  end
@@ -1,3 +1,3 @@
1
1
  module AnsibleSpec
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
3
3
  end
@@ -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.20
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-04-01 00:00:00.000000000 Z
11
+ date: 2017-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler