Integrations moved to Old Repos

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 14:51:19 +01:00
1 parent 7bc349c258
commit 4cf7212625
593 files changed

No files matched your search

@@ -0,0 +1,37 @@
function newEthereumActionSwitch() {
let thisObject = {
executeAction: executeAction,
initialize: initialize,
finalize: finalize
}
let functionLibraryGeth = newGeth()
return thisObject
function finalize() {
functionLibraryGeth = undefined
}
function initialize() {
/* Nothing to initialize since a Function Library does not hold any state. */
}
async function executeAction(action) {
switch (action.name) {
case 'Install Geth': {
functionLibraryGeth.install(action.node)
break
}
case 'Run Geth': {
functionLibraryGeth.run(action.node)
break
}
case 'Stop Geth': {
functionLibraryGeth.stop(action.node)
break
}
}
}
}
@@ -0,0 +1,21 @@
function newGeth() {
thisObject = {
install: install,
run: run,
stop: stop
}
return thisObject
function install(node) {
callWebServer('ExecuteTerminalCommand/dir')
}
function run(node) {
}
function stop(node) {
}
}