[Groonga-commit] droonga/droonga-engine at 910eec6 [master] Remove obsolete command

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 18 16:13:45 JST 2014


YUKI Hiroshi	2014-09-18 16:13:45 +0900 (Thu, 18 Sep 2014)

  New Revision: 910eec6cf1e4907bad3bac2d3eeefa386d680734
  https://github.com/droonga/droonga-engine/commit/910eec6cf1e4907bad3bac2d3eeefa386d680734

  Message:
    Remove obsolete command

  Removed files:
    bin/droonga-engine-data-publisher

  Deleted: bin/droonga-engine-data-publisher (+0 -66) 100755
===================================================================
--- bin/droonga-engine-data-publisher    2014-09-18 16:11:30 +0900 (0bc39f0)
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/env ruby
-#
-# Copyright (C) 2014 Droonga Project
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License version 2.1 as published by the Free Software Foundation.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-
-require "ostruct"
-require "optparse"
-require "pathname"
-require "fileutils"
-require "webrick"
-
-require "droonga/engine/version"
-require "droonga/path"
-
-options = OpenStruct.new
-options.base_dir = ENV[Droonga::Path::BASE_DIR_ENV_NAME] || Dir.pwd
-options.port = 10032
-
-parser = OptionParser.new
-parser.version = Droonga::Engine::VERSION
-
-parser.on("--base-dir=PATH",
-          "Path to the base directory the catalog.json is located in.",
-          "(#{options.base_dir})") do |path|
-  options.base_dir = path
-end
-parser.on("--port=PORT", Integer,
-          "Port number to listen.",
-          "(#{options.port})") do |port|
-  options.port = port
-end
-parser.on("--published-file=PATH",
-          "Path to the file to be published.") do |path|
-  options.published_file = path
-end
-
-parser.parse!(ARGV)
-
-include WEBrick
-
-published_dir = Droonga::Path.published(options.port)
-FileUtils.mkdir_p(published_dir.to_s)
-published_file = Pathname(options.published_file).expand_path
-FileUtils.copy(published_file.to_s, published_dir + published_file.basename)
-
-server = HTTPServer.new(:Port => options.port,
-                        :DocumentRoot => published_dir)
-
-trap("INT") do
-  server.shutdown
-  FileUtils.rm_rf(published_dir.to_s)
-end
-
-server.start
-------------- next part --------------
HTML����������������������������...
Download 



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