Sha256: 31922d579c1f6b33cc82ba3edd9818348144780e53ae55682296f5f2fcabe08e

Contents?: true

Size: 336 Bytes

Versions: 12

Compression:

Stored size: 336 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("#{Kubes.root}/.kubes/config/hooks/#{file}", options)
      hooks.build # build hooks
      hooks.run_hooks(&block)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kubes-0.6.1 lib/kubes/hooks/concern.rb
kubes-0.6.0 lib/kubes/hooks/concern.rb
kubes-0.5.1 lib/kubes/hooks/concern.rb
kubes-0.5.0 lib/kubes/hooks/concern.rb
kubes-0.4.7 lib/kubes/hooks/concern.rb
kubes-0.4.6 lib/kubes/hooks/concern.rb
kubes-0.4.5 lib/kubes/hooks/concern.rb
kubes-0.4.4 lib/kubes/hooks/concern.rb
kubes-0.4.3 lib/kubes/hooks/concern.rb
kubes-0.4.2 lib/kubes/hooks/concern.rb
kubes-0.4.1 lib/kubes/hooks/concern.rb
kubes-0.4.0 lib/kubes/hooks/concern.rb