Method: Ufo::Hooks::Builder#initialize

Defined in:
lib/ufo/hooks/builder.rb

#initialize(options = {}) ⇒ Builder

Returns a new instance of Builder.



9
10
11
12
13
14
15
# File 'lib/ufo/hooks/builder.rb', line 9

def initialize(options={})
  @options = options
  @file = options[:file] # IE: docker.rb
  @dsl_file = "#{Ufo.root}/.ufo/config/hooks/#{@file}"
  @name = options[:name].to_s
  @hooks = {before: {}, after: {}}
end