Skip to content

Commit

Permalink
fix(Runner): use instruction instead of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Overdijk committed Apr 12, 2018
1 parent 15e3d29 commit 93841d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Runner {

applyGenerate(template, target, sourceDirectory, instruction, parameters) {
const parsed = path.parse(this.getTarget(target, parameters));
const generator = parameters.method === 'copy' ? 'CopyGenerator' : 'TemplateGenerator';
const generator = instruction.method === 'copy' ? 'CopyGenerator' : 'TemplateGenerator';

return this.perform(
path.resolve(path.join(this.config.appRoot, parsed.dir || '.'), parsed.base),
Expand Down

0 comments on commit 93841d4

Please sign in to comment.