-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
40 lines (28 loc) · 834 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Based on karma-ripple-launcher
*/
require('ripple-emulator');
var exec = require('child-process-promise').exec;
var RippleBrowser = function(baseBrowserDecorator, config, args) {
'use strict';
baseBrowserDecorator(this);
var flags = args.flags || [];
var self = this;
self.settings = config.rippleSettings;
console.log('Starting ripple in: ' + config.rippleSettings.codePath);
exec('ripple elmulate --path ' + config.rippleSettings.codePath);
};
RippleBrowser.prototype = {
name: 'Ripple',
DEFAULT_CMD: {
linux: 'ripple',
darwin: 'ripple',
win32: 'ripple' // Will not work, need to address later
},
ENV_CMD: 'RIPPLE_BIN'
};
RippleBrowser.$inject = ['baseBrowserDecorator', 'config', 'args'];
// PUBLISH DI MODULE
module.exports = {
'launcher:Ripple': ['type', RippleBrowser],
};