Sha256: b8f09631bfac2c907e33729afede51ea835208dcccd7d9c33171038a3c7e9ca4

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

class KuberKit::Actions::KubectlApplier
  include KuberKit::Import[
    "shell.kubectl_commands",
    "shell.local_shell",
    "ui"
  ]

  Contract String, Hash => Any
  def call(file_path, options)
    kubecfg_path = KuberKit.current_configuration.kubecfg_path
    ui.create_task("Applying file: #{file_path}") do |task|
      kubectl_commands.apply_file(local_shell, file_path, kubecfg_path: kubecfg_path)
      task.update_title("Applied file: #{file_path}")
    end
    nil
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kuber_kit-0.1.3 lib/kuber_kit/actions/kubectl_applier.rb
kuber_kit-0.1.2 lib/kuber_kit/actions/kubectl_applier.rb
kuber_kit-0.1.1 lib/kuber_kit/actions/kubectl_applier.rb
kuber_kit-0.1.0 lib/kuber_kit/actions/kubectl_applier.rb