diff --git a/tasks/config/project/install.js b/tasks/config/project/install.js index aabdf67b4..354fde8fd 100644 --- a/tasks/config/project/install.js +++ b/tasks/config/project/install.js @@ -24,6 +24,11 @@ var when = { return (questions.useRoot === undefined || questions.useRoot == 'no'); }, + // permissions + changePermissions: function(question) { + return (questions.usePermission == true); + } + // install hasConfig: function() { return requireDotFile('semantic.json'); @@ -391,12 +396,27 @@ module.exports = { ], when: when.notAuto }, + { + type: 'list', + name: 'changePermisions', + message: 'Should we set permissions on outputted files?', + choices: [ + { + name: 'No', + value: false + }, + { + name: 'Yes', + value: true + }, + ] + }, { type: 'input', name: 'permission', message: 'What octal file permission should outputted files receive?', default: defaults.permission, - when: when.notAuto + when: when.setPermission }, { type: 'list',