Browse Source

Add use permission question

pull/1785/head
jlukic 10 years ago
parent
commit
c236c6e17c
1 changed files with 21 additions and 1 deletions
  1. 22
      tasks/config/project/install.js

22
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',

Loading…
Cancel
Save