Module: Terraspace::Hooks::Concern

Included in:
Builder, Terraform::Runner
Defined in:
lib/terraspace/hooks/concern.rb

Instance Method Summary collapse

Instance Method Details

#run_hooks(file, name, &block) ⇒ Object



3
4
5
6
7
# File 'lib/terraspace/hooks/concern.rb', line 3

def run_hooks(file, name, &block)
  hooks = Builder.new(@mod, file, name)
  hooks.build # build hooks
  hooks.run_hooks(&block)
end