Skip to content

Commit

Permalink
Merge pull request kalabox#23 from kalabox/434-modKebab
Browse files Browse the repository at this point in the history
434 mod kebab
  • Loading branch information
pirog committed Sep 23, 2015
2 parents 43dd7e1 + 26d8454 commit 4bd412c
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 24 deletions.
4 changes: 4 additions & 0 deletions app/node_modules/bluebird/changelog.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions app/node_modules/bluebird/js/browser/bluebird.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/node_modules/bluebird/js/browser/bluebird.min.js

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions app/node_modules/bluebird/js/main/promisify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions app/node_modules/bluebird/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,15 @@ module.exports = function(kbox, pantheon) {
type: 'input',
message: 'What will you call this monster you have created',
validate: function(value) {
// @todo some actual validation here
return true;
// @todo: do we need a better error message?
var domain = kbox.core.deps.get('globalConfig').domain;
var kebabMe = kbox.util.domain.modKebabCase(value);
return kbox.util.domain.validateDomain([kebabMe, domain].join('.'));
},
filter: function(value) {
return _.kebabCase(value);
if (value) {
return kbox.util.domain.modKebabCase(value);
}
},
default: function(answers) {
return pantheon.sites[answers.uuid].information.name;
Expand Down

0 comments on commit 4bd412c

Please sign in to comment.