Module: Kubes::Hooks::Concern
- Included in:
- CLI::Prune, Compiler, Docker::Strategy::Utils, Kubectl, Kubectl::Batch
- Defined in:
- lib/kubes/hooks/concern.rb
Instance Method Summary collapse
-
#run_hooks(file, options = {}, &block) ⇒ Object
options example: :file=>“.kubes/output/web/service.yaml”.
Instance Method Details
#run_hooks(file, options = {}, &block) ⇒ Object
options example: :file=>“.kubes/output/web/service.yaml”
4 5 6 7 8 |
# File 'lib/kubes/hooks/concern.rb', line 4 def run_hooks(file, ={}, &block) hooks = Kubes::Hooks::Builder.new(file, ) hooks.build # build hooks hooks.run_hooks(&block) end |