Sha256: 1e0da50b031fe06c35d6e79c406079150f4a282d4aaa487432a3e9b8a54b20f0
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 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) 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 true rescue KuberKit::Error => e ui.print_error("Error", e.message) false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kuber_kit-0.2.0 | lib/kuber_kit/actions/kubectl_applier.rb |
kuber_kit-0.1.9 | lib/kuber_kit/actions/kubectl_applier.rb |