passenger 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- data/NEWS +29 -0
- data/build/agents.rb +1 -0
- data/build/apache2.rb +2 -1
- data/build/cxx_tests.rb +7 -0
- data/build/rpm.rb +17 -22
- data/doc/cxxapi/Constants_8h_source.html +1 -1
- data/doc/cxxapi/Exceptions_8h_source.html +18 -4
- data/doc/cxxapi/Logging_8h_source.html +332 -262
- data/doc/cxxapi/annotated.html +1 -0
- data/doc/cxxapi/classes.html +4 -4
- data/doc/cxxapi/group__Exceptions.html +2 -0
- data/doc/cxxapi/hierarchy.html +1 -0
- data/doc/cxxapi/inherit__graph__35.map +1 -3
- data/doc/cxxapi/inherit__graph__35.md5 +1 -1
- data/doc/cxxapi/inherit__graph__35.png +0 -0
- data/doc/cxxapi/inherit__graph__36.map +3 -1
- data/doc/cxxapi/inherit__graph__36.md5 +1 -1
- data/doc/cxxapi/inherit__graph__36.png +0 -0
- data/doc/cxxapi/inherit__graph__37.map +1 -1
- data/doc/cxxapi/inherit__graph__37.md5 +1 -1
- data/doc/cxxapi/inherit__graph__37.png +0 -0
- data/doc/cxxapi/inherit__graph__38.map +1 -1
- data/doc/cxxapi/inherit__graph__38.md5 +1 -1
- data/doc/cxxapi/inherit__graph__38.png +0 -0
- data/doc/cxxapi/inherit__graph__39.map +1 -1
- data/doc/cxxapi/inherit__graph__39.md5 +1 -1
- data/doc/cxxapi/inherit__graph__39.png +0 -0
- data/doc/cxxapi/inherit__graph__40.map +1 -1
- data/doc/cxxapi/inherit__graph__40.md5 +1 -1
- data/doc/cxxapi/inherit__graph__40.png +0 -0
- data/doc/cxxapi/inherits.html +9 -6
- data/doc/cxxapi/namespacePassenger.html +2 -0
- data/doc/cxxapi/tree.html +2 -0
- data/doc/rdoc/classes/ConditionVariable.html +215 -0
- data/doc/rdoc/classes/Exception.html +120 -0
- data/doc/rdoc/classes/GC.html +113 -0
- data/doc/rdoc/classes/IO.html +221 -0
- data/doc/rdoc/classes/PhusionPassenger.html +397 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +180 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +647 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +654 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +97 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +96 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +97 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +96 -0
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +619 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +142 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html +368 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html +231 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html +588 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html +147 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html +279 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html +123 -0
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html +368 -0
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html +299 -0
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html +206 -0
- data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +155 -0
- data/doc/rdoc/classes/PhusionPassenger/AppProcess.html +367 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails.html +95 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html +351 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html +98 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html +200 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html +410 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html +98 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html +156 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html +115 -0
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html +202 -0
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +172 -0
- data/doc/rdoc/classes/PhusionPassenger/DebugLogging.html +273 -0
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +145 -0
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +162 -0
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +141 -0
- data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +673 -0
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html +92 -0
- data/doc/rdoc/classes/PhusionPassenger/MessageClient.html +415 -0
- data/doc/rdoc/classes/PhusionPassenger/NativeSupportLoader.html +134 -0
- data/doc/rdoc/classes/PhusionPassenger/Packaging.html +129 -0
- data/doc/rdoc/classes/PhusionPassenger/PlatformInfo.html +1972 -0
- data/doc/rdoc/classes/PhusionPassenger/Plugin.html +237 -0
- data/doc/rdoc/classes/PhusionPassenger/Rack.html +91 -0
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +312 -0
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html +98 -0
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +218 -0
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html +114 -0
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html +259 -0
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html +139 -0
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html +118 -0
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html +135 -0
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +378 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone.html +111 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html +252 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Command.html +161 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html +368 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html +132 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html +151 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Main.html +189 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html +177 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html +341 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html +203 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html +156 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html +168 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html +86 -0
- data/doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html +135 -0
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +125 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +1543 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html +204 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html +171 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html +140 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html +260 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +194 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +265 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +120 -0
- data/doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html +561 -0
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +140 -0
- data/doc/rdoc/classes/PhusionPassenger/WSGI.html +89 -0
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +182 -0
- data/doc/rdoc/classes/Process.html +115 -0
- data/doc/rdoc/classes/Signal.html +139 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/DEVELOPERS_TXT.html +280 -0
- data/doc/rdoc/files/README.html +157 -0
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +130 -0
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +135 -0
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +128 -0
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html +132 -0
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html +129 -0
- data/doc/rdoc/files/lib/phusion_passenger/app_process_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html +141 -0
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html +146 -0
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html +125 -0
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html +132 -0
- data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +147 -0
- data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +120 -0
- data/doc/rdoc/files/lib/phusion_passenger/message_client_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/native_support_rb.html +132 -0
- data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html +129 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html +128 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/plugin_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/public_api_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +137 -0
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +125 -0
- data/doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +160 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html +136 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html +133 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html +136 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html +127 -0
- data/doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html +120 -0
- data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +100 -0
- data/doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html +122 -0
- data/doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html +126 -0
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +179 -0
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +132 -0
- data/doc/rdoc/fr_class_index.html +139 -0
- data/doc/rdoc/fr_file_index.html +108 -0
- data/doc/rdoc/fr_method_index.html +439 -0
- data/doc/rdoc/index.html +26 -0
- data/doc/rdoc/rdoc-style.css +187 -0
- data/ext/apache2/Configuration.cpp +41 -0
- data/ext/apache2/Configuration.hpp +19 -0
- data/ext/apache2/Hooks.cpp +67 -5
- data/ext/common/Constants.h +1 -1
- data/ext/common/Exceptions.h +14 -0
- data/ext/common/Logging.h +76 -6
- data/ext/common/LoggingAgent/FilterSupport.h +1317 -0
- data/ext/common/LoggingAgent/LoggingServer.h +93 -4
- data/ext/common/LoggingAgent/RemoteSender.h +5 -5
- data/ext/common/Utils/StrIntUtils.cpp +12 -1
- data/ext/common/Utils/StrIntUtils.h +2 -1
- data/ext/common/Utils/StringMap.h +100 -0
- data/ext/nginx/Configuration.c +0 -1
- data/ext/nginx/ContentHandler.c +33 -7
- data/lib/phusion_passenger.rb +2 -2
- data/lib/phusion_passenger/abstract_request_handler.rb +5 -0
- data/lib/phusion_passenger/analytics_logger.rb +77 -11
- data/lib/phusion_passenger/dependencies.rb +11 -1
- data/lib/phusion_passenger/platform_info.rb +1 -1
- data/lib/phusion_passenger/utils.rb +9 -1
- data/test/cxx/FilterSupportTest.cpp +276 -0
- data/test/cxx/LoggingTest.cpp +28 -0
- data/test/cxx/StringMapTest.cpp +70 -0
- data/test/integration_tests/cgi_environment_spec.rb +10 -0
- metadata +170 -8
- data/ext/common/libboost_oxt/aggregate.cpp +0 -10
- data/ext/common/libpassenger_common/aggregate.cpp +0 -15
@@ -0,0 +1,368 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Class: PhusionPassenger::Standalone::ConfigFile</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::Standalone::ConfigFile</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing="0" cellpadding="2">
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../../../files/lib/phusion_passenger/standalone/config_file_rb.html">lib/phusion_passenger/standalone/config_file.rb</a>
|
61
|
+
</td>
|
62
|
+
</tr>
|
63
|
+
<tr>
|
64
|
+
<td>Parent:</td>
|
65
|
+
<td>
|
66
|
+
Object
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
</table>
|
70
|
+
</td>
|
71
|
+
</tr>
|
72
|
+
</table>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div class="sectiontitle">Methods</div>
|
82
|
+
<ul>
|
83
|
+
<li><a href="#M000120">address</a></li>
|
84
|
+
<li><a href="#M000132">analytics</a></li>
|
85
|
+
<li><a href="#M000128">daemonize</a></li>
|
86
|
+
<li><a href="#M000133">debugger</a></li>
|
87
|
+
<li><a href="#M000130">domain_name</a></li>
|
88
|
+
<li><a href="#M000131">domain_names</a></li>
|
89
|
+
<li><a href="#M000123">env</a></li>
|
90
|
+
<li><a href="#M000122">environment</a></li>
|
91
|
+
<li><a href="#M000126">max_pool_size</a></li>
|
92
|
+
<li><a href="#M000127">min_instances</a></li>
|
93
|
+
<li><a href="#M000119">new</a></li>
|
94
|
+
<li><a href="#M000129">nginx_bin</a></li>
|
95
|
+
<li><a href="#M000121">port</a></li>
|
96
|
+
<li><a href="#M000125">rack_env</a></li>
|
97
|
+
<li><a href="#M000124">rails_env</a></li>
|
98
|
+
</ul>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<div class="sectiontitle">Classes and Modules</div>
|
103
|
+
Class <a href="ConfigFile/DisallowedContextError.html" class="link">PhusionPassenger::Standalone::ConfigFile::DisallowedContextError</a><br />
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<div class="sectiontitle">Attributes</div>
|
108
|
+
<table border='0' cellpadding='5'>
|
109
|
+
<tr valign='top'>
|
110
|
+
<td class='attr-rw'>
|
111
|
+
[R]
|
112
|
+
</td>
|
113
|
+
<td class='attr-name'>options</td>
|
114
|
+
<td class='attr-desc'></td>
|
115
|
+
</tr>
|
116
|
+
</table>
|
117
|
+
|
118
|
+
<div class="sectiontitle">Public Class methods</div>
|
119
|
+
<div class="method">
|
120
|
+
<div class="title">
|
121
|
+
<a name="M000119"></a><b>new</b>(context, filename)
|
122
|
+
</div>
|
123
|
+
<div class="sourcecode">
|
124
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show source</a> ]</p>
|
125
|
+
<div id="M000119_source" class="dyn-source">
|
126
|
+
<pre>
|
127
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 42</span>
|
128
|
+
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">context</span>, <span class="ruby-identifier">filename</span>)
|
129
|
+
43: <span class="ruby-ivar">@options</span> = {}
|
130
|
+
44: <span class="ruby-ivar">@context</span> = <span class="ruby-identifier">context</span>
|
131
|
+
45: <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
|
132
|
+
46: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">'r'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
133
|
+
47: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">flock</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">LOCK_SH</span>)
|
134
|
+
48: <span class="ruby-identifier">instance_eval</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>, <span class="ruby-identifier">filename</span>)
|
135
|
+
49: <span class="ruby-keyword kw">end</span>
|
136
|
+
50: <span class="ruby-keyword kw">end</span>
|
137
|
+
</pre>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
</div>
|
141
|
+
<div class="sectiontitle">Public Instance methods</div>
|
142
|
+
<div class="method">
|
143
|
+
<div class="title">
|
144
|
+
<a name="M000120"></a><b>address</b>(addr)
|
145
|
+
</div>
|
146
|
+
<div class="sourcecode">
|
147
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show source</a> ]</p>
|
148
|
+
<div id="M000120_source" class="dyn-source">
|
149
|
+
<pre>
|
150
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 52</span>
|
151
|
+
52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">address</span>(<span class="ruby-identifier">addr</span>)
|
152
|
+
53: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:port</span>, <span class="ruby-identifier">:global_config</span>)
|
153
|
+
54: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:address</span>] = <span class="ruby-identifier">addr</span>
|
154
|
+
55: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:tcp_explicitly_given</span>] = <span class="ruby-keyword kw">true</span>
|
155
|
+
56: <span class="ruby-keyword kw">end</span>
|
156
|
+
</pre>
|
157
|
+
</div>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
<div class="method">
|
161
|
+
<div class="title">
|
162
|
+
<a name="M000132"></a><b>analytics</b>(value)
|
163
|
+
</div>
|
164
|
+
<div class="sourcecode">
|
165
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
166
|
+
<div id="M000132_source" class="dyn-source">
|
167
|
+
<pre>
|
168
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 101</span>
|
169
|
+
101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">analytics</span>(<span class="ruby-identifier">value</span>)
|
170
|
+
102: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:analytics</span>] = <span class="ruby-identifier">value</span>
|
171
|
+
103: <span class="ruby-keyword kw">end</span>
|
172
|
+
</pre>
|
173
|
+
</div>
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
<div class="method">
|
177
|
+
<div class="title">
|
178
|
+
<a name="M000128"></a><b>daemonize</b>(on)
|
179
|
+
</div>
|
180
|
+
<div class="sourcecode">
|
181
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000128_source')" id="l_M000128_source">show source</a> ]</p>
|
182
|
+
<div id="M000128_source" class="dyn-source">
|
183
|
+
<pre>
|
184
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 81</span>
|
185
|
+
81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">daemonize</span>(<span class="ruby-identifier">on</span>)
|
186
|
+
82: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:daemonize</span>, <span class="ruby-identifier">:global_config</span>)
|
187
|
+
83: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:daemonize</span>] = <span class="ruby-identifier">on</span>
|
188
|
+
84: <span class="ruby-keyword kw">end</span>
|
189
|
+
</pre>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
<div class="method">
|
194
|
+
<div class="title">
|
195
|
+
<a name="M000133"></a><b>debugger</b>(value)
|
196
|
+
</div>
|
197
|
+
<div class="sourcecode">
|
198
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
|
199
|
+
<div id="M000133_source" class="dyn-source">
|
200
|
+
<pre>
|
201
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 105</span>
|
202
|
+
105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debugger</span>(<span class="ruby-identifier">value</span>)
|
203
|
+
106: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:debugger</span>] = <span class="ruby-identifier">value</span>
|
204
|
+
107: <span class="ruby-keyword kw">end</span>
|
205
|
+
</pre>
|
206
|
+
</div>
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
<div class="method">
|
210
|
+
<div class="title">
|
211
|
+
<a name="M000130"></a><b>domain_name</b>(name)
|
212
|
+
</div>
|
213
|
+
<div class="sourcecode">
|
214
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000130_source')" id="l_M000130_source">show source</a> ]</p>
|
215
|
+
<div id="M000130_source" class="dyn-source">
|
216
|
+
<pre>
|
217
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 91</span>
|
218
|
+
91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">domain_name</span>(<span class="ruby-identifier">name</span>)
|
219
|
+
92: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:domain_name</span>, <span class="ruby-identifier">:local_config</span>)
|
220
|
+
93: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:server_names</span>] = [<span class="ruby-identifier">name</span>]
|
221
|
+
94: <span class="ruby-keyword kw">end</span>
|
222
|
+
</pre>
|
223
|
+
</div>
|
224
|
+
</div>
|
225
|
+
</div>
|
226
|
+
<div class="method">
|
227
|
+
<div class="title">
|
228
|
+
<a name="M000131"></a><b>domain_names</b>(*names)
|
229
|
+
</div>
|
230
|
+
<div class="sourcecode">
|
231
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
232
|
+
<div id="M000131_source" class="dyn-source">
|
233
|
+
<pre>
|
234
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 96</span>
|
235
|
+
96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">domain_names</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">names</span>)
|
236
|
+
97: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:domain_names</span>, <span class="ruby-identifier">:local_config</span>)
|
237
|
+
98: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:server_names</span>] = <span class="ruby-identifier">names</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">flatten</span>
|
238
|
+
99: <span class="ruby-keyword kw">end</span>
|
239
|
+
</pre>
|
240
|
+
</div>
|
241
|
+
</div>
|
242
|
+
</div>
|
243
|
+
<div class="method">
|
244
|
+
<div class="title">
|
245
|
+
<a name="M000123"></a><b>env</b>(name)
|
246
|
+
</div>
|
247
|
+
<div class="description">
|
248
|
+
<p>
|
249
|
+
Alias for <a href="ConfigFile.html#M000122">#environment</a>
|
250
|
+
</p>
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
<div class="method">
|
254
|
+
<div class="title">
|
255
|
+
<a name="M000122"></a><b>environment</b>(name)
|
256
|
+
</div>
|
257
|
+
<div class="aka">
|
258
|
+
This method is also aliased as
|
259
|
+
<a href="ConfigFile.html#M000123">env</a>
|
260
|
+
<a href="ConfigFile.html#M000124">rails_env</a>
|
261
|
+
<a href="ConfigFile.html#M000125">rack_env</a>
|
262
|
+
</div>
|
263
|
+
<div class="sourcecode">
|
264
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show source</a> ]</p>
|
265
|
+
<div id="M000122_source" class="dyn-source">
|
266
|
+
<pre>
|
267
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 64</span>
|
268
|
+
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">environment</span>(<span class="ruby-identifier">name</span>)
|
269
|
+
65: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:env</span>] = <span class="ruby-identifier">name</span>
|
270
|
+
66: <span class="ruby-keyword kw">end</span>
|
271
|
+
</pre>
|
272
|
+
</div>
|
273
|
+
</div>
|
274
|
+
</div>
|
275
|
+
<div class="method">
|
276
|
+
<div class="title">
|
277
|
+
<a name="M000126"></a><b>max_pool_size</b>(number)
|
278
|
+
</div>
|
279
|
+
<div class="sourcecode">
|
280
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
|
281
|
+
<div id="M000126_source" class="dyn-source">
|
282
|
+
<pre>
|
283
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 72</span>
|
284
|
+
72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">max_pool_size</span>(<span class="ruby-identifier">number</span>)
|
285
|
+
73: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:max_pool_size</span>, <span class="ruby-identifier">:global_config</span>)
|
286
|
+
74: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:max_pool_size</span>] = <span class="ruby-identifier">number</span>
|
287
|
+
75: <span class="ruby-keyword kw">end</span>
|
288
|
+
</pre>
|
289
|
+
</div>
|
290
|
+
</div>
|
291
|
+
</div>
|
292
|
+
<div class="method">
|
293
|
+
<div class="title">
|
294
|
+
<a name="M000127"></a><b>min_instances</b>(number)
|
295
|
+
</div>
|
296
|
+
<div class="sourcecode">
|
297
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">show source</a> ]</p>
|
298
|
+
<div id="M000127_source" class="dyn-source">
|
299
|
+
<pre>
|
300
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 77</span>
|
301
|
+
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">min_instances</span>(<span class="ruby-identifier">number</span>)
|
302
|
+
78: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:min_instances</span>] = <span class="ruby-identifier">number</span>
|
303
|
+
79: <span class="ruby-keyword kw">end</span>
|
304
|
+
</pre>
|
305
|
+
</div>
|
306
|
+
</div>
|
307
|
+
</div>
|
308
|
+
<div class="method">
|
309
|
+
<div class="title">
|
310
|
+
<a name="M000129"></a><b>nginx_bin</b>(filename)
|
311
|
+
</div>
|
312
|
+
<div class="sourcecode">
|
313
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000129_source')" id="l_M000129_source">show source</a> ]</p>
|
314
|
+
<div id="M000129_source" class="dyn-source">
|
315
|
+
<pre>
|
316
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 86</span>
|
317
|
+
86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nginx_bin</span>(<span class="ruby-identifier">filename</span>)
|
318
|
+
87: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:nginx_bin</span>, <span class="ruby-identifier">:global_config</span>)
|
319
|
+
88: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:nginx_bin</span>] = <span class="ruby-identifier">filename</span>
|
320
|
+
89: <span class="ruby-keyword kw">end</span>
|
321
|
+
</pre>
|
322
|
+
</div>
|
323
|
+
</div>
|
324
|
+
</div>
|
325
|
+
<div class="method">
|
326
|
+
<div class="title">
|
327
|
+
<a name="M000121"></a><b>port</b>(number)
|
328
|
+
</div>
|
329
|
+
<div class="sourcecode">
|
330
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show source</a> ]</p>
|
331
|
+
<div id="M000121_source" class="dyn-source">
|
332
|
+
<pre>
|
333
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 58</span>
|
334
|
+
58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">port</span>(<span class="ruby-identifier">number</span>)
|
335
|
+
59: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:port</span>, <span class="ruby-identifier">:global_config</span>)
|
336
|
+
60: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:port</span>] = <span class="ruby-identifier">number</span>
|
337
|
+
61: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:tcp_explicitly_given</span>] = <span class="ruby-keyword kw">true</span>
|
338
|
+
62: <span class="ruby-keyword kw">end</span>
|
339
|
+
</pre>
|
340
|
+
</div>
|
341
|
+
</div>
|
342
|
+
</div>
|
343
|
+
<div class="method">
|
344
|
+
<div class="title">
|
345
|
+
<a name="M000125"></a><b>rack_env</b>(name)
|
346
|
+
</div>
|
347
|
+
<div class="description">
|
348
|
+
<p>
|
349
|
+
Alias for <a href="ConfigFile.html#M000122">#environment</a>
|
350
|
+
</p>
|
351
|
+
</div>
|
352
|
+
</div>
|
353
|
+
<div class="method">
|
354
|
+
<div class="title">
|
355
|
+
<a name="M000124"></a><b>rails_env</b>(name)
|
356
|
+
</div>
|
357
|
+
<div class="description">
|
358
|
+
<p>
|
359
|
+
Alias for <a href="ConfigFile.html#M000122">#environment</a>
|
360
|
+
</p>
|
361
|
+
</div>
|
362
|
+
</div>
|
363
|
+
</div>
|
364
|
+
|
365
|
+
</div>
|
366
|
+
|
367
|
+
</body>
|
368
|
+
</html>
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Class: PhusionPassenger::Standalone::ConfigFile::DisallowedContextError</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::Standalone::ConfigFile::DisallowedContextError</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing="0" cellpadding="2">
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../../../../files/lib/phusion_passenger/standalone/config_file_rb.html">lib/phusion_passenger/standalone/config_file.rb</a>
|
61
|
+
</td>
|
62
|
+
</tr>
|
63
|
+
<tr>
|
64
|
+
<td>Parent:</td>
|
65
|
+
<td>
|
66
|
+
StandardError
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
</table>
|
70
|
+
</td>
|
71
|
+
</tr>
|
72
|
+
</table>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
<div id="content">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div class="sectiontitle">Methods</div>
|
82
|
+
<ul>
|
83
|
+
<li><a href="#M000134">new</a></li>
|
84
|
+
</ul>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<div class="sectiontitle">Attributes</div>
|
91
|
+
<table border='0' cellpadding='5'>
|
92
|
+
<tr valign='top'>
|
93
|
+
<td class='attr-rw'>
|
94
|
+
[R]
|
95
|
+
</td>
|
96
|
+
<td class='attr-name'>filename</td>
|
97
|
+
<td class='attr-desc'></td>
|
98
|
+
</tr>
|
99
|
+
<tr valign='top'>
|
100
|
+
<td class='attr-rw'>
|
101
|
+
[R]
|
102
|
+
</td>
|
103
|
+
<td class='attr-name'>line</td>
|
104
|
+
<td class='attr-desc'></td>
|
105
|
+
</tr>
|
106
|
+
</table>
|
107
|
+
|
108
|
+
<div class="sectiontitle">Public Class methods</div>
|
109
|
+
<div class="method">
|
110
|
+
<div class="title">
|
111
|
+
<a name="M000134"></a><b>new</b>(message, filename, line)
|
112
|
+
</div>
|
113
|
+
<div class="sourcecode">
|
114
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
|
115
|
+
<div id="M000134_source" class="dyn-source">
|
116
|
+
<pre>
|
117
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 33</span>
|
118
|
+
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">filename</span>, <span class="ruby-identifier">line</span>)
|
119
|
+
34: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>)
|
120
|
+
35: <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
|
121
|
+
36: <span class="ruby-ivar">@line</span> = <span class="ruby-identifier">line</span>
|
122
|
+
37: <span class="ruby-keyword kw">end</span>
|
123
|
+
</pre>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</body>
|
132
|
+
</html>
|