Sha256: d943a205feb908583b3b4d724b90768631d7c09800ea0ee239f02fd52be0b574

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

class KuberKit::Defaults
  class << self
    def init
      return if @_initialized
      @_initialized = true
      init!
    end

    def init!
      KuberKit::Container["artifacts_sync.artifact_updater"].use_resolver(
        KuberKit::Container["artifacts_sync.git_artifact_resolver"], 
        artifact_class: KuberKit::Core::Artifacts::Git
      )
      KuberKit::Container["artifacts_sync.artifact_updater"].use_resolver(
        KuberKit::Container["artifacts_sync.null_artifact_resolver"], 
        artifact_class: KuberKit::Core::Artifacts::Local
      )
      KuberKit::Container["env_file_reader.reader"].use_reader(
        KuberKit::Container["env_file_reader.strategies.artifact_file"], 
        env_file_class: KuberKit::Core::EnvFiles::ArtifactFile
      )
      KuberKit::Container["env_file_reader.reader"].use_reader(
        KuberKit::Container["env_file_reader.strategies.env_group"], 
        env_file_class: KuberKit::Core::EnvFiles::EnvGroup
      )
      KuberKit::Container["template_reader.reader"].use_reader(
        KuberKit::Container["template_reader.strategies.artifact_file"], 
        template_class: KuberKit::Core::Templates::ArtifactFile
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuber_kit-0.8.8 lib/kuber_kit/defaults.rb
kuber_kit-0.8.7 lib/kuber_kit/defaults.rb
kuber_kit-0.8.6 lib/kuber_kit/defaults.rb
kuber_kit-0.8.5 lib/kuber_kit/defaults.rb
kuber_kit-0.8.4 lib/kuber_kit/defaults.rb
kuber_kit-0.8.3 lib/kuber_kit/defaults.rb
kuber_kit-0.8.2 lib/kuber_kit/defaults.rb
kuber_kit-0.8.1 lib/kuber_kit/defaults.rb
kuber_kit-0.8.0 lib/kuber_kit/defaults.rb
kuber_kit-0.7.1 lib/kuber_kit/defaults.rb