Skip to content

Commit

Permalink
Do not define index in generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
nporteschaikin committed Oct 23, 2014
1 parent ea6046c commit 0c7ebb0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var path = require('path')
, when = require('when')
, yaml = require('js-yaml');

var Generator = function (peak) {
var Generator = function (peak, options) {
this.peak = peak;
this.options = peak.options;
this.options = options;
this.emitter = peak.emitter;
}

Expand All @@ -15,7 +15,6 @@ Generator.prototype = {
start: function () {
return when.try(this.create_folder.bind(this))
.with(this)
.then(this.define_index)
.then(this.create_index)
.then(this.create_configuration_file)
.then(this.emit);
Expand All @@ -25,11 +24,6 @@ Generator.prototype = {
fs.mkdirSync(this.peak.path);
},

define_index: function () {
if (!this.options.index)
this.options.index = 'index.jade';
},

create_index: function () {
fs.writeFileSync(path.resolve(this.peak.path, this.options.index), '');
},
Expand Down

0 comments on commit 0c7ebb0

Please sign in to comment.