Skip to content

Commit

Permalink
Merge pull request #10021 from bertdeblock/drop-support-for-using-use…
Browse files Browse the repository at this point in the history
…Pods-and-the-pod-flag-simultaneously

[CLEANUP] Drop support for using `usePods: true` and the `--pod` flag simultaneously
  • Loading branch information
bertdeblock committed Oct 5, 2022
2 parents 7e111ec + e924ecb commit e79fe7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/commands/destroy.js
Expand Up @@ -68,7 +68,7 @@ module.exports = Command.extend({
};

if (this.settings && this.settings.usePods && !commandOptions.classic) {
commandOptions.pod = !commandOptions.pod;
commandOptions.pod = true;
}

if (commandOptions.in) {
Expand Down
12 changes: 2 additions & 10 deletions lib/commands/generate.js
Expand Up @@ -58,16 +58,8 @@ module.exports = Command.extend({
args: rawArgs,
};

if (this.settings && this.settings.usePods) {
if (commandOptions.pod) {
let warning = 'Using both .ember-cli usePods settings and --pod flag ';
warning += 'together has been deprecated.';
this.ui.writeDeprecateLine(warning);
}

if (!commandOptions.classic) {
commandOptions.pod = !commandOptions.pod;
}
if (this.settings && this.settings.usePods && !commandOptions.classic) {
commandOptions.pod = true;
}

if (commandOptions.in) {
Expand Down

0 comments on commit e79fe7d

Please sign in to comment.