summaryrefslogtreecommitdiff
path: root/scaffold/Role.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-04-28 13:59:15 +0200
committerDaniel Weipert <code@drogueronin.de>2021-04-28 13:59:15 +0200
commita304dd0391ea611a93c1a50e23f3eb412c9dcf90 (patch)
treeda52601009ff5325ab3e555e37807ac7dfe64075 /scaffold/Role.php
parent1caef9750cff776cadc3ee225ade458045d17c0b (diff)
Adjusts scaffoldv1.0.0
Diffstat (limited to 'scaffold/Role.php')
-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'],
+ ])),
];
}
}