-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUGFIX Fixes #3472 Check for 'usePods' instead of 'pod'. #3481
Conversation
@trabus - 👍 / 👎 ? |
|
@jankrueger So the fix is actually just as simple, but belongs in the blueprint model here. When the value for We have two options. // lib/models/blueprint.js install and destroy methods
var pod = (options.settings && options.settings.usePods) ? !options.pod : options.pod;
this.pod = options.pod = pod; The second would be to check for // lib/commands/generate.js and lib/commands/destroy.js
if(this.settings && this.settings.usePods) {
commandOptions.pod = !commandOptions.pod;
}
var taskOptions = merge(taskArgs, commandOptions || {});
// lib/models/blueprint.js install and destroy methods
this.pod = options.pod; We should probably add a test for this as well, you should be able to add one in tests/acceptance/pods-generate-test.js |
@trabus Thanks for clarification! |
@jankrueger The existing tests should be fine after this fix, just be sure to revert the change in the component blueprint. I was suggesting we add an additional generate test with Regarding additional tests, you should be able to copy this one, and change the values being passed. You'll just need to adjust what the expected output should be so it matches what a component generates. |
@trabus I implemented your preferred version and changed the commandOptions in the generate/destroy command. The failing test is now passing and i added two more tests as suggested. |
@jankrueger Looking good! 👍 Can @rwjblue or @stefanpenner review, please? |
LGTM |
BUGFIX Fixes #3472 Check for 'usePods' instead of 'pod'.
@jankrueger / @trabus - Thanks for working together on this! |
Fixes #3472 by checking for 'options.usePods' instead of 'options.pod'