Nodding Previously Managed
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    realizepublic

    npm install -g realize

    Version 0.0.1 (unstable)

    realize

    A realization phrase runner.

    example

    the realizer file realizer.coffee

     
    title: 'Generic'
    uuid:  'universally unique identifier'
    realize: (step) -> 
     
        before all: ->
            @count = 0
            @notice.use (msg, next) -> 
     
                # 
                # integrated middleware message bus 
                #  
     
                if msg.event.match /^run::/
                    console.log msg.eventmsg.progress
                    return next()
                
                console.log msg.eventmsg
                next()
                
     
        before each: -> 
     
            @count++
     
            # 
            # @ (this) - References to the running `job` context 
            #            in all `hooks` and `phrases`. 
            # 
     
     
        step 'A'(done) -> @arbitraryResult = 42; done()
        step 'B'(done) -> done()
        step 'C'(done) -> 
     
            # 
            # this is a `phrase`, it has access to  
            # the message bus 
            # 
     
            @notice.event 'RUNNING step C'count: @count
            done()
     
     

    to run it realize -xf realizer.coffee

    See also: objective

    Keywords

    none

    install

    npm i realize

    Downloadsweekly downloads

    3

    version

    0.0.1

    license

    none

    last publish

    collaborators

    • avatar