Sha256: 40c58fa2029ab0d264e4db34023d3337f666e2afd23c4950e87ed4f5c284fdb2
Contents?: true
Size: 588 Bytes
Versions: 7
Compression:
Stored size: 588 Bytes
Contents
require "forwardable" module Queuel module SNS class Engine < Base::Engine extend Forwardable def_delegators :Queuel, :logger AWSSDKMissingError = Class.new(StandardError) private def client_klass if defined?(::AWS::SNS) ::AWS::SNS else begin logger.info "Loading AWS SDK..." require 'aws-sdk' ::AWS::SNS rescue LoadError logger.error "Couldn't find aws_sdk gem" raise(AWSSDKMissingError) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems