Class: Chef::Handler::Sns::Config::Ohai
- Inherits:
-
Object
- Object
- Chef::Handler::Sns::Config::Ohai
- Defined in:
- lib/chef/handler/sns/config/ohai.rb
Overview
Gets Chef Handler SNS default configuration from [Ohai](docs.chef.io/ohai.html) information.
Instance Attribute Summary collapse
-
#access_key ⇒ String
readonly
AWS access key.
-
#region ⇒ String
readonly
AWS region name.
-
#secret_key ⇒ String
readonly
AWS secret key.
-
#token ⇒ String
readonly
AWS token.
Instance Method Summary collapse
-
#initialize(node) ⇒ Ohai
constructor
Constructs a Ohai object.
Constructor Details
#initialize(node) ⇒ Ohai
Constructs a Chef::Handler::Sns::Config::Ohai object.
66 67 68 |
# File 'lib/chef/handler/sns/config/ohai.rb', line 66 def initialize(node) read_config(node) end |
Instance Attribute Details
#access_key ⇒ String (readonly)
AWS access key.
43 44 45 |
# File 'lib/chef/handler/sns/config/ohai.rb', line 43 def access_key @access_key end |
#region ⇒ String (readonly)
AWS region name.
Not used, read from the topic ARN.
36 37 38 |
# File 'lib/chef/handler/sns/config/ohai.rb', line 36 def region @region end |
#secret_key ⇒ String (readonly)
AWS secret key.
50 51 52 |
# File 'lib/chef/handler/sns/config/ohai.rb', line 50 def secret_key @secret_key end |
#token ⇒ String (readonly)
AWS token.
57 58 59 |
# File 'lib/chef/handler/sns/config/ohai.rb', line 57 def token @token end |