Class: Kubes::Kubectl::Dispatcher
- Inherits:
-
Object
- Object
- Kubes::Kubectl::Dispatcher
- Defined in:
- lib/kubes/kubectl/dispatcher.rb
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Dispatcher
constructor
A new instance of Dispatcher.
- #run ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Dispatcher
Returns a new instance of Dispatcher.
3 4 5 |
# File 'lib/kubes/kubectl/dispatcher.rb', line 3 def initialize(name, ={}) @name, = name.to_s, end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/kubes/kubectl/dispatcher.rb', line 7 def run if Kubes.kustomize? Kubes::Kubectl.run(@name, ) else Kubes::Kubectl::Batch.new(@name, ).run end end |