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

Use conflicting options mechanism for workspace and project paths #205

Merged
merged 1 commit into from
Feb 9, 2016
Merged

Conversation

olegoid
Copy link
Contributor

@olegoid olegoid commented Feb 9, 2016

In this PR I added new mechanism for handling conflicts between workspace and project options + updated specs.

Feedback and comments are greatly appreciated 😺

* Use conflicting options mechanism for workspace and project paths
* Update specs
end,
conflicting_options: [:project],
conflict_block: proc do |value|
UI.user_error!("You can only pass either a 'workspace' or a '#{value.key}', not both")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just write project instead of value.key

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@KrauseFx Current implementation works not only for :project but for other potential conflicts as well!

Otherwise, In case if new conflicting options will be added to gym(or we will find new tuples of conflicting options) user error message should be changed in order to reflect the real cause of the conflict.

KrauseFx added a commit that referenced this pull request Feb 9, 2016
Use conflicting options mechanism for workspace and project paths
@KrauseFx KrauseFx merged commit 12a01a4 into fastlane-old:master Feb 9, 2016
@KrauseFx
Copy link
Contributor

KrauseFx commented Feb 9, 2016

Sounds good, thanks for the pull request 👍

@olegoid
Copy link
Contributor Author

olegoid commented Feb 9, 2016

Thanks for review @KrauseFx!

@KrauseFx
Copy link
Contributor

This actually causes problems when values are automatically detected (e.g. when there is a workspace and a project in the current directory, both will be set I think)

@KrauseFx
Copy link
Contributor

I don't understand this error message here: #212 (comment)

@olegoid
Copy link
Contributor Author

olegoid commented Feb 15, 2016

Hey @KrauseFx, I'll take a look later today. Thanks for highlighting it!

@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