summaryrefslogtreecommitdiff
path: root/scaffold/Role.php
blob: 56ce65e7699090d80504ad3c24927154988a266e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

class Role implements \PHPIAC\RoleInterface
{
    public function __invoke(array $config): array
    {
        $config = array_replace_recursive([
            'package' => 'zsh',
        ], $config);

        return [
            (new \PHPIAC\Task())->setModule(new \PHPIAC\Modules\AptModule([
                'package' => $config['package'],
            ])),
        ];
    }
}