puppet-syntax 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/CHANGELOG +4 -0
- data/README.md +2 -1
- data/lib/puppet-syntax/manifests.rb +3 -1
- data/lib/puppet-syntax/version.rb +1 -1
- metadata +4 -4
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Puppet::Syntax
|
2
2
|
|
3
|
-
Syntax checks for Puppet manifests and
|
3
|
+
Syntax checks for Puppet manifests, templates, and Hiera YAML.
|
4
4
|
|
5
5
|
## Version support
|
6
6
|
|
@@ -23,6 +23,7 @@ Test all manifests and templates relative to your `Rakefile`:
|
|
23
23
|
➜ puppet git:(master) bundle exec rake syntax
|
24
24
|
---> syntax:manifests
|
25
25
|
---> syntax:templates
|
26
|
+
---> syntax:hiera:yaml
|
26
27
|
|
27
28
|
A non-zero exit code and error message will be returned for any failures:
|
28
29
|
|
@@ -22,6 +22,8 @@ module PuppetSyntax
|
|
22
22
|
filelist.each do |puppet_file|
|
23
23
|
begin
|
24
24
|
validate_manifest(puppet_file)
|
25
|
+
rescue SystemExit
|
26
|
+
# Disregard exit(1) from face.
|
25
27
|
rescue => error
|
26
28
|
errors << error
|
27
29
|
end
|
@@ -40,7 +42,7 @@ module PuppetSyntax
|
|
40
42
|
|
41
43
|
private
|
42
44
|
def validate_manifest(file)
|
43
|
-
Puppet::Face[:parser,
|
45
|
+
Puppet::Face[:parser, :current].validate(file)
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-syntax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
segments:
|
146
146
|
- 0
|
147
|
-
hash:
|
147
|
+
hash: -1226069919684334403
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
segments:
|
155
155
|
- 0
|
156
|
-
hash:
|
156
|
+
hash: -1226069919684334403
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
159
|
rubygems_version: 1.8.23
|