Skip to content

Commit

Permalink
[BUGFIX release] Ignore --pod for -addon blueprints
Browse files Browse the repository at this point in the history
* helper
* initializer
* instance-initializer
  • Loading branch information
jamescdavis committed Feb 26, 2018
1 parent 5c6eef3 commit 14d5bb0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions blueprints/-addon-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ module.exports = {
fileMapTokens: function() {
return {
__name__: function(options) {
if (options.pod && options.hasPathToken) {
return options.locals.blueprintName;
}
return options.dasherizedModuleName;
},
__path__: function(options) {
if (options.pod && options.hasPathToken) {
return path.join(options.podPath, options.dasherizedModuleName);
}
return inflector.pluralize(options.locals.blueprintName);
},
__root__: function(options) {
Expand All @@ -42,10 +36,6 @@ module.exports = {
modulePathSegments = [addonName, inflector.pluralize(blueprintName), fileName];
}

if (options.pod) {
modulePathSegments = [addonName, fileName, blueprintName];
}

return {
modulePath: modulePathSegments.join('/'),
blueprintName: blueprintName
Expand Down

0 comments on commit 14d5bb0

Please sign in to comment.