summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scaffold/Role.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/scaffold/Role.php b/scaffold/Role.php
index c89b43b..56ce65e 100644
--- a/scaffold/Role.php
+++ b/scaffold/Role.php
@@ -4,8 +4,14 @@ 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('zsh')),
+ (new \PHPIAC\Task())->setModule(new \PHPIAC\Modules\AptModule([
+ 'package' => $config['package'],
+ ])),
];
}
}