Skip to content

Commit 18353e6

Browse files
Revert "Acna 3275 Point app plugin to deploy service (#850)" (#851)
This reverts commit b10b066.
1 parent b10b066 commit 18353e6

5 files changed

Lines changed: 3 additions & 129 deletions

File tree

src/commands/app/config/set/log-forwarding.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ governing permissions and limitations under the License.
1212
const BaseCommand = require('../../../../BaseCommand')
1313
const LogForwarding = require('../../../../lib/log-forwarding')
1414
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:lf:set', { provider: 'debug' })
15-
const { setRuntimeApiHostAndAuthHandler } = require('../../../../lib/auth-helper')
1615

1716
class LogForwardingCommand extends BaseCommand {
1817
async run () {
19-
let aioConfig = (await this.getFullConfig()).aio
20-
21-
aioConfig = setRuntimeApiHostAndAuthHandler(aioConfig)
22-
const lf = await LogForwarding.init(aioConfig)
18+
const lf = await LogForwarding.init((await this.getFullConfig()).aio)
2319

2420
const destination = await this.promptDestination(lf.getSupportedDestinations())
2521
const destinationSettingsConfig = lf.getSettingsConfig(destination)

src/commands/app/deploy.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const { runInProcess, buildExtensionPointPayloadWoMetadata, buildExcShellViewExt
2222
const rtLib = require('@adobe/aio-lib-runtime')
2323
const LogForwarding = require('../../lib/log-forwarding')
2424
const { sendAuditLogs, getAuditLogEvent, getFilesCountWithExtension } = require('../../lib/audit-logger')
25-
const { setRuntimeApiHostAndAuthHandler } = require('../../lib/auth-helper')
2625
const logActions = require('../../lib/log-actions')
2726

2827
const PRE_DEPLOY_EVENT_REG = 'pre-deploy-event-reg'
@@ -101,8 +100,7 @@ class Deploy extends BuildCommand {
101100
// - break into smaller pieces deploy, allowing to first deploy all actions then all web assets
102101
for (let i = 0; i < keys.length; ++i) {
103102
const k = keys[i]
104-
const v = setRuntimeApiHostAndAuthHandler(values[i])
105-
103+
const v = values[i]
106104
await this.deploySingleConfig(k, v, flags, spinner)
107105
if (v.app.hasFrontend && flags['web-assets']) {
108106
const opItems = getFilesCountWithExtension(v.web.distProd)

src/commands/app/undeploy.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const webLib = require('@adobe/aio-lib-web')
2020
const { runInProcess, buildExtensionPointPayloadWoMetadata, getCliInfo } = require('../../lib/app-helper')
2121
const rtLib = require('@adobe/aio-lib-runtime')
2222
const { sendAuditLogs, getAuditLogEvent } = require('../../lib/audit-logger')
23-
const { setRuntimeApiHostAndAuthHandler } = require('../../lib/auth-helper')
2423

2524
class Undeploy extends BaseCommand {
2625
async run () {
@@ -56,8 +55,7 @@ class Undeploy extends BaseCommand {
5655

5756
for (let i = 0; i < keys.length; ++i) {
5857
const k = keys[i]
59-
const v = setRuntimeApiHostAndAuthHandler(values[i])
60-
58+
const v = values[i]
6159
await this.undeployOneExt(k, v, flags, spinner)
6260
const assetUndeployLogEvent = getAuditLogEvent(flags, aioConfig.project, 'AB_APP_ASSETS_UNDEPLOYED')
6361
// send logs for case of web-assets undeployment

src/lib/auth-helper.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

test/commands/lib/auth-helper.test.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)