There are several key concepts that comprise of the Deployer applications:
- Configuration: Using the set() and get() functions, we set and fetch one or more configurations options:
set('color', 'Yellow');set('hello', function () { return run(...)->toString();});
- Tasks: These are units of work defined via the task() function, used together with the desc() method that sets the task description. Within the task, there is usually one or more functions, such as run():
desc('Foggyline task #1');task('update', 'apt-get update');desc('Foggyline task #2');task('task_2', function () { run(...);});
- Servers: This is the list of servers defined via the server() function, as shown in the following code snippet:
server('mphp7_staging', ...