Add a file object to the job.
Get the number of files in this folder.
Creates file objects for folder contents. Async operation returns a callback on completion.
Create a new life event.
Sends an email.
Email options
// my_tunnel.js
tunnel.run(function (job, nest) {
job.email({
subject: "Test email from pug template",
to: "john.smith@example.com",
template: "./template_files/my_email.pug"
});
});
// template_files/my_email.pug
h1="Example email!"
p="Got job ID " + job.getId()
tunnel.run(function (job, nest) {
job.email({
subject: "Test email with hard-coded plain-text",
to: "john.smith@example.com",
text: "My email body!"
});
});
tunnel.run(function (job, nest) {
job.email({
subject: "Test email with hard-coded html",
to: "john.smith@example.com",
html: "<h1>My email body!</h1>"
});
});
Function to call to fail a job while in a tunnel.
Get the basename.
Get the directory name.
Get the extension.
Get a file object from the job.
Get all files associated with the job.
Get the ID.
Get the life cycle object.
Gets the job name.
Get the name proper.
Get the nest.
Get the path.
Get the tunnel.
Check if job is a file.
Check if job is a folder.
Check if job is locally available.
Moves a folder to a nest. This is an asynchronous method which provides a callback on completion.
Renames the job folder, leaving its content's names alone.
Set if the job is locally available.
Set a new name.
Set the nest.
Set a new path.
Set the tunnel.
Class name for logging.
Transfer a job to another tunnel directly.
Generated using TypeDoc
FolderJob constructor