Missing Files
This commit is contained in:
1 parent
f68ebb63ca
commit
6bcce5b25f
100 files changed
+27338
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user