1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-10 07:47:07 +01:00

Remove Resig's class implementation.

Fun while it lasted.
This commit is contained in:
hacksalot
2016-02-02 13:49:02 -05:00
parent f72b02a0f4
commit dd4851498a
4 changed files with 33 additions and 160 deletions

View File

@ -9,7 +9,6 @@ Output routines for HackMyResume.
chalk = require('chalk')
HME = require('../core/event-codes')
_ = require('underscore')
Class = require('../utils/class.js')
M2C = require('../utils/md2chalk.js')
PATH = require('path')
LO = require('lodash')
@ -22,11 +21,20 @@ pad = require('string-padding')
dbgStyle = 'cyan';
###* A stateful output module. All HMR console output handled here. ###
OutputHandler = module.exports = Class.extend
init: ( opts ) ->
@opts = EXTEND( true, this.opts || { }, opts )
###* A stateful output module. All HMR console output handled here. ###
module.exports = class OutputHandler
constructor: ( opts ) ->
@init opts
return
init: (opts) ->
@opts = EXTEND( true, @opts || { }, opts )
@msgs = YAML.load(PATH.join( __dirname, 'msg.yml' )).events
return
@ -39,6 +47,7 @@ OutputHandler = module.exports = Class.extend
@opts.silent || console.log( finished )
do: ( evt ) ->
that = @