Sha256: 6f0e807d4d225f36905d822cfcbbbffcb5cb8546681d39212b95048391c37030

Contents?: true

Size: 297 Bytes

Versions: 33

Compression:

Stored size: 297 Bytes

Contents

module Kubes::Hooks
  module Concern
    # options example: {:name=>"apply", :file=>".kubes/output/web/service.yaml"}
    def run_hooks(file, options={}, &block)
      hooks = Kubes::Hooks::Builder.new(file, options)
      hooks.build # build hooks
      hooks.run_hooks(&block)
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
kubes-0.9.3 lib/kubes/hooks/concern.rb
kubes-0.9.2 lib/kubes/hooks/concern.rb
kubes-0.9.1 lib/kubes/hooks/concern.rb
kubes-0.9.0 lib/kubes/hooks/concern.rb
kubes-0.8.10 lib/kubes/hooks/concern.rb
kubes-0.8.9 lib/kubes/hooks/concern.rb
kubes-0.8.8 lib/kubes/hooks/concern.rb
kubes-0.8.7 lib/kubes/hooks/concern.rb
kubes-0.8.6 lib/kubes/hooks/concern.rb
kubes-0.8.5 lib/kubes/hooks/concern.rb
kubes-0.8.4 lib/kubes/hooks/concern.rb
kubes-0.8.3 lib/kubes/hooks/concern.rb
kubes-0.8.2 lib/kubes/hooks/concern.rb
kubes-0.8.1 lib/kubes/hooks/concern.rb
kubes-0.8.0 lib/kubes/hooks/concern.rb
kubes-0.7.10 lib/kubes/hooks/concern.rb
kubes-0.7.9 lib/kubes/hooks/concern.rb
kubes-0.7.8 lib/kubes/hooks/concern.rb
kubes-0.7.7 lib/kubes/hooks/concern.rb
kubes-0.7.6 lib/kubes/hooks/concern.rb