Skip to content

Commit

Permalink
fix(generators): fix incorrect message in value converter generator
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu85 committed Jun 22, 2016
1 parent 83e20d6 commit 8b63c24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/resources/generators/value-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export default class ValueConverterGenerator {

execute() {
return this.ui
.ensureAnswer(this.options.args[0], 'What would you like to call the generator?')
.ensureAnswer(this.options.args[0], 'What would you like to call the value converter?')
.then(name => {
let fileName = this.project.makeFileName(name);
let className = this.project.makeClassName(name);

this.project.valueConverters.add(
ProjectItem.text(`${fileName}.js`, this.generateSource(className))
);

return this.project.commitChanges()
.then(() => this.ui.log(`Created ${fileName}.`));
});
Expand Down
2 changes: 1 addition & 1 deletion lib/resources/generators/value-converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class ValueConverterGenerator {

execute() {
return this.ui
.ensureAnswer(this.options.args[0], 'What would you like to call the generator?')
.ensureAnswer(this.options.args[0], 'What would you like to call the value converter?')
.then(name => {
let fileName = this.project.makeFileName(name);
let className = this.project.makeClassName(name);
Expand Down

0 comments on commit 8b63c24

Please sign in to comment.