README.md in snapshot-0.4.13 vs README.md in snapshot-0.5.0

- old
+ new

@@ -257,27 +257,16 @@ - Reset all user defaults - Pre-fill the database To run a shell script, just use ```system('./script.sh')```. ```ruby -setup_for_device_change do |device, udid| - puts "Preparing device: #{device} with udid #{udid}" - - # Completely reset the device before we start taking screenshots - system("xcrun simctl erase #{udid}") +setup_for_device_change do |device, udid, language| + puts "Running #{language} on #{device}" + system("./popuplateDatabase.sh") end -setup_for_language_change do |lang, device| - puts "Running #{lang} on #{device}" - system("./populateDatabase.sh") -end - -teardown_language do |lang, device| - puts "Finished with #{lang} on #{device}" -end - -teardown_device do |device| - puts "Cleaning device #{device}" +teardown_device do |language, device| + puts "Finished with #{language} on #{device}" system("./cleanup.sh") end ``` If you want to run a script before each run of the app, it's enough to only implement the `setup_for_language_change` callback.