Sha256: 405053abe390c25e7069e16f719d1d464a1a7014a80b71431789603942d1834d

Contents?: true

Size: 1.25 KB

Versions: 7

Compression:

Stored size: 1.25 KB

Contents

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

  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]
  ] => Any
  def initialize(name:, artifacts:, registries:, env_files:, templates:, kubeconfig_path:, 
                 deploy_strategy:, deploy_namespace:, services_attributes:, build_servers:)
    @name             = name
    @artifacts        = artifacts
    @registries       = registries
    @env_files        = env_files
    @templates        = templates
    @kubeconfig_path  = kubeconfig_path
    @deploy_strategy  = deploy_strategy
    @deploy_namespace = deploy_namespace
    @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

7 entries across 7 versions & 1 rubygems

Version Path
kuber_kit-0.2.7 lib/kuber_kit/core/configuration.rb
kuber_kit-0.2.6 lib/kuber_kit/core/configuration.rb
kuber_kit-0.2.5 lib/kuber_kit/core/configuration.rb
kuber_kit-0.2.4 lib/kuber_kit/core/configuration.rb
kuber_kit-0.2.3 lib/kuber_kit/core/configuration.rb
kuber_kit-0.2.2 lib/kuber_kit/core/configuration.rb
kuber_kit-0.2.1 lib/kuber_kit/core/configuration.rb