Class: Kubes::Kubectl::Args::Standard

Inherits:
Base
  • Object
show all
Defined in:
lib/kubes/kubectl/args/standard.rb

Instance Method Summary collapse

Methods inherited from Base

#args, #initialize

Constructor Details

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

Instance Method Details

#apply_argsObject Also known as: delete_args



3
4
5
6
7
# File 'lib/kubes/kubectl/args/standard.rb', line 3

def apply_args
  args = ["-f"]
  args << resource_path
  args
end

#get_argsObject Also known as: describe_args



10
11
12
13
14
15
# File 'lib/kubes/kubectl/args/standard.rb', line 10

def get_args
  args = ["--recursive -f"]
  args << resource_path
  args += ["-o #{@options[:output]}"] if @options[:output]
  args
end