#---------------------------------------------------------------# # # # (C) Copyright Rubysophic Inc. 2007-2008 # # All rights reserved. # # # # Use, duplication or disclosure of the code is not permitted # # unless licensed. # # # # Last Updated: 7/09/08 # #---------------------------------------------------------------# # # # Provide CONSTANTS for RubyRun modules # # # #---------------------------------------------------------------# module RubyRunGlobals RUBYRUN_PREFIX = 'rubyrunX' RUBYRUN_PREFIX_LENGTH = RUBYRUN_PREFIX.length RUBYRUN_HIGHLIGHT_THRESHOLD = 1 RUBYRUN_FIREWALL_HASH = {"Gem" => [], "gem" => [], "FileUtils::Verbose" => [], "FileUtils" => [], "Module" => [], "Object" => [], "Time" => [], "Logger" => [], "Thread" => [], "*" => ['method_added', 'initialize', 'singleton_method_added', 'send', 'caller']} RUBYRUN_WORKING_DIR_NAME = 'rubyrun' RUBYRUN_ETC_DIR = 'etc' RUBYRUN_LOG = '/log' RUBYRUN_REPORT = '/report' RUBYRUN_SIGNATURE = '/signatures' RUBYRUN_INCLUDE_HASH_FILE = '/include_hash_file' RUBYRUN_EXCLUDE_HASH_FILE = '/exclude_hash_file' RUBYRUN_DIR_HASH_FILE = '/dir_hash_file' RUBYRUN_CMD_SOFT_KILL = '/cmd_soft_kill' RUBYRUN_CMD_HARD_KILL = '/cmd_hard_kill' RUBYRUN_CMD_STATUS = '/cmd_status' RUBYRUN_CMD_EXIT = '/cmd_exit' RUBYRUN_CMD_OBJECT_MAP = '/cmd_object_map' RUBYRUN_MONITOR_TIMER = 10 RUBYRUN_OUTPUT_PERF_SUMMARY = 'perf_summary' RUBYRUN_OUTPUT_TXN_LOG = 'txn_log' RUBYRUN_KILL_3_STRING = 'RUBYRUN kill -3' RUBYRUN_OPTS_FILE = '/rubyrun_opts.yml' RUBYRUN_PROP_DEFAULTS = {"APP_PATHS"=>[], "EXCLUDE_HASH"=>{}, "INCLUDE_HASH"=>{}, "DEBUG_ARGS"=>false, "DEBUG_OBJ"=>false, "DAD"=>false, "REPORT_TIMER"=>60, "REPORT_SHIFT_AGE"=>60, "OUTPUT" => ["#{RUBYRUN_OUTPUT_PERF_SUMMARY}","#{RUBYRUN_OUTPUT_TXN_LOG}","#{RUBYRUN_OUTPUT_PERF_SUMMARY}"], "RSS_PATH" => nil, "TRACE_HASH"=>{}, "DB_ADAPTER_HASH"=>{}} RUBYRUN_ACTIVERECORD = 'ActiveRecord::Base' RUBYRUN_VIEW_HASH = {'ActionView::Base' => ['pick_template_extension','render_file']} RUBYRUN_THREAD_END_HASH = {'WEBrick::HTTPServer' => ['run'], 'Mongrel::HttpServer' => ['process_client']} RUBYRUN_OUTER_DISPATCH_HASH = {'Mongrel::Rails::RailsHandler' => ['process'], 'DispatchServlet' => ['service']} RUBYRUN_INNER_DISPATCH_HASH = { 'Dispatcher' => ['dispatch'], 'ActionController::Dispatcher' => ['dispatch']} end