Method: Awestruct::Engine#load_yaml
- Defined in:
- lib/awestruct/engine.rb
#load_yaml(yaml_path) ⇒ Object
213 214 215 216 217 218 219 220 221 222 |
# File 'lib/awestruct/engine.rb', line 213 def load_yaml(yaml_path) begin data = Awestruct.yaml_load( ERB.new(File.read( yaml_path ), trim_mode: '<>').result ) rescue Exception => e ExceptionHelper.log_building_error e, yaml_path ExceptionHelper.mark_failed end name = File.basename( yaml_path, '.yml' ) site.send( "#{name}=", massage_yaml( data ) ) end |