toScriptType method

ScriptType toScriptType()

Implementation

ScriptType toScriptType() {
  switch (this) {
    case 'SHELL_SCRIPT':
      return ScriptType.shellScript;
    case 'POWERSHELL_SCRIPT':
      return ScriptType.powershellScript;
  }
  throw Exception('$this is not known in enum ScriptType');
}