chef-rabbit 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTU4ZTFiNDc0MGE3ODhhNjQwYjUxYzNiMzQwMGQwYjkxZjAwNTY1Mw==
4
+ NjE3MjViOWYzZTAwYjIwYjA5ZTFkMDVmMWU4M2IxM2UzMGU1ZDNhYQ==
5
5
  data.tar.gz: !binary |-
6
- NmY0ZmJmNmViZDNjN2ZjY2UxYmRhYTM1ZjU0OWQzNGY0ODM5YzdmZg==
6
+ MzJmNmY0MGRkNzNmN2I1YTNjMzQ2ZmMwZWRjZWExZTAzNDM1MDNhNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmQ2ODk1YjYwMDcyMDAxZmVhMThhMDVlN2QyNDgwMGJjNWM5Nzk5NGRkZTU3
10
- MjM2MmY1MWUwNWMyYjA2YmQwNDc0MzE1NTkxNjA1OWE4N2RlMzQ4ZDEzM2Mx
11
- Zjc0Y2M1Y2JjZTgwNzhhNmU3NzJkOGFlMWUxMTI0M2QzMDkzMjc=
9
+ NWUwYzU2YjY4MWE3NDg1ODBmM2YzNTZiZjhkMWIwMWYzM2U3ODZmNjJiYWVm
10
+ Mzg3ZmQ1NWZkYzVjNzBjMGZlZjFiMDI5ZGNkMjU2OTJjMjJkY2M1ZDY3YjZl
11
+ Y2E1MWVjNDVkZjllOTkzZWMyMzkxNTNhNDUwZmMwMTBlYTVkZjA=
12
12
  data.tar.gz: !binary |-
13
- NGE3NWQ5YWQ0ZDlkMTdkMDM2NzFjODY5MjA4MDU4M2NiOThkMmMxYTg2ZjUy
14
- YTIwOWQ2ZjI2N2RhMTNmZmMwYzU2NjVmYWQzMmEyMWJlM2VhNzdlM2M1MGFk
15
- MmNiMDUzMjc2ZWIzY2MzYWI0OGRhMDY5ZGM5NTVmNGY5MDZiYjI=
13
+ OTJhNTliMTFhNjJmMDVlOTUzODJjMmMzYzg0MTM4ZDI1YmVkYzc0M2UxOTZi
14
+ NTdiZTBiMWU3Yzk5YmE2MGQzYzJkOTIxY2I1OGFhNzE2ODBmOTVlZTdjYTNi
15
+ MDgyNzc5ZWRjNmUyZTdmMzE5YzRhNzFmNDhkNjM5YzAxZTg4YmU=
@@ -81,11 +81,16 @@ class Chef
81
81
  def changes
82
82
  @changes unless @changes.nil?
83
83
 
84
- lines = sanitised_changes.collect do |resource|
85
- "recipe[#{resource.cookbook_name}::#{resource.recipe_name}] ran '#{resource.action}' on #{resource.resource_name} '#{resource.name}'"
84
+ processed_changes = sanitised_changes
85
+ lines = nil
86
+
87
+ if processed_changes != nil
88
+ lines = processed_changes.collect do |resource|
89
+ "recipe[#{resource.cookbook_name}::#{resource.recipe_name}] ran '#{resource.action}' on #{resource.resource_name} '#{resource.name}'"
90
+ end
86
91
  end
87
92
 
88
- count = lines.size
93
+ count = (lines == nil) ? 0 : lines.size
89
94
 
90
95
  message = if count > 0
91
96
  "Updated #{count} resources:\n\n#{lines.join("\n")}"
@@ -23,6 +23,6 @@
23
23
 
24
24
  class Chef
25
25
  module RABBIT
26
- VERSION = "1.0.9"
26
+ VERSION = "1.0.10"
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-rabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - MTN Satellite Communications
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny