You can see below the API reference of this module.
Creates a new PostReceive instance.
- Object
options: An object containing the following fields: cwd(String): The working directory to start processing inlogging(Boolean): Output logs iftrueconfig(Object): Theoptions.jsonto use for the build process (see example)
Run the build process
Log a message if this.logging
- Anything
message: Message to log to console
Parse this.options to load host specific options
Run list of shell commands sequentially, handling errors
- Array
commands: List of commands to run
Empty the copy_to directory, excluding paths in ignore list
Copy processed files to copy_to directory, excluding paths in ignore list
Handle build error
- String
message: Error message to be logged and sent in build failed email