Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import_from_git(url: "[email protected]:BottleRocketStudios/iOS-BuildActions.git")
```


Option 1 - Use `begin` - `rescue`:
Option 1 - Use `begin` - `ensure`:

```ruby
platform :ios do
Expand All @@ -33,11 +33,9 @@ platform :ios do
should_log: true
)
# `gym` command not shown
# ...
ensure
build_cleanup

rescue => exception
build_cleanup
raise exception
end
end
end
Expand All @@ -56,12 +54,13 @@ platform :ios do
should_log: true
)
# `gym` command not shown
# ...
build_cleanup
end

error do |lane, exception|
UI.error("Lane [#{lane}] Threw Exception: #{exception}")
cleanup_build # Keep in mind if you have other lanes, they may not need cleanup!
UI.error("Lane [#{lane}] Threw Exception: #{exception}")
build_cleanup # Keep in mind if you have other lanes, they may not need cleanup!
end
end
```