Skip to content

Instantly share code, notes, and snippets.

/a.rb Secret

Created August 8, 2016 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/425d0d52a0adfba859ff7354bc43c9d8 to your computer and use it in GitHub Desktop.
Save anonymous/425d0d52a0adfba859ff7354bc43c9d8 to your computer and use it in GitHub Desktop.
def self.new_sqs_client
Aws::SQS::Client.new(region: (AwsInfo.region rescue 'us-west-1')) # so it will run locally
end
def self.client
@@sqs = @@sqs || new_sqs_client
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment