Sha256: 01c5dca8797bf18c8e6e794d64b9e8308bd9fb804a97ccb561308165c4828bdb
Contents?: true
Size: 1.55 KB
Versions: 3
Compression:
Stored size: 1.55 KB
Contents
class KuberKit::Core::Configuration attr_reader :name, :artifacts, :registries, :env_files, :templates, :kubeconfig_path, :deploy_strategy, :deploy_namespace, :services_attributes, :build_servers, :global_build_vars Contract KeywordArgs[ name: Symbol, artifacts: Hash, registries: Hash, env_files: Hash, templates: Hash, kubeconfig_path: Maybe[String], deploy_strategy: Symbol, deploy_namespace: Maybe[Symbol], services_attributes: HashOf[Symbol => Hash], build_servers: ArrayOf[KuberKit::Core::BuildServers::AbstractBuildServer], global_build_vars: HashOf[Symbol => Any], ] => Any def initialize(name:, artifacts:, registries:, env_files:, templates:, kubeconfig_path:, deploy_strategy:, deploy_namespace:, services_attributes:, build_servers:, global_build_vars:) @name = name @artifacts = artifacts @registries = registries @env_files = env_files @templates = templates @kubeconfig_path = kubeconfig_path @deploy_strategy = deploy_strategy @deploy_namespace = deploy_namespace @build_servers = build_servers @services_attributes = services_attributes @global_build_vars = global_build_vars end def service_attributes(service_name) services_attributes[service_name.to_sym] || {} end def global_build_args puts "WARNING: global_build_args is deprecated, please use global_build_vars instead" global_build_vars end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kuber_kit-0.3.1 | lib/kuber_kit/core/configuration.rb |
kuber_kit-0.3.0 | lib/kuber_kit/core/configuration.rb |
kuber_kit-0.2.9 | lib/kuber_kit/core/configuration.rb |