provider/compiler.rb
# TODO(alexstephen): Consolidate all codegen naming around Magic Modules
# TODO(alexstephen): Delete ansible/autogen.erb warning and use same
# autogenerated warning for all modules.
Consolidate all codegen naming around Magic Modules
TODO(alexstephen): Delete ansible/autogen.erb warning and use same
autogenerated warning for all modules.
Consolidate all codegen naming around Magic Modules TODO ( alexstephen ) : Delete ansible / autogen . erb warning and use same autogenerated warning for all modules .
def compile(file, caller_frame = 1)
      ctx = binding.of_caller(caller_frame)
      has_erbout = ctx.local_variables.include?(:_erbout)
      content = ctx.local_variable_get(:_erbout) if has_erbout 
      ctx.local_variable_set(:compiler, compiler)
      Google::LOGGER.info "Compiling #{file}"
      input = ERB.new get_helper_file(file), nil, '-%>'
      compiled = input.result(ctx)
      ctx.local_variable_set(:_erbout, content) if has_erbout 
      compiled
    end
def compile ( file , caller_frame = 1 ) ctx = binding . of_caller ( caller_frame ) has_erbout = ctx . local_variables . include? ( :_erbout ) content = ctx . local_variable_get ( :_erbout ) if has_erbout ctx . local_variable_set ( :compiler , compiler ) Google :: LOGGER . info "Compiling #{file}" input = ERB . new get_helper_file ( file ) , nil , '-%>' compiled = input . result ( ctx ) ctx . local_variable_set ( :_erbout , content ) if has_erbout compiled end
TODO(alexstephen): Consolidate all codegen naming around Magic Modules
TODO(alexstephen): Delete ansible/autogen.erb warning and use same
autogenerated warning for all modules.
TODO ( alexstephen ) : Consolidate all codegen naming around Magic Modules TODO ( alexstephen ) : Delete ansible / autogen . erb warning and use same autogenerated warning for all modules .
# save code # restore code
file
<not_specific>
caller_frame
<not_specific>