|
|
@ -1,20 +1,20 @@ |
|
|
|
import { ExistingBridgeDeploy } from './bridge/BridgeDeploy'; |
|
|
|
import { BridgeDeploy } from './bridge/BridgeDeploy'; |
|
|
|
import { ExistingCoreDeploy } from './core/CoreDeploy'; |
|
|
|
import { CoreDeploy } from './core/CoreDeploy'; |
|
|
|
import { writeFileSync } from 'fs'; |
|
|
|
import { writeFileSync } from 'fs'; |
|
|
|
import { resolve } from 'path'; |
|
|
|
import { resolve } from 'path'; |
|
|
|
import { AllConfigs } from './config'; |
|
|
|
import { AllConfigs } from './config'; |
|
|
|
|
|
|
|
|
|
|
|
export function updateProviderDomain( |
|
|
|
export function updateProviderDomain( |
|
|
|
environment: string, |
|
|
|
environment: string, |
|
|
|
path: string, |
|
|
|
directory: string, |
|
|
|
configs: AllConfigs[], |
|
|
|
configs: AllConfigs[], |
|
|
|
) { |
|
|
|
) { |
|
|
|
let ret = "import { OpticsDomain } from './domain';\n" |
|
|
|
let ret = "import { OpticsDomain } from './domain';\n" |
|
|
|
const coreDeploys = configs.map( |
|
|
|
const coreDeploys = configs.map( |
|
|
|
(_) => new ExistingCoreDeploy(path, _.chain, _.coreConfig), |
|
|
|
(_) => CoreDeploy.fromDirectory(directory, _.chain, _.coreConfig), |
|
|
|
); |
|
|
|
); |
|
|
|
const bridgeDeploys = configs.map( |
|
|
|
const bridgeDeploys = configs.map( |
|
|
|
(_) => new ExistingBridgeDeploy(_.chain, _.bridgeConfig, path), |
|
|
|
(_) => BridgeDeploy.fromDirectory(directory, _.chain, _.bridgeConfig), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < configs.length; i++) { |
|
|
|
for (let i = 0; i < configs.length; i++) { |
|
|
|