From 27bbb753a4e55cfb1a793775fea493876b052822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Sat, 9 Sep 2023 09:10:32 +0200 Subject: [PATCH] Refactor --- support/ci/generate | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/support/ci/generate b/support/ci/generate index 4f85492346..7907df2cc7 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -141,10 +141,11 @@ class CI } end - def assets(name, working_directory: nil, template: "assets.yaml.erb") + def assets(name, template: "assets.yaml.erb") { name: "#{name}_assets", - working_directory: working_directory || name, + working_directory: name, + matrix: nil, template: template } end @@ -388,11 +389,11 @@ class CI ).result_with_hash( name: name, working_directory: gem.fetch(:working_directory), - matrix: as_formatted_yaml(gem[:matrix], indent: 10), + matrix: as_formatted_yaml(gem.fetch(:matrix), indent: 10), env: as_formatted_yaml( { "WORKING_DIRECTORY" => gem.fetch(:working_directory) }.merge( - matrix_env_vars(gem[:matrix]) + matrix_env_vars(gem.fetch(:matrix)) ), indent: 6 )