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,
lib/chef/handler/sns/config/ohai.rb
Defined Under Namespace
Modules: Config
Constant Summary collapse
- VERSION =
'1.1.0'
Constants included from Config
Instance Method Summary collapse
- #get_region ⇒ Object
-
#initialize(config = {}) ⇒ Sns
constructor
A new instance of Sns.
- #report ⇒ Object
Methods included from Config
#access_key, #body_template, #config_check, #config_from_ohai, #config_init, #filter_opsworks_activity, #region, #secret_key, #subject, #token, #topic_arn
Constructor Details
Instance Method Details
#get_region ⇒ Object
44 45 46 |
# File 'lib/chef/handler/sns.rb', line 44 def get_region sns.config.region end |
#report ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/chef/handler/sns.rb', line 34 def report config_check(node) if allow_publish(node) sns.topics[topic_arn].publish( sns_body, { :subject => sns_subject } ) end end |