Class: KuberKit::Actions::KubectlApplier

Inherits:
Object
  • Object
show all
Defined in:
lib/kuber_kit/actions/kubectl_applier.rb

Instance Method Summary collapse

Instance Method Details

#call(file_path, options) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/kuber_kit/actions/kubectl_applier.rb', line 9

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