puppet-ghostbuster 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9db9033a95f0d6fd0a3b20f1ffa7899cf260a624
4
- data.tar.gz: feb8ad24466b5a5dc07a491e1a76d1840d8bb3c0
3
+ metadata.gz: d0a4d2d4d4774a408dccc8f8b819bc54881d776b
4
+ data.tar.gz: 4a3dc52fc6781c0c8a6349bbe0368fdfb46bfc42
5
5
  SHA512:
6
- metadata.gz: 65e70967774d0aeaf79b30f051ea12f9c0718e6d105785550b978e160fac6228878b66c7fcdbccba4fd935e5ff18860150d7d526d8c73972df7f492e6b5af299
7
- data.tar.gz: 1730b95368293f4ce60c5dc332959073708386262e5aa631398735e95afbbc5d0e5fa05acd0628bbe348a247c7a1bb4b6cb34e5fdccecd4e0d580f2e88ab3454
6
+ metadata.gz: 7e8510218d6e6ef39dd62f489cda59583ac1602eb8808add21484ed7d7c5048b3a67d38cd481e259a9ac98ae63a848f340fa77ca1101aff8676816af2f80e333
7
+ data.tar.gz: ed3a5af6d8ec4b628f2805e28bd7fcdbe85b001f274f0ef0245269d5c504bbb8d0ea7ffc2aaa59f56f75cc17860f559f23b2b9a9d27a7deabc4d268ab21e0100
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.1.2](https://github.com/camptocamp/puppet-ghostbuster/releases/tag/0.1.2) (2015-04-23)
4
+
5
+ **Fixed bugs:**
6
+
7
+ - Skip file when symlink again
8
+
3
9
  ## [0.1.1](https://github.com/camptocamp/puppet-ghostbuster/releases/tag/0.1.1) (2015-04-23)
4
10
 
5
11
  **Fixed bugs:**
@@ -1,3 +1,3 @@
1
1
  class PuppetGhostbuster
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -90,6 +90,7 @@ class PuppetGhostbuster
90
90
 
91
91
  def find_unused_defines
92
92
  manifests.each do |file|
93
+ next if File.symlink?(file)
93
94
  if d = File.readlines(file).grep(/^define\s+([^\s\(\{]+)/){$1}[0]
94
95
  define_name = d.split('::').map(&:capitalize).join('::')
95
96
  count = self.class.client.request('resources', [:'=', 'type', define_name]).data.size
@@ -104,6 +105,7 @@ class PuppetGhostbuster
104
105
  module_name, template_name = template.match(/.*\/([^\/]+)\/templates\/(.+)$/).captures
105
106
  count = 0
106
107
  manifests.each do |manifest|
108
+ next if File.symlink?(manifest)
107
109
  if match = manifest.match(/.*\/([^\/]+)\/manifests\/.+$/)
108
110
  manifest_module_name = match.captures[0]
109
111
  count += File.readlines(manifest).grep(/["']\$\{module_name\}\/#{template_name}["']/).size if manifest_module_name == module_name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-ghostbuster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camptocamp