Il vient de `whois cogent.fr`.
000002:
name: Sylvain Dufier
- address: |
- ORANGE FRANCE
- 13, rue de Javel
- 75015 Paris
email: sylvain.dufier@orange-ftgroup.com
joined_on: 2013-05-20
membership_fee_paid_on: 2013-05-29
MEMBER_FILE_TEMPLATE = <<'END_OF_TEMPLATE'
---
name: <%= name %>
+<% unless address.nil? -%>
address: |
<%= address.gsub(/^/, ' ').rstrip %>
+<% end -%>
email: <%= email %>
joined_on: <%= joined_on %>
membership_fee_paid_on: <%= membership_fee_paid_on %>
end
def render_member_file(locals)
- ERB.new(MEMBER_FILE_TEMPLATE).result(OpenStruct.new(locals).instance_eval { binding })
+ ERB.new(MEMBER_FILE_TEMPLATE, trim_mode: '-').result(OpenStruct.new(locals).instance_eval { binding })
end
def new_id