Sha256: 8aa09a3140b60972d662860c99f7a3f3f486a07bd2a38cc77dc62a086d303d13

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

class KuberKit::ServiceDeployer::Deployer
  include KuberKit::Import[
    "core.service_store",
    "service_deployer.service_reader",
    "shell.kubectl_commands",
    "configs",
  ]

  def deploy(shell, service_name)
    service = service_store.get_service(service_name)
    kubecfg_path = KuberKit.current_configuration.kubecfg_path

    result = service_reader.read(shell, service)
    file_path = "#{configs.service_config_dir}/#{service.name}.yml"
    shell.write(file_path, result)

    kubectl_commands.apply_file(shell, file_path, kubecfg_path: kubecfg_path)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kuber_kit-0.1.2 lib/kuber_kit/service_deployer/deployer.rb