UNPKG

indie-pulse-process

Version:

Starts and manages an Ind.ie Pulse process.

59 lines (38 loc) 1.31 kB
# 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][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