passenger 3.0.0.pre2 → 3.0.0.pre3
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/bin/passenger-status +1 -1
- data/build/packaging.rb +4 -7
- data/build/ruby_extension.rb +5 -5
- data/ext/common/Constants.h +1 -1
- data/ext/common/LoggingAgent/RemoteSender.h +3 -1
- data/ext/nginx/ngx_http_passenger_module.c +1 -1
- data/ext/{phusion_passenger → ruby}/extconf.rb +1 -1
- data/ext/{phusion_passenger/native_support.c → ruby/passenger_native_support.c} +1 -1
- data/lib/phusion_passenger.rb +5 -6
- data/lib/phusion_passenger/dependencies.rb +23 -0
- data/lib/phusion_passenger/native_support.rb +123 -65
- data/lib/phusion_passenger/packaging.rb +1 -1
- data/lib/phusion_passenger/platform_info/apache.rb +1 -1
- data/lib/phusion_passenger/platform_info/compiler.rb +25 -1
- data/lib/phusion_passenger/platform_info/ruby.rb +36 -5
- data/lib/phusion_passenger/standalone/runtime_installer.rb +5 -4
- data/lib/phusion_passenger/utils.rb +62 -1
- data/test/ruby/utils_spec.rb +62 -0
- data/test/support/test_helper.rb +2 -0
- metadata +6 -168
- data/doc/rdoc/classes/ConditionVariable.html +0 -215
- data/doc/rdoc/classes/Exception.html +0 -120
- data/doc/rdoc/classes/GC.html +0 -113
- data/doc/rdoc/classes/IO.html +0 -221
- data/doc/rdoc/classes/PhusionPassenger.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +0 -180
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +0 -647
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +0 -654
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +0 -619
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +0 -142
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html +0 -231
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html +0 -588
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html +0 -147
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html +0 -279
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html +0 -123
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html +0 -341
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html +0 -294
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html +0 -199
- data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +0 -155
- data/doc/rdoc/classes/PhusionPassenger/AppProcess.html +0 -367
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails.html +0 -95
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html +0 -351
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html +0 -200
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html +0 -410
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html +0 -156
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html +0 -115
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html +0 -202
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +0 -172
- data/doc/rdoc/classes/PhusionPassenger/DebugLogging.html +0 -273
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +0 -145
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +0 -162
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +0 -141
- data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +0 -673
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageClient.html +0 -415
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +0 -494
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport/FileSystemWatcher.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/Packaging.html +0 -129
- data/doc/rdoc/classes/PhusionPassenger/PlatformInfo.html +0 -1758
- data/doc/rdoc/classes/PhusionPassenger/Plugin.html +0 -237
- data/doc/rdoc/classes/PhusionPassenger/Rack.html +0 -91
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +0 -312
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +0 -218
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html +0 -114
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html +0 -256
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html +0 -139
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html +0 -118
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html +0 -135
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +0 -378
- data/doc/rdoc/classes/PhusionPassenger/Standalone.html +0 -111
- data/doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html +0 -252
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Command.html +0 -161
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html +0 -132
- data/doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html +0 -151
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Main.html +0 -189
- data/doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html +0 -177
- data/doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html +0 -341
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html +0 -203
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html +0 -156
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html +0 -168
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html +0 -86
- data/doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html +0 -135
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +0 -125
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +0 -1468
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html +0 -204
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html +0 -171
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html +0 -260
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +0 -169
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +0 -265
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +0 -120
- data/doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html +0 -561
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/WSGI.html +0 -89
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +0 -182
- data/doc/rdoc/classes/Process.html +0 -115
- data/doc/rdoc/classes/Signal.html +0 -139
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +0 -276
- data/doc/rdoc/files/README.html +0 -157
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +0 -92
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +0 -130
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +0 -135
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +0 -128
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/app_process_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html +0 -141
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html +0 -146
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +0 -147
- data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +0 -120
- data/doc/rdoc/files/lib/phusion_passenger/message_client_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/native_support_rb.html +0 -131
- data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html +0 -128
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/plugin_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/public_api_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +0 -137
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +0 -160
- data/doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html +0 -135
- data/doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html +0 -136
- data/doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html +0 -120
- data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +0 -100
- data/doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +0 -179
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +0 -132
- data/doc/rdoc/fr_class_index.html +0 -139
- data/doc/rdoc/fr_file_index.html +0 -109
- data/doc/rdoc/fr_method_index.html +0 -435
- data/doc/rdoc/index.html +0 -26
- data/doc/rdoc/rdoc-style.css +0 -187
@@ -1,368 +0,0 @@
|
|
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="#M000125">address</a></li>
|
84
|
-
<li><a href="#M000137">analytics</a></li>
|
85
|
-
<li><a href="#M000133">daemonize</a></li>
|
86
|
-
<li><a href="#M000138">debugger</a></li>
|
87
|
-
<li><a href="#M000135">domain_name</a></li>
|
88
|
-
<li><a href="#M000136">domain_names</a></li>
|
89
|
-
<li><a href="#M000128">env</a></li>
|
90
|
-
<li><a href="#M000127">environment</a></li>
|
91
|
-
<li><a href="#M000131">max_pool_size</a></li>
|
92
|
-
<li><a href="#M000132">min_instances</a></li>
|
93
|
-
<li><a href="#M000124">new</a></li>
|
94
|
-
<li><a href="#M000134">nginx_bin</a></li>
|
95
|
-
<li><a href="#M000126">port</a></li>
|
96
|
-
<li><a href="#M000130">rack_env</a></li>
|
97
|
-
<li><a href="#M000129">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="M000124"></a><b>new</b>(context, filename)
|
122
|
-
</div>
|
123
|
-
<div class="sourcecode">
|
124
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">show source</a> ]</p>
|
125
|
-
<div id="M000124_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="M000125"></a><b>address</b>(addr)
|
145
|
-
</div>
|
146
|
-
<div class="sourcecode">
|
147
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show source</a> ]</p>
|
148
|
-
<div id="M000125_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="M000137"></a><b>analytics</b>(value)
|
163
|
-
</div>
|
164
|
-
<div class="sourcecode">
|
165
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">show source</a> ]</p>
|
166
|
-
<div id="M000137_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="M000133"></a><b>daemonize</b>(on)
|
179
|
-
</div>
|
180
|
-
<div class="sourcecode">
|
181
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
|
182
|
-
<div id="M000133_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="M000138"></a><b>debugger</b>(value)
|
196
|
-
</div>
|
197
|
-
<div class="sourcecode">
|
198
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show source</a> ]</p>
|
199
|
-
<div id="M000138_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="M000135"></a><b>domain_name</b>(name)
|
212
|
-
</div>
|
213
|
-
<div class="sourcecode">
|
214
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show source</a> ]</p>
|
215
|
-
<div id="M000135_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="M000136"></a><b>domain_names</b>(*names)
|
229
|
-
</div>
|
230
|
-
<div class="sourcecode">
|
231
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show source</a> ]</p>
|
232
|
-
<div id="M000136_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="M000128"></a><b>env</b>(name)
|
246
|
-
</div>
|
247
|
-
<div class="description">
|
248
|
-
<p>
|
249
|
-
Alias for <a href="ConfigFile.html#M000127">#environment</a>
|
250
|
-
</p>
|
251
|
-
</div>
|
252
|
-
</div>
|
253
|
-
<div class="method">
|
254
|
-
<div class="title">
|
255
|
-
<a name="M000127"></a><b>environment</b>(name)
|
256
|
-
</div>
|
257
|
-
<div class="aka">
|
258
|
-
This method is also aliased as
|
259
|
-
<a href="ConfigFile.html#M000128">env</a>
|
260
|
-
<a href="ConfigFile.html#M000129">rails_env</a>
|
261
|
-
<a href="ConfigFile.html#M000130">rack_env</a>
|
262
|
-
</div>
|
263
|
-
<div class="sourcecode">
|
264
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">show source</a> ]</p>
|
265
|
-
<div id="M000127_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="M000131"></a><b>max_pool_size</b>(number)
|
278
|
-
</div>
|
279
|
-
<div class="sourcecode">
|
280
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
|
281
|
-
<div id="M000131_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="M000132"></a><b>min_instances</b>(number)
|
295
|
-
</div>
|
296
|
-
<div class="sourcecode">
|
297
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
|
298
|
-
<div id="M000132_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="M000134"></a><b>nginx_bin</b>(filename)
|
311
|
-
</div>
|
312
|
-
<div class="sourcecode">
|
313
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
|
314
|
-
<div id="M000134_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="M000126"></a><b>port</b>(number)
|
328
|
-
</div>
|
329
|
-
<div class="sourcecode">
|
330
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
|
331
|
-
<div id="M000126_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="M000130"></a><b>rack_env</b>(name)
|
346
|
-
</div>
|
347
|
-
<div class="description">
|
348
|
-
<p>
|
349
|
-
Alias for <a href="ConfigFile.html#M000127">#environment</a>
|
350
|
-
</p>
|
351
|
-
</div>
|
352
|
-
</div>
|
353
|
-
<div class="method">
|
354
|
-
<div class="title">
|
355
|
-
<a name="M000129"></a><b>rails_env</b>(name)
|
356
|
-
</div>
|
357
|
-
<div class="description">
|
358
|
-
<p>
|
359
|
-
Alias for <a href="ConfigFile.html#M000127">#environment</a>
|
360
|
-
</p>
|
361
|
-
</div>
|
362
|
-
</div>
|
363
|
-
</div>
|
364
|
-
|
365
|
-
</div>
|
366
|
-
|
367
|
-
</body>
|
368
|
-
</html>
|
@@ -1,132 +0,0 @@
|
|
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="#M000139">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="M000139"></a><b>new</b>(message, filename, line)
|
112
|
-
</div>
|
113
|
-
<div class="sourcecode">
|
114
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
|
115
|
-
<div id="M000139_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>
|