[Groonga-commit] groonga/groonga-beginners-book-ja at 1179258 [master] Use FileUtils#sh instead of Kernel.#system

Back to archive index

Masafumi Yokoyama null+****@clear*****
Sat Feb 28 23:19:11 JST 2015


Masafumi Yokoyama	2015-02-28 23:19:11 +0900 (Sat, 28 Feb 2015)

  New Revision: 11792582fc43b3457d16c52a97b65925353707b0
  https://github.com/groonga/groonga-beginners-book-ja/commit/11792582fc43b3457d16c52a97b65925353707b0

  Message:
    Use FileUtils#sh instead of Kernel.#system
    
    Because FileUtils#sh (added by Rake) is useful. For example,
    a RuntimeError is raised when the command exits non-zero.
    
    See: http://docs.seattlerb.org/rake/FileUtils.html#method-i-sh

  Modified files:
    Rakefile

  Modified: Rakefile (+3 -3)
===================================================================
--- Rakefile    2015-02-28 23:09:58 +0900 (bd4563c)
+++ Rakefile    2015-02-28 23:19:11 +0900 (c209822)
@@ -15,16 +15,16 @@ end
 namespace :generate do
   desc "generate HTML"
   task :html do |re_path|
-    system("review-compile", "--target=html", "--all")
+    sh("review-compile", "--target=html", "--all")
   end
 
   desc "generate PDF"
   task :pdf do
-    system("review-pdfmaker", config_path)
+    sh("review-pdfmaker", config_path)
   end
 
   desc "generate EPUB"
   task :epub do
-    system("review-epubmaker", config_path)
+    sh("review-epubmaker", config_path)
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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