Skip to content

Commit

Permalink
Drop support for using usePods: true and the --pod flag simultane…
Browse files Browse the repository at this point in the history
…ously
  • Loading branch information
bertdeblock committed Sep 21, 2022
1 parent f57b7ea commit 17ad751
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 17ad751

Please sign in to comment.