Skip to content

Instantly share code, notes, and snippets.

@jcalvert
Created June 9, 2016 14:52
Show Gist options
  • Save jcalvert/df79dfad484c8cbc84a71584ce5fbe92 to your computer and use it in GitHub Desktop.
Save jcalvert/df79dfad484c8cbc84a71584ce5fbe92 to your computer and use it in GitHub Desktop.
deploy button ruby code
require 'aws-sdk'
queue = 'https://sqs.us-east-1.amazonaws.com/somerandomamazonnumber/deploybutton'
poller = Aws::SQS::QueuePoller.new(queue)
poller.poll do |msg|
`deploy_shell_command`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment