Sha256: 5ca73fbd19440d39790d75c0e9e65f486d3f1e9bedf0640e5a756a3127b7cff1
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
class KuberKit::Actions::KubectlAttacher include KuberKit::Import[ "shell.kubectl_commands", "shell.local_shell", "ui" ] Contract String, Hash => Any def call(pod_name, options) kubeconfig_path = KuberKit.current_configuration.kubeconfig_path kubectl_commands.exec(local_shell, pod_name, "bash", args: "-it", kubeconfig_path: kubeconfig_path, interactive: true) true rescue KuberKit::Error => e ui.print_error("Error", e.message) false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kuber_kit-0.2.0 | lib/kuber_kit/actions/kubectl_attacher.rb |