Created
October 3, 2014 13:16
-
-
Save teknogeek0/d56504d0ade0984331f0 to your computer and use it in GitHub Desktop.
ruby swf block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
client = AWS::SimpleWorkflow.new(:region => "us-west-2") | |
puts "looking for a domain" | |
mydomain = client.domains['ReInvent2014'] | |
if mydomain.exists? | |
if mydomain.workflow_types['EIPMapper','1.0'].exists? | |
puts "my workflow_type exists" | |
else | |
puts "we have a domain, but workflow_type does not exist" | |
end | |
else | |
puts "this domain does not exist" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment