Sha256: 31df7307be7679bd3afb95ad5d64074e4f3f58355e0d18e2796c4a3100328f41

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

class KuberKit::Core::Configuration
  attr_reader :name, :artifacts, :registries, :env_files, :templates, :kubeconfig_path, 
              :deploy_strategy, :services_attributes, :build_servers

  Contract KeywordArgs[
    name:            Symbol,
    artifacts:       Hash,
    registries:      Hash,
    env_files:       Hash,
    templates:       Hash,
    kubeconfig_path: Maybe[String],
    deploy_strategy: Symbol,
    services_attributes: HashOf[Symbol => Hash],
    build_servers:   ArrayOf[KuberKit::Core::BuildServers::AbstractBuildServer]
  ] => Any
  def initialize(name:, artifacts:, registries:, env_files:, templates:, kubeconfig_path:, 
                 deploy_strategy:, services_attributes:, build_servers:)
    @name             = name
    @artifacts        = artifacts
    @registries       = registries
    @env_files        = env_files
    @templates        = templates
    @kubeconfig_path  = kubeconfig_path
    @deploy_strategy  = deploy_strategy
    @services_attributes = services_attributes
    @build_servers    = build_servers
  end

  def service_attributes(service_name)
    services_attributes[service_name.to_sym] || {}
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kuber_kit-0.2.0 lib/kuber_kit/core/configuration.rb
kuber_kit-0.1.9 lib/kuber_kit/core/configuration.rb