Sha256: d44e93c3293609726c92b5ba167d1ac38dbb7d59cf9d9bf31a1aee56d87006ba
Contents?: true
Size: 601 Bytes
Versions: 9
Compression:
Stored size: 601 Bytes
Contents
# # DESCRIPTION: # Common helper methods # # DEPENDENCIES: # gem: aws-sdk # gem: sensu-plugin # # USAGE: # # NOTES: # # LICENSE: # Shane Starcher <shane.starcher@gmail.com> # Released under the same terms as Sensu (the MIT license); see LICENSE # for details. # module Common def initialize super() aws_config end def aws_config Aws.config[:credentials] = Aws::Credentials.new(config[:aws_access_key], config[:aws_secret_access_key]) if config[:aws_access_key] && config[:aws_secret_access_key] Aws.config.update( region: config[:aws_region] ) end end
Version data entries
9 entries across 9 versions & 1 rubygems