Added Example Ruby Files

This commit is contained in:
Felix Krause
2015-05-13 11:02:26 +01:00
parent 5bf8cf50ae
commit fd4111cdbe
4 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# Download the latest screenshot information from the CMS
app_id = Dir.pwd.split("/")[-2].to_i
File.write("./screenshots.json", open("https://...amazonaws.com/1.0/#{app_id}/....json").read) rescue nil
# A list of devices you want to take the screenshots from
devices([
"iPhone 6",
"iPhone 6 Plus",
"iPhone 5",
"iPhone 4s"
])
languages([
'de-DE'
])
# Where should the resulting screenshots be stored?
screenshots_path "./screenshots"
# JavaScript UIAutomation file
js_file './snapshot.js'
# The name of the project's scheme
scheme 'Release'