]> nos-oignons.net Git - gestion-adh.git/blobdiff - lib/nos_oignons/git.rb
Implement send-membership-reminders
[gestion-adh.git] / lib / nos_oignons / git.rb
index 4a2d04df463d3a90689ca1e4733d629ff989e76d..53399bd0e469b1bd3a2131b5ee92033bfe5b53ed 100644 (file)
@@ -1,9 +1,15 @@
-def handle_modified_files(io)
-  io.readlines.each do |line|
-    status, file = line.strip.split("\t", 2)
-    # Has file been added or modified?
-    if ['A', 'M'].include?(status)
-      yield file
+module NosOignons
+  module Git
+    class << self
+      def handle_modified_files(io)
+        io.readlines.each do |line|
+          status, file = line.strip.split("\t", 2)
+          # Has file been added or modified?
+          if ['A', 'M'].include?(status)
+            yield file
+          end
+        end
+      end
     end
   end
 end