def write_from_erb_template(erbfile, outfile, config = {},
                                options = {
                                  :no_interaction => false
                                })
      erbfiles = (erbfile.is_a?(Array)) ? erbfile : [ erbfile ]
      content = ""
      erbfiles.each do |f|
        erb = (options[:srcdir].nil?) ? f : File.join(options[:srcdir], f)
        unless File.exist?(erb)
          warning "Unable to find the template ERBfile '#{erb}'"
          really_continue? unless options[:no_interaction]
          next
        end
        content += ERB.new(File.read(erb.to_s), nil, '<>').result(binding)
      end
      # error "Unable to find the template file #{erbfile}" unless File.exists? (erbfile )
      # template = File.read("#{erbfile}")
      # output   = ERB.new(template, nil, '<>')
      # content  = output.result(binding)
      show_diff_and_write(content, outfile, options)
    end
def write_from_erb_template(erbfile, outfile, config = {},
                                options = {
                                  :no_interaction => false
                                })
      erbfiles = (erbfile.is_a?(Array)) ? erbfile : [ erbfile ]
      content = ""
      erbfiles.each do |f|
        erb = (options[:srcdir].nil?) ? f : File.join(options[:srcdir], f)
        unless File.exist?(erb)
          warning "Unable to find the template ERBfile '#{erb}'"
          really_continue? unless options[:no_interaction]
          next
        end
        content += ERB.new(File.read(erb.to_s), nil, '<>').result(binding)
      end
      # error "Unable to find the template file #{erbfile}" unless File.exists? (erbfile )
      # template = File.read("#{erbfile}")
      # output   = ERB.new(template, nil, '<>')
      # content  = output.result(binding)
      show_diff_and_write(content, outfile, options)
    end
ERB generation of the file `outfile` using the source template file `erbfile`
 Supported options:
   :no_interaction [boolean]: do not interact
   :srcdir         [string]: source dir for all considered ERB files