[Groonga-commit] droonga/wikipedia-search at 1668c42 [master] Add "data_" prefix

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 4 18:39:54 JST 2014


Kouhei Sutou	2014-04-04 18:39:54 +0900 (Fri, 04 Apr 2014)

  New Revision: 1668c422a00e9c752c7e80d6b179cb75f3402974
  https://github.com/droonga/wikipedia-search/commit/1668c422a00e9c752c7e80d6b179cb75f3402974

  Message:
    Add "data_" prefix

  Modified files:
    lib/wikipedia-search/task.rb

  Modified: lib/wikipedia-search/task.rb (+13 -9)
===================================================================
--- lib/wikipedia-search/task.rb    2014-04-04 18:37:47 +0900 (49058e3)
+++ lib/wikipedia-search/task.rb    2014-04-04 18:39:54 +0900 (d0e053f)
@@ -13,15 +13,19 @@ module WikipediaSearch
     include Rake::DSL
 
     def define
+      define_data_tasks
+    end
+
+    private
+    def define_data_tasks
       namespace :data do
         directory data_dir_path.to_s
-        define_download_tasks
-        define_convert_tasks
+        define_data_download_tasks
+        define_data_convert_tasks
       end
     end
 
-    private
-    def define_download_tasks
+    def define_data_download_tasks
       namespace :download do
         namespace :pages do
           file ja_pages_path.to_s => data_dir_path.to_s do
@@ -45,14 +49,14 @@ module WikipediaSearch
       end
     end
 
-    def define_convert_tasks
+    def define_data_convert_tasks
       namespace :convert do
-        define_convert_groonga_tasks
-        define_convert_droonga_tasks
+        define_data_convert_groonga_tasks
+        define_data_convert_droonga_tasks
       end
     end
 
-    def define_convert_groonga_tasks
+    def define_data_convert_groonga_tasks
       namespace :groonga do
         file ja_groonga_pages_path.to_s => ja_pages_path.to_s do
           command_line = []
@@ -75,7 +79,7 @@ module WikipediaSearch
       end
     end
 
-    def define_convert_droonga_tasks
+    def define_data_convert_droonga_tasks
       namespace :droonga do
         file ja_droonga_pages_path.to_s => ja_groonga_pages_path.to_s do
           sh("grn2drn",
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index