diff options
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/output.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/models/output.js b/lib/models/output.js index 10df67b..c11017e 100644 --- a/lib/models/output.js +++ b/lib/models/output.js @@ -5,6 +5,9 @@ var Book = require('./book'); var Output = Immutable.Record({ book: Book(), + // Name of the generator being used + generator: String(), + // Map of plugins to use (String -> Plugin) plugins: Immutable.OrderedMap(), @@ -25,6 +28,10 @@ Output.prototype.getBook = function() { return this.get('book'); }; +Output.prototype.getGenerator = function() { + return this.get('generator'); +}; + Output.prototype.getPlugins = function() { return this.get('plugins'); }; @@ -46,6 +53,15 @@ Output.prototype.getState = function() { }; /** + Get root folder for output + + @return {String} +*/ +Output.prototype.getRoot = function() { + return this.getOptions().get('root'); +}; + +/** Return logegr for this output (same as book) @return {Logger} |