[Groonga-mysql-commit] mroonga/homebrew-mroonga at 8fd4cce [master] Show how to uninstall Mroonga

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 10 15:12:49 JST 2015


Kouhei Sutou	2015-03-10 15:12:49 +0900 (Tue, 10 Mar 2015)

  New Revision: 8fd4ccefe457b069ef6ea795e39fc35e8a9ca842
  https://github.com/mroonga/homebrew-mroonga/commit/8fd4ccefe457b069ef6ea795e39fc35e8a9ca842

  Message:
    Show how to uninstall Mroonga

  Modified files:
    mroonga.rb

  Modified: mroonga.rb (+12 -1)
===================================================================
--- mroonga.rb    2015-03-10 15:11:55 +0900 (dfaa047)
+++ mroonga.rb    2015-03-10 15:12:49 +0900 (f5f85e9)
@@ -73,6 +73,9 @@ class Mroonga < Formula
       To install Mroonga plugin, run the following command:
          mysql -uroot < '#{install_sql_path}'
 
+      To uninstall Mroonga plugin, run the following command:
+         mysql -uroot < '#{uninstall_sql_path}'
+
       To confirm successfuly installed, run the following command
       and confirm that 'Mroonga' is in the list:
 
@@ -152,8 +155,16 @@ class Mroonga < Formula
     system("mysql -uroot < '#{install_sql_path}' || true")
   end
 
+  def data_path
+    prefix + "share/mroonga"
+  end
+
   def install_sql_path
-    prefix + "share/mroonga/install.sql"
+    data_path + "install.sql"
+  end
+
+  def uninstall_sql_path
+    data_path + "uninstall.sql"
   end
 
   def option_value(search_key)
-------------- next part --------------
HTML����������������������������...
Télécharger 



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