Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Process

Hierarchy

  • Process

Implements

Index

Constructors

constructor

Properties

args

args: IProcessOpts["args"]

autoRestarter

autoRestarter: () => Promise<void>

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

binPath

binPath: IProcessOpts["binPath"]

childProcess

childProcess: ChildProcess | undefined

closeListener

closeListener: (code: any, signal: any) => void

Type declaration

    • (code: any, signal: any): void
    • Parameters

      • code: any
      • signal: any

      Returns void

Optional cwd

cwd: IProcessOpts["cwd"]

Optional env

env: IProcessOpts["env"]

errorListener

errorListener: (err: any) => void

Type declaration

    • (err: any): void
    • Parameters

      • err: any

      Returns void

errored

errored: boolean

name

name: IProcessOpts["name"]

Optional onError

onError: IProcessOpts["onError"]

restarts

restarts: number

Number of restarts the process has encountered since the process was initialized.

stdioLogging

stdioLogging: IProcessOpts["stdioLogging"]

stop

stop: () => Promise<void>

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Methods

listen

  • listen(): void

readline

  • readline(): void
  • Attach a readline interface no matter what. MailHog will eventually hang if it doesn't have anything listening to its output.

    Returns void

removeListeners

  • removeListeners(): void

restart

  • restart(): Promise<void>

start

  • start(): Promise<void>

stats

Generated using TypeDoc