ansible_spec 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ansible_spec/load_ansible.rb +1 -1
- data/lib/ansible_spec/version.rb +1 -1
- data/spec/load_ansible_spec.rb +0 -46
- 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: c4883e779389ae7096bdce09a7e572a699f86f1c
|
4
|
+
data.tar.gz: 144e14d67f8d46b48fb0f80b29bb79ea32510d27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f91185a22486befc9314296258734fad2848e2ee533ffe4800eb3147eeca70524e4bbbcc513f02429a16bbb9436e8545311f4289759a418f9af79fdba84dae1
|
7
|
+
data.tar.gz: ec415b24ec8dd9c9f97e0c3c89a88382c223b3f0754c224ef92b692bf329fc643710435111a2559ba1c77c094ba91cb17d48fb0945a7d5b158c8b62f537a075e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# v0.2.4
|
2
|
+
- Fix [#50 do not fail on no hosts matched](https://github.com/volanja/ansible_spec/pull/50) by [phiche](https://github.com/phiche)
|
3
|
+
|
1
4
|
# v0.2.3
|
2
5
|
- Fix [#47 NoMethodError: undefined method 'each' for nil:NilClass if inventory has "roles"=>[]](https://github.com/volanja/ansible_spec/issues/47) by [phiche](https://github.com/phiche)
|
3
6
|
|
data/lib/ansible_spec/version.rb
CHANGED
data/spec/load_ansible_spec.rb
CHANGED
@@ -1259,50 +1259,4 @@ EOF
|
|
1259
1259
|
end
|
1260
1260
|
end
|
1261
1261
|
|
1262
|
-
context '異常系 (hosts is not match)' do
|
1263
|
-
require 'yaml'
|
1264
|
-
tmp_ansiblespec = '.ansiblespec'
|
1265
|
-
tmp_playbook = 'site.yml'
|
1266
|
-
tmp_hosts = 'hosts'
|
1267
|
-
|
1268
|
-
before do
|
1269
|
-
|
1270
|
-
content = <<'EOF'
|
1271
|
-
---
|
1272
|
-
-
|
1273
|
-
playbook: site.yml
|
1274
|
-
inventory: hosts
|
1275
|
-
EOF
|
1276
|
-
|
1277
|
-
content_p = <<'EOF'
|
1278
|
-
- name: Ansible-Sample-TDD
|
1279
|
-
hosts: match
|
1280
|
-
user: root
|
1281
|
-
roles:
|
1282
|
-
- nginx
|
1283
|
-
- mariadb
|
1284
|
-
EOF
|
1285
|
-
|
1286
|
-
content_h = <<'EOF'
|
1287
|
-
[server]
|
1288
|
-
192.168.0.103
|
1289
|
-
192.168.0.104
|
1290
|
-
EOF
|
1291
|
-
|
1292
|
-
create_file(tmp_ansiblespec,content)
|
1293
|
-
create_file(tmp_playbook,content_p)
|
1294
|
-
create_file(tmp_hosts,content_h)
|
1295
|
-
end
|
1296
|
-
|
1297
|
-
it 'exitする' do
|
1298
|
-
expect{ AnsibleSpec.get_properties }.to raise_error("no hosts matched")
|
1299
|
-
end
|
1300
|
-
|
1301
|
-
after do
|
1302
|
-
File.delete(tmp_ansiblespec)
|
1303
|
-
File.delete(tmp_playbook)
|
1304
|
-
File.delete(tmp_hosts)
|
1305
|
-
end
|
1306
|
-
end
|
1307
|
-
|
1308
1262
|
end
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- volanja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|