Skip to content

Instantly share code, notes, and snippets.

@nicolasiensen
Last active August 29, 2015 14:24
Show Gist options
  • Save nicolasiensen/377e72926878d9da7aba to your computer and use it in GitHub Desktop.
Save nicolasiensen/377e72926878d9da7aba to your computer and use it in GitHub Desktop.
class OrganizationCreator
# TODO: add avatar, email_signature_html, bio and facebook_page_uid
def self.create_all
create_meu_recife
create_minha_blumenau
create_minha_campinas
create_minha_curitiba
create_minha_garopaba
create_minha_ouro_preto
create_minha_porto_alegre
end
def self.create_meu_recife
mailchimp_list_id = Rails.env.production? ? "5d06494de7" : "93180068ac"
Organization.create(
name: "Meu Recife",
mailchimp_list_id: mailchimp_list_id,
city: "Recife",
pdp_sender_email: "[email protected]",
pdp_receiver_email: "[email protected]",
slug: "meurecife"
)
end
def self.create_minha_blumenau
mailchimp_list_id = Rails.env.production? ? "c937af6d49" : "93180068ac"
Organization.create(
name: "Minha Blumenau",
mailchimp_list_id: mailchimp_list_id,
city: "Blumenau",
pdp_sender_email: "[email protected]",
pdp_receiver_email: "[email protected]",
slug: "minhablumenau"
)
end
def self.create_minha_campinas
mailchimp_list_id = Rails.env.production? ? "25e48d08e7" : "93180068ac"
Organization.create(
name: "Minha Campinas",
mailchimp_list_id: mailchimp_list_id,
city: "Campinas",
pdp_sender_email: "[email protected]",
pdp_receiver_email: "[email protected]",
slug: "minhacampinas"
)
end
def self.create_minha_curitiba
mailchimp_list_id = Rails.env.production? ? "919d3a30ba" : "93180068ac"
Organization.create(
name: "Minha Curitiba",
mailchimp_list_id: mailchimp_list_id,
city: "Curitiba",
pdp_sender_email: "[email protected]",
pdp_receiver_email: "[email protected]",
slug: "minhacuritiba"
)
end
def self.create_minha_garopaba
mailchimp_list_id = Rails.env.production? ? "b643b85dfe" : "93180068ac"
Organization.create(
name: "Minha Garopaba",
mailchimp_list_id: mailchimp_list_id,
city: "Garopaba",
pdp_sender_email: "[email protected]",
pdp_receiver_email: "[email protected]",
slug: "minhagaropaba"
)
end
def self.create_minha_ouro_preto
mailchimp_list_id = Rails.env.production? ? "0ebdf44193" : "93180068ac"
Organization.create(
name: "Minha Ouro Preto",
mailchimp_list_id: mailchimp_list_id,
city: "Ouro Preto",
pdp_sender_email: "[email protected]",
pdp_receiver_email: "[email protected]",
slug: "minhaouropreto"
)
end
def self.create_minha_porto_alegre
mailchimp_list_id = Rails.env.production? ? "de8754f722" : "93180068ac"
Organization.create(
name: "Minha Porto Alegre",
mailchimp_list_id: mailchimp_list_id,
city: "Porto Alegre",
pdp_sender_email: "[email protected]",
pdp_receiver_email: "[email protected]",
slug: "minhaportoalegre"
)
end
end
# Organization.create(
# name: "Minha Garopaba",
# city: "Garopaba",
# slug: "minhagaropaba",
# remote_avatar_url: "http://i.imgur.com/WdElSXk.png",
# pdp_sender_email: "[email protected]",
# pdp_receiver_email: "[email protected]",
# email_signature_html: '<table cellspacing=0 cellpadding=0 margin=0 width=600 style="margin-top: 50px">
# <tr>
# <td valign=top>
# <img src="http://i.imgur.com/BpY07vI.png" style="margin-right: 10px; width: 200px" />
# </td>
# <td>
# <span style="color: #3b9fd2; font-size: 15px; font-family: arial, sans serif; font-weight: bold">
# Rede Minha Garopaba
# </span>
# <p style="color: #81929e; font-size: 12px; font-family: arial, sans serif; margin-top: 5px; margin-bottom: 5px">
# A Rede Nossas Cidades desenvolve e mantém aplicativos e plataformas que facilitam a interação entre cidadãos e poder público, ampliando os espaços de participação democrática em grandes cidades e fomentando a mobilização de cidadãos que querem construir cidades mais inclusivas e participativas.
# <a style="color: #3b9fd2; font-size: 12px; font-family: arial, sans serif" href="http://minhagaropaba.org.br">Clique aqui para saber mais!</a>
# </p>
# </td>
# </tr>
# </table>'
# )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment