Sha256: 4d2314b6c0234d785e2fbb88a7cfaa1ffbc34279efe62f4299a196fd89c2729b

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

# WebROaR - Ruby Application Server - http://webroar.in/
# Copyright (C) 2009  Goonj LLC
#
# This file is part of WebROaR.
#
# WebROaR is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# WebROaR 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WebROaR.  If not, see <http://www.gnu.org/licenses/>.

# Directory constant
WEBROAR_ROOT          = File.expand_path(File.join(File.dirname(__FILE__), '..'))
WEBROAR_LIB_DIR       = File.expand_path(File.join(WEBROAR_ROOT, 'lib'))
WEBROAR_TEST_DIR      = File.expand_path(File.join(WEBROAR_ROOT, 'test', 'unit'))
WEBROAR_BIN_DIR       = File.expand_path(File.join(WEBROAR_ROOT, 'bin'))
ADMIN_PANEL_DIR       = File.join(WEBROAR_ROOT, 'src', 'admin_panel')
ADMIN_PANEL_LIB_DIR   = File.join(ADMIN_PANEL_DIR, 'lib')
#RAILS_ROOT = ADMIN_PANEL_DIR
GEM_BIN_DIR           = File.expand_path(File.join(WEBROAR_ROOT,'..','..','bin'))
USR_BIN_DIR           = File.join('','usr','bin')
ANALYZER_DIR          = File.join(WEBROAR_ROOT, 'src', 'ruby_lib', 'analyzer')


ENV["PATH"]           += ":/usr/bin:/usr/sbin:/sbin:/usr/local/sbin:#{WEBROAR_BIN_DIR}"

# File constant
INTERNAL_CONF_FILE    = File.join(WEBROAR_ROOT, 'conf', 'server_internal_config.yml')
WEBROAR_LOG_FILE      = File.join('','var','log','webroar','webroar.log')
PIDFILE               = "/var/run/webroar.pid"
TESTFILE              = "/etc/profile"

# Message constant
MESSAGE_DEPLOYMENT    = "This command needs to be run as root. Please try again using 'sudo'.".freeze

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webroar-0.7.0 lib/constant.rb