puppet-ghostbuster 0.4.1 → 0.4.2
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 +7 -0
- data/lib/puppet-ghostbuster.rb +3 -3
- data/lib/puppet-ghostbuster/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26896fb8ebecc8062f77819d2bae90f72b858ff3
|
|
4
|
+
data.tar.gz: 19fe3eb6c7eaa34a3868746426e4159e87d695cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e706f1a1ba18168415218189450b201c5dcb71fad948a13645b305e4e5abfe1fb90e2907e35f98fb31303dbbc1c1cf0d093bd2bb377b70212ce938df7d5da82
|
|
7
|
+
data.tar.gz: 91103c80cb34bb4a2b8a852157860e258f5be4699f7b19f76ce15c3a045e1f5fdb1ba336f67b974479e83f8d707f2e92040364d5f239a09396dbb032850b42d5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [0.4.2](https://rubygems.org/gems/puppet-ghostbuster/versions/0.4.2) (2016-05-02)
|
|
4
|
+
[Full Changelog](https://github.com/camptocamp/puppet-ghostbuster/compare/0.4.1...0.4.2)
|
|
5
|
+
|
|
6
|
+
**Fixed bugs:**
|
|
7
|
+
|
|
8
|
+
- Fix variable name
|
|
9
|
+
|
|
3
10
|
## [0.4.1](https://rubygems.org/gems/puppet-ghostbuster/versions/0.4.1) (2016-05-02)
|
|
4
11
|
[Full Changelog](https://github.com/camptocamp/puppet-ghostbuster/compare/0.4.0...0.4.1)
|
|
5
12
|
|
data/lib/puppet-ghostbuster.rb
CHANGED
|
@@ -152,13 +152,13 @@ class PuppetGhostbuster
|
|
|
152
152
|
@@logger.warn " Skipping symlink #{manifest}"
|
|
153
153
|
next
|
|
154
154
|
end
|
|
155
|
-
if match =
|
|
155
|
+
if match = manifest.match(/.*\/([^\/]+)\/manifests\/.+$/)
|
|
156
156
|
manifest_module_name = match.captures[0]
|
|
157
157
|
if manifest_module_name == module_name
|
|
158
|
-
count += File.readlines(
|
|
158
|
+
count += File.readlines(manifest).grep(/["']\$\{module_name\}\/#{file_name}["']/).size
|
|
159
159
|
end
|
|
160
160
|
end
|
|
161
|
-
count += File.readlines(
|
|
161
|
+
count += File.readlines(manifest).grep(/#{module_name}\/#{file_name}/).size
|
|
162
162
|
end
|
|
163
163
|
@@issues << { :title => "[GhostBuster] File #{module_name}/#{file_name} seems unused", :body => file } if count == 0
|
|
164
164
|
end
|