module Liam::Common
Constants
- CONFIG_FILE
Public Instance Methods
client_options()
click to toggle source
# File lib/liam/common.rb, line 9 def client_options { access_key_id: env_credentials.dig('aws', 'access_key_id'), endpoint: env_credentials.dig('aws', 'sns', 'endpoint'), region: env_credentials.dig('aws', 'region'), secret_access_key: env_credentials.dig('aws', 'secret_access_key') }.compact end
credentials()
click to toggle source
# File lib/liam/common.rb, line 22 def credentials YAML.load_file(CONFIG_FILE) end
env_credentials()
click to toggle source
# File lib/liam/common.rb, line 18 def env_credentials @env_credentials ||= credentials[ENV['RAILS_ENV']] end