Class: Kubes::CLI::Get

Inherits:
Base
  • Object
show all
Defined in:
lib/kubes/cli/get.rb

Instance Method Summary collapse

Methods inherited from Base

#compile, #initialize, #pod_name

Methods included from Logging

#logger

Constructor Details

This class inherits a constructor from Kubes::CLI::Base

Instance Method Details

#runObject



3
4
5
6
7
8
9
# File 'lib/kubes/cli/get.rb', line 3

def run
  compile
  Kubes::Kubectl.run(:get, @options.merge(exit_on_fail: false))
  return unless @options[:show_pods]
  pods = Kubes::Kubectl::Fetch::Pods.new(@options)
  pods.show
end