Starts and manages an Ind.ie Pulse process.
npm install indie-pulse-processStarts and manages an Ind.ie Pulse process.
npm install indie-pulse-process
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()
coffee test.coffee
* [Pulse][1] by Jakob Borg, et. al.
Copyright © 2014 [Aral Balkan][2]. Licensed under [GNU GPLv3][3]. Released with ❤ by [ind.ie][4]
[1]: http://syncthing.net
[2]: https://aralbalkan.com
[3]: http://www.gnu.org/licenses/gpl-3.0.html
[4]: https://ind.ie