1.0.0 • Published 11 years ago

indie-pulse-process v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
11 years ago

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

1.0.0

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago