indie-pulse-process

1.0.0 • Public • Published

indie-pulse-process

Starts and manages an Ind.ie Pulse process.

Installation

npm install indie-pulse-process

Example

class TestPulseProcess

	pulseProcess = null

	constructor: ->
		@pulseProcess = new PulseProcess(this)
		@pulseProcess.quiet = true
		@pulseProcess.start()

	pulseProcessRestApiIsReady: ->
		process.stdout.write '.'
		@stopTheProcess()

	pulseProcessFailedToStartProcess: (data) ->
		console.log 'Delegate: pulseProcessFailedToStartProcess error with data:'
		console.log data

	pulseProcessDidSendData: (data) ->
		process.stdout.write '.'

	pulseProcessDidSendErrorData: (data) ->
		console.log 'Delegate: pulseProcessDidSendErrorData with data:'
		console.log data

	pulseProcessDidExitWithCode: (code) ->
		process.stdout.write '.'
		console.log '\nSuccessfully connected to Pulse process and got confirmation of REST API readiness.'
		process.exit(0)

	stopTheProcess: ->
		@pulseProcess.stop()

testPulseProcess = new TestPulseProcess()

Tests

coffee test.coffee

Credits

  • Pulse by Jakob Borg, et. al.

Copyright © 2014 Aral Balkan. Licensed under GNU GPLv3. Released with ❤ by ind.ie

/indie-pulse-process/

    Package Sidebar

    Install

    npm i indie-pulse-process

    Weekly Downloads

    10

    Version

    1.0.0

    License

    GPL-3.0

    Last publish

    Collaborators

    • aralbalkan