Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
public static readonly okStartServerResponse: Protocol.StartServerResponse = {
details: ProtocolStubs.cmdDetails,
status: ProtocolStubs.okStatus
};
public static readonly errorStartServerResponse: Protocol.StartServerResponse = {
details: ProtocolStubs.cmdDetails,
status: ProtocolStubs.errorStatus
};
public static readonly unknownServerState: ServerStateNode = {
server: ProtocolStubs.serverHandle,
deployableStates: [],
publishState: ServerState.PUBLISH_STATE_UNKNOWN,
runMode: ServerState.RUN_MODE_RUN,
state: ServerState.UNKNOWN,
rsp: 'id'
};
public static readonly startedServerStateProtocol: Protocol.ServerState = {
deployableStates: [],
publishState: ServerState.PUBLISH_STATE_UNKNOWN,
server: ProtocolStubs.serverHandle,
runMode: ServerState.RUN_MODE_RUN,
state: ServerState.STARTED
};
public static readonly deployableReference: Protocol.DeployableReference = {
label: 'fake',
path: 'fakepath'
public static readonly startedServerStateProtocol: Protocol.ServerState = {
deployableStates: [],
publishState: ServerState.PUBLISH_STATE_UNKNOWN,
server: ProtocolStubs.serverHandle,
runMode: ServerState.RUN_MODE_RUN,
state: ServerState.STARTED
};
public static readonly deployableReference: Protocol.DeployableReference = {
label: 'fake',
path: 'fakepath'
};
public static readonly deployableStateNode: DeployableStateNode = {
rsp: 'id',
publishState: ServerState.PUBLISH_STATE_UNKNOWN,
server: ProtocolStubs.serverHandle,
state: ServerState.STARTED,
reference: ProtocolStubs.deployableReference
};
public static readonly startedServerState: ServerStateNode = {
deployableStates: [ProtocolStubs.deployableStateNode],
publishState: ServerState.PUBLISH_STATE_UNKNOWN,
server: ProtocolStubs.serverHandle,
runMode: ServerState.RUN_MODE_RUN,
state: ServerState.STARTED,
rsp: 'id'
};
public static readonly stoppedServerState: ServerStateNode = {
deployableStates: [],
const serverFilter = server => server.publishState === ServerState.PUBLISH_STATE_NONE ||
server.publishState === ServerState.PUBLISH_STATE_INCREMENTAL ||
server.publishState === ServerState.PUBLISH_STATE_UNKNOWN;
const serverId = await this.selectServer(rsp.id, 'Select server to remove deployment from', serverFilter);