Class: Chef::Handler::Sns::Config::Ohai

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_keyString (readonly)

AWS access key.



43
44
45
# File 'lib/chef/handler/sns/config/ohai.rb', line 43

def access_key
  @access_key
end

#regionString (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_keyString (readonly)

AWS secret key.



50
51
52
# File 'lib/chef/handler/sns/config/ohai.rb', line 50

def secret_key
  @secret_key
end

#tokenString (readonly)

AWS token.



57
58
59
# File 'lib/chef/handler/sns/config/ohai.rb', line 57

def token
  @token
end