]> nos-oignons.net Git - gestion-adh.git/blob - bin/list-emails
Cosmetic
[gestion-adh.git] / bin / list-emails
1 #!/usr/bin/ruby1.9.1
2 #-*- coding: utf-8 -*-
3
4 require 'rubygems'
5 require 'bundler'
6 Bundler.setup
7
8 require 'nos_oignons/subscriptions'
9
10 NosOignons::Subscription.all.each do |subscription|
11   if subscription.up_to_date?
12     puts subscription.email
13   end
14 end