Navigation Menu

Skip to content

Commit

Permalink
Fix missing variable "program"
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 6, 2012
1 parent 01e1555 commit c6b117d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cs-delete-domain
Expand Up @@ -19,7 +19,7 @@ if (commandLine.options.force) {
commandLine.domain.deleteSync();
console.log('Domain [' + commandLine.domain.name + '] has been deleted successfully.');
} else {
program.confirm('Really delete? [' + commandLine.domain.name + '] (y/N)', function(ok){
commandLine.confirm('Really delete? [' + commandLine.domain.name + '] (y/N)', function(ok){
if (ok) {
commandLine.domain.deleteSync();
console.log('Successfully deleted.');
Expand Down
7 changes: 7 additions & 0 deletions lib/command-line.js
Expand Up @@ -62,6 +62,13 @@ CommandLineInterface.prototype = {
return this;
},

prompt: function() {
return this.prompt.confirm.apply(this.program, arguments);
},
confirm: function() {
return this.program.confirm.apply(this.program, arguments);
},

assertHaveDomainName: function() {
if (!this.options.domainName) {
console.log('You must specify the domain name.');
Expand Down

0 comments on commit c6b117d

Please sign in to comment.