Class: Chef::Handler::Sns
- Inherits:
-
Chef::Handler
- Object
- Chef::Handler
- Chef::Handler::Sns
- Includes:
- Config
- Defined in:
- lib/chef/handler/sns.rb,
lib/chef/handler/sns/config.rb,
lib/chef/handler/sns/version.rb
Defined Under Namespace
Modules: Config
Constant Summary collapse
- VERSION =
'0.2.6'
Constants included from Config
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Sns
constructor
A new instance of Sns.
- #report ⇒ Object
- #server ⇒ Object
Methods included from Config
#access_key, #body_template, #config_check, #config_init, #region, #secret_key, #subject, #token, #topic_arn
Constructor Details
Instance Method Details
#report ⇒ Object
34 35 36 37 |
# File 'lib/chef/handler/sns.rb', line 34 def report config_check sns.publish(topic_arn, sns_body, sns_subject) end |
#server ⇒ Object
39 40 41 |
# File 'lib/chef/handler/sns.rb', line 39 def server @sns.params[:server] end |