Class: Kubes::Kubectl::Fetch::Pods

Inherits:
Base
  • Object
show all
Extended by:
Memoist
Defined in:
lib/kubes/kubectl/fetch/pods.rb

Instance Method Summary collapse

Methods inherited from Base

#fetch, #initialize, #namespace

Methods included from Util::Sh

#sh, #sh_capture

Methods included from Logging

#logger

Constructor Details

This class inherits a constructor from Kubes::Kubectl::Fetch::Base

Instance Method Details

#showObject



5
6
7
8
# File 'lib/kubes/kubectl/fetch/pods.rb', line 5

def show
  return unless namespace
  sh("kubectl get pod -n #{namespace}")
end