chef-handler-sns 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,8 +17,6 @@
17
17
  #
18
18
 
19
19
  require 'chef/handler'
20
- require 'chef/resource/directory'
21
-
22
20
  require 'right_aws'
23
21
 
24
22
  class Chef
@@ -53,12 +51,14 @@ class Chef
53
51
  end
54
52
 
55
53
  def sns
56
- params = {
57
- :logger => Chef::Log,
58
- :region => @region || node.ec2.placement_availability_zone.chop
59
- }
60
- params[:token] = @token if @token
61
- @@sns ||= RightAws::SnsInterface.new(@access_key, @secret_key, params)
54
+ @sns ||= begin
55
+ params = {
56
+ :logger => Chef::Log,
57
+ :region => @region || node.ec2.placement_availability_zone.chop
58
+ }
59
+ params[:token] = @token if @token
60
+ RightAws::SnsInterface.new(@access_key, @secret_key, params)
61
+ end
62
62
  end
63
63
 
64
64
  def sns_subject
@@ -98,6 +98,8 @@ class Chef
98
98
  message << Array(backtrace).join("\n")
99
99
  message << "\n"
100
100
  end
101
+
102
+ message
101
103
  end
102
104
 
103
105
  end
@@ -1,7 +1,7 @@
1
1
  class Chef
2
2
  class Handler
3
3
  class Sns
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.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: 2013-02-13 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: right_aws