Class: Dip::Commands::Kubectl
- Inherits:
-
Dip::Command
- Object
- Dip::Command
- Dip::Commands::Kubectl
- Defined in:
- lib/dip/commands/kubectl.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(*argv) ⇒ Kubectl
constructor
A new instance of Kubectl.
Methods inherited from Dip::Command
Constructor Details
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
8 9 10 |
# File 'lib/dip/commands/kubectl.rb', line 8 def argv @argv end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
8 9 10 |
# File 'lib/dip/commands/kubectl.rb', line 8 def config @config end |
Instance Method Details
#execute ⇒ Object
15 16 17 18 19 |
# File 'lib/dip/commands/kubectl.rb', line 15 def execute k_argv = + argv exec_program("kubectl", k_argv) end |