feat: add initializer for root_config with version and filesystems parameters
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Glenn Y. Rolland 2024-12-11 00:06:44 +01:00
parent f383694870
commit 16b81ed038

View file

@ -36,5 +36,12 @@ module GX::Models
@[YAML::Field(key: "filesystems")]
getter filesystems : Array(AbstractFilesystemConfig)
setter filesystems
def initialize(version = "1.0.0", global = GlobalConfig.new, filesystems = [] of AbstractFilesystemConfig)
@version = version
@global = global
@filesystems = filesystems
end
end
end