Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Added buildlog_path option to change the location of the xcodebuild logs #99

Merged
merged 2 commits into from
Sep 23, 2015
Merged

Added buildlog_path option to change the location of the xcodebuild logs #99

merged 2 commits into from
Sep 23, 2015

Conversation

xfreebird
Copy link
Contributor

Added option buildlog_path to change the location of the xcodebuild log. By default it is ~/Library/Logs/gym.

If buildlog_path is set to /my/location, then the final build log will end up to /my/location folder instead of ~/Library/Logs/gym.

This is useful in specific cases when it is desired to have to build log file in a different location.

containing = File.expand_path("~/Library/Logs/gym")
file_dir = Gym.config[:buildlog_path]
file_dir ||= "~/Library/Logs/gym"
containing = File.expand_path(file_dir)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplify to containing = File.expand_path(Gym.config[:buildlog_path)
and set the default value in options.rb

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 👍

KrauseFx added a commit that referenced this pull request Sep 23, 2015
Added buildlog_path option to change the location of the xcodebuild logs
@KrauseFx KrauseFx merged commit 71bb7f4 into fastlane-old:master Sep 23, 2015
@KrauseFx
Copy link
Contributor

Looks great, thanks 👍

@xfreebird xfreebird deleted the feature/buildlogpath branch September 23, 2015 04:25
@xfreebird
Copy link
Contributor Author

thanks !

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants