Class: Kubes::Kubectl::Args::Kustomize

Inherits:
Base
  • Object
show all
Defined in:
lib/kubes/kubectl/args/kustomize.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/kustomize.rb', line 3

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

#get_argsObject Also known as: describe_args



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

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