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.

Parameters:

  • node (Chef::Node)

    Node object to read Ohai information from.



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.

Returns:

  • (String)

    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.

Returns:

  • (String)

    Region.



36
37
38
# File 'lib/chef/handler/sns/config/ohai.rb', line 36

def region
  @region
end

#secret_keyString (readonly)

AWS secret key.

Returns:

  • (String)

    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.

Returns:

  • (String)

    token.



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

def token
  @token
end