Class: Kubes::Kubectl::Args::Standard
- Inherits:
-
Base
- Object
- Base
- Kubes::Kubectl::Args::Standard
show all
- Defined in:
- lib/kubes/kubectl/args/standard.rb
Instance Method Summary
collapse
Methods inherited from Base
#args, #initialize
Instance Method Details
#apply_args ⇒ Object
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_args ⇒ Object
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
|