anchor.diff:  
   URL="http://<%= p("elasticsearch_config.elasticsearch.host") %>:<%= p("elasticsearch_config.elasticsearch.port") %>/_bulk"
   <% p('elasticsearch_config.bulk_data_files').each do |path| %>
  -  cat <%= path %> | curl -X PUT --data-binary @- "${URL}"
  +  HTTP_BODY=$(cat <%= path %>)
  +  post "$URL" "$HTTP_BODY"
   <% end %>
  
positive.code: <% p('elasticsearch_config.docs').each do | plugin | ckey, cvalue = plugin.first %>
    URL="http://<%= p("elasticsearch_config.elasticsearch.host") %>:<%= p("elasticsearch_config.elasticsearch.port") %>/<%= ckey %>"
  
    <% if nil == cvalue %>
      curl -X DELETE "${URL}"
    <% else %>
      cat << EOF | curl -X PUT -d@- "${URL}"
  <%= cvalue %>
  EOF
    <% end %>
  <% end %>
  
  #
  
negative.code:   URL="http://<%= p("elasticsearch_config.elasticsearch.host") %>:<%= p("elasticsearch_config.elasticsearch.port") %>/_template/<%= ckey %>"
  
    <% if nil == cvalue %>
    curl -X DELETE "${URL}"
    <% else %>
    HTTP_BODY=$(cat <<EOF
    <%= cvalue %>
  EOF
  )
    
    post "$URL" "$HTTP_BODY"
    <% end %>
  <% end %>
  
  