Class: KuberKit::Actions::KubectlEnv
- Defined in:
- lib/kuber_kit/actions/kubectl_env.rb
Instance Method Summary collapse
Instance Method Details
#call(options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/kuber_kit/actions/kubectl_env.rb', line 9 def call() configuration = KuberKit.current_configuration kubeconfig_path = configuration.kubeconfig_path if kubeconfig_path.is_a?(KuberKit::Core::ArtifactPath) kubeconfig_path = artifact_path_resolver.call(kubeconfig_path) end ui.print_info("ENV", "export KUBECONFIG=#{kubeconfig_path}") true rescue KuberKit::Error => e ui.print_error("Error", e.) false end |