Sha256: 07af8098efe4e66b86058f8a758417f30853f1be38c1bfa933025cf902e8fe10
Contents?: true
Size: 912 Bytes
Versions: 26
Compression:
Stored size: 912 Bytes
Contents
#!/usr/bin/env ruby require "#{File.dirname(__FILE__)}/../lib/hayabusa.rb" knjrbfw_path = "" ARGV.each do |arg| if arg == "--active_support" ARGV.delete(arg) require "active_support" require "active_support/core_ext" elsif match = arg.match(/--knjrbfw_path=(.+)/) knjrbfw_path = match[1] ARGV.delete(arg) else print "Unknown argument: '#{arg}'.\n" exit end end require "#{knjrbfw_path}knjrbfw" filepath = File.dirname(__FILE__) + "/../lib/" if File.exists?($0) conf_path = File.dirname($0) + "/../" else conf_path = File.dirname(__FILE__) + "/../" end require "#{conf_path}conf/conf_vars" require "#{$hayabusa_config["knjrbfw"]}knj/autoload" $hayabusa = { :path => File.realpath(File.dirname(__FILE__)) } Knj::Os.chdir_file(File.realpath(__FILE__)) require "#{filepath}include/class_hayabusa.rb" print "Starting knjAppServer.\n" require "#{conf_path}conf/conf"
Version data entries
26 entries across 26 versions & 1 rubygems