private async Task InitLanguageSpecificArtifacts(WorkerRuntime workerRuntime) { if (workerRuntime == Helpers.WorkerRuntime.python) { await PythonHelpers.InstallPackage(); } }
private async Task InitLanguageSpecificArtifacts(string language) { if (language == "Python") { await PythonHelpers.InstallPackage(); } }
private async Task InitLanguageSpecificArtifacts(WorkerRuntime workerRuntime) { if (workerRuntime == Helpers.WorkerRuntime.python) { await PythonHelpers.InstallPackage(); } else if (workerRuntime == Helpers.WorkerRuntime.powershell) { await WriteFiles("profile.ps1", await StaticResources.PowerShellProfilePs1); } }
private async Task InitLanguageSpecificArtifacts(WorkerRuntime workerRuntime) { if (workerRuntime == Helpers.WorkerRuntime.python) { await PythonHelpers.InstallPackage(); } else if (workerRuntime == Helpers.WorkerRuntime.powershell) { await WriteFiles("profile.ps1", await StaticResources.PowerShellProfilePs1); } if (Language == Constants.Languages.TypeScript) { await WriteFiles(".funcignore", await StaticResources.FuncIgnore); await WriteFiles("package.json", await StaticResources.PackageJson); await WriteFiles("tsconfig.json", await StaticResources.TsConfig); } }