Skip to content

Commit

Permalink
Revert "Acna 3275 Point app plugin to deploy service (#850)" (#851)
Browse files Browse the repository at this point in the history
This reverts commit b10b066.
  • Loading branch information
amulyakashyap09 authored Feb 19, 2025
1 parent b10b066 commit 18353e6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 129 deletions.
6 changes: 1 addition & 5 deletions src/commands/app/config/set/log-forwarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ governing permissions and limitations under the License.
const BaseCommand = require('../../../../BaseCommand')
const LogForwarding = require('../../../../lib/log-forwarding')
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:lf:set', { provider: 'debug' })
const { setRuntimeApiHostAndAuthHandler } = require('../../../../lib/auth-helper')

class LogForwardingCommand extends BaseCommand {
async run () {
let aioConfig = (await this.getFullConfig()).aio

aioConfig = setRuntimeApiHostAndAuthHandler(aioConfig)
const lf = await LogForwarding.init(aioConfig)
const lf = await LogForwarding.init((await this.getFullConfig()).aio)

const destination = await this.promptDestination(lf.getSupportedDestinations())
const destinationSettingsConfig = lf.getSettingsConfig(destination)
Expand Down
4 changes: 1 addition & 3 deletions src/commands/app/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const { runInProcess, buildExtensionPointPayloadWoMetadata, buildExcShellViewExt
const rtLib = require('@adobe/aio-lib-runtime')
const LogForwarding = require('../../lib/log-forwarding')
const { sendAuditLogs, getAuditLogEvent, getFilesCountWithExtension } = require('../../lib/audit-logger')
const { setRuntimeApiHostAndAuthHandler } = require('../../lib/auth-helper')
const logActions = require('../../lib/log-actions')

const PRE_DEPLOY_EVENT_REG = 'pre-deploy-event-reg'
Expand Down Expand Up @@ -101,8 +100,7 @@ class Deploy extends BuildCommand {
// - break into smaller pieces deploy, allowing to first deploy all actions then all web assets
for (let i = 0; i < keys.length; ++i) {
const k = keys[i]
const v = setRuntimeApiHostAndAuthHandler(values[i])

const v = values[i]
await this.deploySingleConfig(k, v, flags, spinner)
if (v.app.hasFrontend && flags['web-assets']) {
const opItems = getFilesCountWithExtension(v.web.distProd)
Expand Down
4 changes: 1 addition & 3 deletions src/commands/app/undeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const webLib = require('@adobe/aio-lib-web')
const { runInProcess, buildExtensionPointPayloadWoMetadata, getCliInfo } = require('../../lib/app-helper')
const rtLib = require('@adobe/aio-lib-runtime')
const { sendAuditLogs, getAuditLogEvent } = require('../../lib/audit-logger')
const { setRuntimeApiHostAndAuthHandler } = require('../../lib/auth-helper')

class Undeploy extends BaseCommand {
async run () {
Expand Down Expand Up @@ -56,8 +55,7 @@ class Undeploy extends BaseCommand {

for (let i = 0; i < keys.length; ++i) {
const k = keys[i]
const v = setRuntimeApiHostAndAuthHandler(values[i])

const v = values[i]
await this.undeployOneExt(k, v, flags, spinner)
const assetUndeployLogEvent = getAuditLogEvent(flags, aioConfig.project, 'AB_APP_ASSETS_UNDEPLOYED')
// send logs for case of web-assets undeployment
Expand Down
57 changes: 0 additions & 57 deletions src/lib/auth-helper.js

This file was deleted.

61 changes: 0 additions & 61 deletions test/commands/lib/auth-helper.test.js

This file was deleted.

0 comments on commit 18353e6

Please sign in to comment.