Sha256: ba5e93f87ddf6c90ed87410718a97e10b57e67323161be081b3f74a09bfea767

Contents?: true

Size: 419 Bytes

Versions: 20

Compression:

Stored size: 419 Bytes

Contents

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

  Contract Hash => Any
  def call(options)
    configuration   = KuberKit.current_configuration
    kubeconfig_path = configuration.kubeconfig_path
    ui.print_info("ENV", "export KUBECONFIG=#{kubeconfig_path}")

    true
  rescue KuberKit::Error => e
    ui.print_error("Error", e.message)
    
    false
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
kuber_kit-0.8.1 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.8.0 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.7.1 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.7.0 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.6.4 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.6.3 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.6.2 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.6.1 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.6.0 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.10 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.9 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.8 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.7 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.6 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.5 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.4 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.3 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.2 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.1 lib/kuber_kit/actions/kubectl_env.rb
kuber_kit-0.5.0 lib/kuber_kit/actions/kubectl_env.rb