From a304dd0391ea611a93c1a50e23f3eb412c9dcf90 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 28 Apr 2021 13:59:15 +0200 Subject: Adjusts scaffold --- scaffold/Role.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scaffold') 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'], + ])), ]; } } -- cgit v1.2.3