passenger 2.1.2 → 2.1.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/Rakefile +7 -5
- data/doc/Architectural overview.html +729 -1
- data/doc/Architectural overview.txt +0 -5
- data/doc/Security of user switching support.html +605 -1
- data/doc/Users guide.html +110 -106
- data/doc/Users guide.txt +49 -0
- data/doc/cxxapi/ApplicationPoolServer_8h-source.html +400 -372
- data/doc/cxxapi/ApplicationPool_8h-source.html +1 -1
- data/doc/cxxapi/Application_8h-source.html +1 -1
- data/doc/cxxapi/Bucket_8h-source.html +1 -1
- data/doc/cxxapi/CachedFileStat_8h-source.html +56 -65
- data/doc/cxxapi/Configuration_8h-source.html +40 -32
- data/doc/cxxapi/DirectoryMapper_8h-source.html +1 -1
- data/doc/cxxapi/DummySpawnManager_8h-source.html +1 -1
- data/doc/cxxapi/Exceptions_8h-source.html +1 -1
- data/doc/cxxapi/FileChecker_8h-source.html +29 -30
- data/doc/cxxapi/Hooks_8h-source.html +1 -1
- data/doc/cxxapi/Logging_8h-source.html +1 -1
- data/doc/cxxapi/MessageChannel_8h-source.html +1 -1
- data/doc/cxxapi/PoolOptions_8h-source.html +1 -1
- data/doc/cxxapi/SpawnManager_8h-source.html +225 -219
- data/doc/cxxapi/StandardApplicationPool_8h-source.html +451 -445
- data/doc/cxxapi/SystemTime_8h-source.html +1 -1
- data/doc/cxxapi/Utils_8h-source.html +201 -140
- data/doc/cxxapi/annotated.html +2 -2
- data/doc/cxxapi/classClient-members.html +1 -1
- data/doc/cxxapi/classClient.html +1 -1
- data/doc/cxxapi/classHooks-members.html +1 -1
- data/doc/cxxapi/classHooks.html +1 -1
- data/doc/cxxapi/classPassenger_1_1Application-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1Application.html +1 -1
- data/doc/cxxapi/classPassenger_1_1ApplicationPool-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1ApplicationPool.html +1 -1
- data/doc/cxxapi/classPassenger_1_1ApplicationPoolServer-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1ApplicationPoolServer.html +1 -1
- data/doc/cxxapi/classPassenger_1_1ApplicationPool__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1Application_1_1Session-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1Application_1_1Session.html +1 -1
- data/doc/cxxapi/{classPassenger_1_1TempFile-members.html → classPassenger_1_1BufferedUpload-members.html} +5 -5
- data/doc/cxxapi/{classPassenger_1_1TempFile.html → classPassenger_1_1BufferedUpload.html} +33 -43
- data/doc/cxxapi/classPassenger_1_1BusyException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1BusyException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1ConfigurationException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1ConfigurationException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DummySpawnManager-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1DummySpawnManager.html +1 -1
- data/doc/cxxapi/classPassenger_1_1FileChecker-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1FileChecker.html +2 -2
- data/doc/cxxapi/classPassenger_1_1FileNotFoundException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1FileNotFoundException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1FileNotFoundException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1FileSystemException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1FileSystemException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1FileSystemException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1IOException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1IOException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1IOException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1MessageChannel-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1MessageChannel.html +1 -1
- data/doc/cxxapi/classPassenger_1_1RuntimeException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1RuntimeException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1SpawnException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1SpawnException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1SpawnManager-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1SpawnManager.html +1 -1
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool.html +1 -1
- data/doc/cxxapi/classPassenger_1_1StandardApplicationPool__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1SystemException-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1SystemException.html +1 -1
- data/doc/cxxapi/classPassenger_1_1SystemException__inherit__graph.png +0 -0
- data/doc/cxxapi/classPassenger_1_1SystemTime-members.html +1 -1
- data/doc/cxxapi/classPassenger_1_1SystemTime.html +1 -1
- data/doc/cxxapi/definitions_8h-source.html +1 -1
- data/doc/cxxapi/files.html +1 -1
- data/doc/cxxapi/functions.html +12 -11
- data/doc/cxxapi/functions_func.html +9 -7
- data/doc/cxxapi/functions_type.html +1 -1
- data/doc/cxxapi/functions_vars.html +2 -4
- data/doc/cxxapi/graph_legend.html +1 -1
- data/doc/cxxapi/graph_legend.png +0 -0
- data/doc/cxxapi/group__Configuration.html +3 -3
- data/doc/cxxapi/group__Configuration.png +0 -0
- data/doc/cxxapi/group__Core.html +1 -1
- data/doc/cxxapi/group__Core.png +0 -0
- data/doc/cxxapi/group__Exceptions.html +1 -1
- data/doc/cxxapi/group__Hooks.html +1 -1
- data/doc/cxxapi/group__Hooks.png +0 -0
- data/doc/cxxapi/group__Support.html +33 -16
- data/doc/cxxapi/hierarchy.html +2 -2
- data/doc/cxxapi/inherit__graph__0.png +0 -0
- data/doc/cxxapi/inherit__graph__1.png +0 -0
- data/doc/cxxapi/inherit__graph__10.map +1 -1
- data/doc/cxxapi/inherit__graph__10.md5 +1 -1
- data/doc/cxxapi/inherit__graph__10.png +0 -0
- data/doc/cxxapi/inherit__graph__11.map +1 -1
- data/doc/cxxapi/inherit__graph__11.md5 +1 -1
- data/doc/cxxapi/inherit__graph__11.png +0 -0
- data/doc/cxxapi/inherit__graph__12.map +1 -2
- data/doc/cxxapi/inherit__graph__12.md5 +1 -1
- data/doc/cxxapi/inherit__graph__12.png +0 -0
- data/doc/cxxapi/inherit__graph__13.map +2 -1
- data/doc/cxxapi/inherit__graph__13.md5 +1 -1
- data/doc/cxxapi/inherit__graph__13.png +0 -0
- data/doc/cxxapi/inherit__graph__14.map +1 -1
- data/doc/cxxapi/inherit__graph__14.md5 +1 -1
- data/doc/cxxapi/inherit__graph__14.png +0 -0
- data/doc/cxxapi/inherit__graph__15.map +1 -1
- data/doc/cxxapi/inherit__graph__15.md5 +1 -1
- data/doc/cxxapi/inherit__graph__15.png +0 -0
- data/doc/cxxapi/inherit__graph__16.map +1 -1
- data/doc/cxxapi/inherit__graph__16.md5 +1 -1
- data/doc/cxxapi/inherit__graph__16.png +0 -0
- data/doc/cxxapi/inherit__graph__17.map +1 -1
- data/doc/cxxapi/inherit__graph__17.md5 +1 -1
- data/doc/cxxapi/inherit__graph__17.png +0 -0
- data/doc/cxxapi/inherit__graph__18.map +1 -1
- data/doc/cxxapi/inherit__graph__18.md5 +1 -1
- data/doc/cxxapi/inherit__graph__18.png +0 -0
- data/doc/cxxapi/inherit__graph__19.map +1 -2
- data/doc/cxxapi/inherit__graph__19.md5 +1 -1
- data/doc/cxxapi/inherit__graph__19.png +0 -0
- data/doc/cxxapi/inherit__graph__2.png +0 -0
- data/doc/cxxapi/inherit__graph__20.map +2 -1
- data/doc/cxxapi/inherit__graph__20.md5 +1 -1
- data/doc/cxxapi/inherit__graph__20.png +0 -0
- data/doc/cxxapi/inherit__graph__21.map +1 -1
- data/doc/cxxapi/inherit__graph__21.md5 +1 -1
- data/doc/cxxapi/inherit__graph__21.png +0 -0
- data/doc/cxxapi/inherit__graph__3.png +0 -0
- data/doc/cxxapi/inherit__graph__4.png +0 -0
- data/doc/cxxapi/inherit__graph__5.png +0 -0
- data/doc/cxxapi/inherit__graph__6.png +0 -0
- data/doc/cxxapi/inherit__graph__7.map +1 -1
- data/doc/cxxapi/inherit__graph__7.md5 +1 -1
- data/doc/cxxapi/inherit__graph__7.png +0 -0
- data/doc/cxxapi/inherit__graph__8.map +1 -1
- data/doc/cxxapi/inherit__graph__8.md5 +1 -1
- data/doc/cxxapi/inherit__graph__8.png +0 -0
- data/doc/cxxapi/inherit__graph__9.map +1 -1
- data/doc/cxxapi/inherit__graph__9.md5 +1 -1
- data/doc/cxxapi/inherit__graph__9.png +0 -0
- data/doc/cxxapi/inherits.html +18 -18
- data/doc/cxxapi/main.html +1 -1
- data/doc/cxxapi/modules.html +1 -1
- data/doc/cxxapi/structPassenger_1_1AnythingToString-members.html +1 -1
- data/doc/cxxapi/structPassenger_1_1AnythingToString.html +1 -1
- data/doc/cxxapi/structPassenger_1_1AnythingToString_3_01vector_3_01string_01_4_01_4-members.html +1 -1
- data/doc/cxxapi/structPassenger_1_1AnythingToString_3_01vector_3_01string_01_4_01_4.html +1 -1
- data/doc/cxxapi/structPassenger_1_1PoolOptions-members.html +1 -1
- data/doc/cxxapi/structPassenger_1_1PoolOptions.html +1 -1
- data/doc/cxxapi/tree.html +4 -4
- data/doc/rdoc/classes/ConditionVariable.html +58 -58
- data/doc/rdoc/classes/Exception.html +11 -11
- data/doc/rdoc/classes/GC.html +4 -4
- data/doc/rdoc/classes/IO.html +14 -14
- data/doc/rdoc/classes/PhusionPassenger.html +11 -11
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +1 -1
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ControlProcess.html +40 -39
- data/doc/rdoc/classes/PhusionPassenger/Application.html +14 -14
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +12 -12
- data/doc/rdoc/classes/PhusionPassenger/Railz.html +1 -1
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +15 -8
- data/doc/rdoc/classes/PlatformInfo.html +257 -253
- data/doc/rdoc/classes/RakeExtensions.html +2 -2
- data/doc/rdoc/classes/Signal.html +26 -26
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
- data/doc/rdoc/files/README.html +1 -1
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/events_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/railz/cgi_fixed_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/railz/request_handler_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +1 -1
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +9 -9
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +1 -1
- data/doc/rdoc/files/{lib → misc}/rake/extensions_rb.html +2 -2
- data/doc/rdoc/fr_file_index.html +1 -1
- data/doc/rdoc/fr_method_index.html +22 -22
- data/ext/apache2/ApplicationPoolServer.h +43 -15
- data/ext/apache2/ApplicationPoolServerExecutable.cpp +27 -52
- data/ext/apache2/CachedFileStat.h +7 -16
- data/ext/apache2/Configuration.h +9 -1
- data/ext/apache2/FileChecker.h +4 -5
- data/ext/apache2/Hooks.cpp +20 -22
- data/ext/apache2/SpawnManager.h +6 -0
- data/ext/apache2/StandardApplicationPool.h +6 -0
- data/ext/apache2/Utils.cpp +174 -16
- data/ext/apache2/Utils.h +99 -38
- data/ext/boost/cstdint.hpp +2 -1
- data/ext/oxt/system_calls.cpp +20 -2
- data/ext/oxt/system_calls.hpp +2 -0
- data/lib/phusion_passenger/abstract_request_handler.rb +5 -1
- data/lib/phusion_passenger/admin_tools.rb +1 -1
- data/lib/phusion_passenger/admin_tools/control_process.rb +2 -1
- data/lib/phusion_passenger/dependencies.rb +7 -4
- data/lib/phusion_passenger/platform_info.rb +8 -2
- data/lib/phusion_passenger/rack/application_spawner.rb +1 -1
- data/lib/phusion_passenger/templates/version_not_found.html.erb +9 -0
- data/lib/phusion_passenger/utils.rb +13 -6
- data/lib/phusion_passenger/wsgi/application_spawner.rb +1 -1
- data/{lib → misc}/rake/cplusplus.rb +0 -0
- data/{lib → misc}/rake/extensions.rb +0 -0
- data/{lib → misc}/rake/gempackagetask.rb +0 -0
- data/{lib → misc}/rake/packagetask.rb +0 -0
- data/{lib → misc}/rake/rdoctask.rb +0 -0
- data/misc/render_error_pages.rb +6 -5
- data/test/CxxTestMain.cpp +109 -7
- data/test/UtilsTest.cpp +61 -51
- data/test/config.yml.example +6 -2
- data/test/integration_tests.rb +4 -0
- data/test/ruby/abstract_request_handler_spec.rb +9 -3
- data/test/ruby/rack/application_spawner_spec.rb +3 -2
- data/test/ruby/rails/application_spawner_spec.rb +15 -4
- data/test/ruby/rails/framework_spawner_spec.rb +4 -2
- data/test/ruby/rails/spawner_error_handling_spec.rb +4 -4
- data/test/ruby/spawn_manager_spec.rb +22 -9
- data/test/ruby/utils_spec.rb +18 -12
- data/test/ruby/wsgi/application_spawner_spec.rb +16 -7
- data/test/stub/apache2/httpd.conf.erb +1 -0
- data/test/stub/wsgi/passenger_wsgi.pyc +0 -0
- metadata +1064 -1090
- data/doc/Users guide Apache.html +0 -3127
- data/doc/Users guide Nginx.html +0 -1458
@@ -97,17 +97,17 @@ Object
|
|
97
97
|
<p class="source-link">[ <a href="javascript:toggleSource('M000008_source')" id="l_M000008_source">show source</a> ]</p>
|
98
98
|
<div id="M000008_source" class="dyn-source">
|
99
99
|
<pre>
|
100
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
100
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 360</span>
|
101
|
+
360: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backtrace_string</span>(<span class="ruby-identifier">current_location</span> = <span class="ruby-keyword kw">nil</span>)
|
102
|
+
361: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current_location</span>.<span class="ruby-identifier">nil?</span>
|
103
|
+
362: <span class="ruby-identifier">location</span> = <span class="ruby-keyword kw">nil</span>
|
104
|
+
363: <span class="ruby-keyword kw">else</span>
|
105
|
+
364: <span class="ruby-identifier">location</span> = <span class="ruby-node">"in #{current_location} "</span>
|
106
|
+
365: <span class="ruby-keyword kw">end</span>
|
107
|
+
366: <span class="ruby-keyword kw">return</span> <span class="ruby-node">"*** Exception #{self.class} #{location}"</span> <span class="ruby-operator"><<</span>
|
108
|
+
367: <span class="ruby-node">"(#{self}) (process #{$$}):\n"</span> <span class="ruby-operator"><<</span>
|
109
|
+
368: <span class="ruby-value str">"\tfrom "</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n\tfrom "</span>)
|
110
|
+
369: <span class="ruby-keyword kw">end</span>
|
111
111
|
</pre>
|
112
112
|
</div>
|
113
113
|
</div>
|
data/doc/rdoc/classes/GC.html
CHANGED
@@ -97,10 +97,10 @@ copy-on-write friendly.
|
|
97
97
|
<p class="source-link">[ <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show source</a> ]</p>
|
98
98
|
<div id="M000033_source" class="dyn-source">
|
99
99
|
<pre>
|
100
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line
|
101
|
-
|
102
|
-
|
103
|
-
|
100
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 513</span>
|
101
|
+
513: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">copy_on_write_friendly?</span>
|
102
|
+
514: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
103
|
+
515: <span class="ruby-keyword kw">end</span>
|
104
104
|
</pre>
|
105
105
|
</div>
|
106
106
|
</div>
|
data/doc/rdoc/classes/IO.html
CHANGED
@@ -99,12 +99,12 @@ Object
|
|
99
99
|
<p class="source-link">[ <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show source</a> ]</p>
|
100
100
|
<div id="M000007_source" class="dyn-source">
|
101
101
|
<pre>
|
102
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
102
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 457</span>
|
103
|
+
457: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close_on_exec!</span>
|
104
|
+
458: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">Fcntl</span><span class="ruby-operator">::</span><span class="ruby-constant">F_SETFD</span>)
|
105
|
+
459: <span class="ruby-identifier">fcntl</span>(<span class="ruby-constant">Fcntl</span><span class="ruby-operator">::</span><span class="ruby-constant">F_SETFD</span>, <span class="ruby-constant">Fcntl</span><span class="ruby-operator">::</span><span class="ruby-constant">FD_CLOEXEC</span>)
|
106
|
+
460: <span class="ruby-keyword kw">end</span>
|
107
|
+
461: <span class="ruby-keyword kw">end</span>
|
108
108
|
</pre>
|
109
109
|
</div>
|
110
110
|
</div>
|
@@ -127,10 +127,10 @@ Raises SystemCallError if something went wrong.
|
|
127
127
|
<p class="source-link">[ <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show source</a> ]</p>
|
128
128
|
<div id="M000006_source" class="dyn-source">
|
129
129
|
<pre>
|
130
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line
|
131
|
-
|
132
|
-
|
133
|
-
|
130
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 452</span>
|
131
|
+
452: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_io</span>
|
132
|
+
453: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">IO</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">PhusionPassenger</span><span class="ruby-operator">::</span><span class="ruby-constant">NativeSupport</span>.<span class="ruby-identifier">recv_fd</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fileno</span>))
|
133
|
+
454: <span class="ruby-keyword kw">end</span>
|
134
134
|
</pre>
|
135
135
|
</div>
|
136
136
|
</div>
|
@@ -153,10 +153,10 @@ Raises SystemCallError if something went wrong.
|
|
153
153
|
<p class="source-link">[ <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show source</a> ]</p>
|
154
154
|
<div id="M000005_source" class="dyn-source">
|
155
155
|
<pre>
|
156
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line
|
157
|
-
|
158
|
-
|
159
|
-
|
156
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 444</span>
|
157
|
+
444: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_io</span>(<span class="ruby-identifier">io</span>)
|
158
|
+
445: <span class="ruby-constant">PhusionPassenger</span><span class="ruby-operator">::</span><span class="ruby-constant">NativeSupport</span>.<span class="ruby-identifier">send_fd</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fileno</span>, <span class="ruby-identifier">io</span>.<span class="ruby-identifier">fileno</span>)
|
159
|
+
446: <span class="ruby-keyword kw">end</span>
|
160
160
|
</pre>
|
161
161
|
</div>
|
162
162
|
</div>
|
@@ -57,28 +57,28 @@
|
|
57
57
|
<tr valign="top">
|
58
58
|
<td>In:</td>
|
59
59
|
<td>
|
60
|
-
<a href="../files/lib/phusion_passenger/dependencies_rb.html">lib/phusion_passenger/dependencies.rb</a>
|
61
|
-
<a href="../files/lib/phusion_passenger/html_template_rb.html">lib/phusion_passenger/html_template.rb</a>
|
62
|
-
<a href="../files/lib/phusion_passenger/admin_tools_rb.html">lib/phusion_passenger/admin_tools.rb</a>
|
63
|
-
<a href="../files/lib/phusion_passenger/spawn_manager_rb.html">lib/phusion_passenger/spawn_manager.rb</a>
|
64
|
-
<a href="../files/lib/phusion_passenger/abstract_request_handler_rb.html">lib/phusion_passenger/abstract_request_handler.rb</a>
|
65
60
|
<a href="../files/lib/phusion_passenger/abstract_server_rb.html">lib/phusion_passenger/abstract_server.rb</a>
|
61
|
+
<a href="../files/lib/phusion_passenger/exceptions_rb.html">lib/phusion_passenger/exceptions.rb</a>
|
62
|
+
<a href="../files/lib/phusion_passenger/dependencies_rb.html">lib/phusion_passenger/dependencies.rb</a>
|
66
63
|
<a href="../files/lib/phusion_passenger/abstract_server_collection_rb.html">lib/phusion_passenger/abstract_server_collection.rb</a>
|
64
|
+
<a href="../files/lib/phusion_passenger/console_text_template_rb.html">lib/phusion_passenger/console_text_template.rb</a>
|
65
|
+
<a href="../files/lib/phusion_passenger/application_rb.html">lib/phusion_passenger/application.rb</a>
|
67
66
|
<a href="../files/lib/phusion_passenger/message_channel_rb.html">lib/phusion_passenger/message_channel.rb</a>
|
67
|
+
<a href="../files/lib/phusion_passenger/constants_rb.html">lib/phusion_passenger/constants.rb</a>
|
68
|
+
<a href="../files/lib/phusion_passenger/spawn_manager_rb.html">lib/phusion_passenger/spawn_manager.rb</a>
|
68
69
|
<a href="../files/lib/phusion_passenger/utils_rb.html">lib/phusion_passenger/utils.rb</a>
|
69
|
-
<a href="../files/lib/phusion_passenger/exceptions_rb.html">lib/phusion_passenger/exceptions.rb</a>
|
70
70
|
<a href="../files/lib/phusion_passenger/events_rb.html">lib/phusion_passenger/events.rb</a>
|
71
|
-
<a href="../files/lib/phusion_passenger/
|
72
|
-
<a href="../files/lib/phusion_passenger/
|
73
|
-
<a href="../files/lib/phusion_passenger/
|
74
|
-
<a href="../files/lib/phusion_passenger/admin_tools/control_process_rb.html">lib/phusion_passenger/admin_tools/control_process.rb</a>
|
71
|
+
<a href="../files/lib/phusion_passenger/admin_tools_rb.html">lib/phusion_passenger/admin_tools.rb</a>
|
72
|
+
<a href="../files/lib/phusion_passenger/html_template_rb.html">lib/phusion_passenger/html_template.rb</a>
|
73
|
+
<a href="../files/lib/phusion_passenger/abstract_request_handler_rb.html">lib/phusion_passenger/abstract_request_handler.rb</a>
|
75
74
|
<a href="../files/lib/phusion_passenger/wsgi/application_spawner_rb.html">lib/phusion_passenger/wsgi/application_spawner.rb</a>
|
75
|
+
<a href="../files/lib/phusion_passenger/admin_tools/control_process_rb.html">lib/phusion_passenger/admin_tools/control_process.rb</a>
|
76
76
|
<a href="../files/lib/phusion_passenger/rack/application_spawner_rb.html">lib/phusion_passenger/rack/application_spawner.rb</a>
|
77
77
|
<a href="../files/lib/phusion_passenger/rack/request_handler_rb.html">lib/phusion_passenger/rack/request_handler.rb</a>
|
78
78
|
<a href="../files/lib/phusion_passenger/railz/application_spawner_rb.html">lib/phusion_passenger/railz/application_spawner.rb</a>
|
79
|
-
<a href="../files/lib/phusion_passenger/railz/framework_spawner_rb.html">lib/phusion_passenger/railz/framework_spawner.rb</a>
|
80
79
|
<a href="../files/lib/phusion_passenger/railz/request_handler_rb.html">lib/phusion_passenger/railz/request_handler.rb</a>
|
81
80
|
<a href="../files/lib/phusion_passenger/railz/cgi_fixed_rb.html">lib/phusion_passenger/railz/cgi_fixed.rb</a>
|
81
|
+
<a href="../files/lib/phusion_passenger/railz/framework_spawner_rb.html">lib/phusion_passenger/railz/framework_spawner.rb</a>
|
82
82
|
<a href="../files/ext/phusion_passenger/native_support_c.html">ext/phusion_passenger/native_support.c</a>
|
83
83
|
</td>
|
84
84
|
</tr>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
<pre>
|
122
122
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools.rb, line 4</span>
|
123
123
|
4: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tmpdir</span>
|
124
|
-
5: [<span class="ruby-value str">"
|
124
|
+
5: [<span class="ruby-value str">"PASSENGER_TEMP_DIR"</span>, <span class="ruby-value str">"PASSENGER_TMPDIR"</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
125
125
|
6: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ENV</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>) <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-constant">ENV</span>[<span class="ruby-identifier">name</span>].<span class="ruby-identifier">empty?</span>
|
126
126
|
7: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-identifier">name</span>]
|
127
127
|
8: <span class="ruby-keyword kw">end</span>
|
@@ -135,12 +135,13 @@ Object
|
|
135
135
|
27: <span class="ruby-comment cmt"># Stale Passenger temp folder. Clean it up if instructed.</span>
|
136
136
|
28: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">clean_stale</span>
|
137
137
|
29: <span class="ruby-identifier">puts</span> <span class="ruby-node">"*** Cleaning stale folder #{dir}"</span>
|
138
|
-
30: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">
|
139
|
-
31:
|
140
|
-
32:
|
141
|
-
33:
|
142
|
-
34: <span class="ruby-keyword kw">
|
143
|
-
35:
|
138
|
+
30: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">chmod_R</span>(<span class="ruby-value">0700</span>, <span class="ruby-identifier">dir</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">dir</span>)
|
139
|
+
31: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span>(<span class="ruby-identifier">dir</span>)
|
140
|
+
32: <span class="ruby-keyword kw">end</span>
|
141
|
+
33: <span class="ruby-keyword kw">end</span>
|
142
|
+
34: <span class="ruby-keyword kw">end</span>
|
143
|
+
35: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">results</span>
|
144
|
+
36: <span class="ruby-keyword kw">end</span>
|
144
145
|
</pre>
|
145
146
|
</div>
|
146
147
|
</div>
|
@@ -153,18 +154,18 @@ Object
|
|
153
154
|
<p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p>
|
154
155
|
<div id="M000066_source" class="dyn-source">
|
155
156
|
<pre>
|
156
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
157
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line 38</span>
|
158
|
+
38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">pid</span>, <span class="ruby-identifier">path</span> = <span class="ruby-keyword kw">nil</span>)
|
159
|
+
39: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">AdminTools</span>.<span class="ruby-identifier">process_is_alive?</span>(<span class="ruby-identifier">pid</span>)
|
160
|
+
40: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"There is no control process with PID #{pid}."</span>
|
161
|
+
41: <span class="ruby-keyword kw">end</span>
|
162
|
+
42: <span class="ruby-ivar">@pid</span> = <span class="ruby-identifier">pid</span>
|
163
|
+
43: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span>
|
164
|
+
44: <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span>
|
165
|
+
45: <span class="ruby-keyword kw">else</span>
|
166
|
+
46: <span class="ruby-ivar">@path</span> = <span class="ruby-node">"#{AdminTools.tmpdir}/passenger.#{pid}"</span>
|
167
|
+
47: <span class="ruby-keyword kw">end</span>
|
168
|
+
48: <span class="ruby-keyword kw">end</span>
|
168
169
|
</pre>
|
169
170
|
</div>
|
170
171
|
</div>
|
@@ -178,11 +179,11 @@ Object
|
|
178
179
|
<p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p>
|
179
180
|
<div id="M000069_source" class="dyn-source">
|
180
181
|
<pre>
|
181
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
182
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line 60</span>
|
183
|
+
60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">domains</span>
|
184
|
+
61: <span class="ruby-identifier">reload</span>
|
185
|
+
62: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@domains</span>
|
186
|
+
63: <span class="ruby-keyword kw">end</span>
|
186
187
|
</pre>
|
187
188
|
</div>
|
188
189
|
</div>
|
@@ -195,12 +196,12 @@ Object
|
|
195
196
|
<p class="source-link">[ <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show source</a> ]</p>
|
196
197
|
<div id="M000070_source" class="dyn-source">
|
197
198
|
<pre>
|
198
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
199
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line 65</span>
|
200
|
+
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instances</span>
|
201
|
+
66: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">domains</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">domain</span><span class="ruby-operator">|</span>
|
202
|
+
67: <span class="ruby-identifier">domain</span>[<span class="ruby-identifier">:instances</span>]
|
203
|
+
68: <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">flatten</span>
|
204
|
+
69: <span class="ruby-keyword kw">end</span>
|
204
205
|
</pre>
|
205
206
|
</div>
|
206
207
|
</div>
|
@@ -213,11 +214,11 @@ Object
|
|
213
214
|
<p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p>
|
214
215
|
<div id="M000067_source" class="dyn-source">
|
215
216
|
<pre>
|
216
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
217
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line 50</span>
|
218
|
+
50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
|
219
|
+
51: <span class="ruby-identifier">reload</span>
|
220
|
+
52: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@status</span>
|
221
|
+
53: <span class="ruby-keyword kw">end</span>
|
221
222
|
</pre>
|
222
223
|
</div>
|
223
224
|
</div>
|
@@ -230,11 +231,11 @@ Object
|
|
230
231
|
<p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show source</a> ]</p>
|
231
232
|
<div id="M000068_source" class="dyn-source">
|
232
233
|
<pre>
|
233
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
234
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/admin_tools/control_process.rb, line 55</span>
|
235
|
+
55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xml</span>
|
236
|
+
56: <span class="ruby-identifier">reload</span>
|
237
|
+
57: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@xml</span>
|
238
|
+
58: <span class="ruby-keyword kw">end</span>
|
238
239
|
</pre>
|
239
240
|
</div>
|
240
241
|
</div>
|
@@ -84,9 +84,9 @@ Represents a single application instance.
|
|
84
84
|
|
85
85
|
<div class="sectiontitle">Methods</div>
|
86
86
|
<ul>
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
87
|
+
<li><a href="#M000109">close</a></li>
|
88
|
+
<li><a href="#M000107">detect_framework_version</a></li>
|
89
|
+
<li><a href="#M000108">new</a></li>
|
90
90
|
</ul>
|
91
91
|
|
92
92
|
|
@@ -113,7 +113,7 @@ The root directory of this application, i.e. the directory that contains
|
|
113
113
|
<td class='attr-name'>listen_socket_name</td>
|
114
114
|
<td class='attr-desc'>
|
115
115
|
The name of the socket on which the application instance will accept <a
|
116
|
-
href="Application.html#
|
116
|
+
href="Application.html#M000108">new</a> connections. See
|
117
117
|
#listen_socket_type on how one should interpret this value.
|
118
118
|
|
119
119
|
</td>
|
@@ -156,7 +156,7 @@ The process ID of this application instance.
|
|
156
156
|
<div class="sectiontitle">Public Class methods</div>
|
157
157
|
<div class="method">
|
158
158
|
<div class="title">
|
159
|
-
<a name="
|
159
|
+
<a name="M000107"></a><b>detect_framework_version</b>(app_root)
|
160
160
|
</div>
|
161
161
|
<div class="description">
|
162
162
|
<ul>
|
@@ -176,8 +176,8 @@ Rails version is not installed.
|
|
176
176
|
</p>
|
177
177
|
</div>
|
178
178
|
<div class="sourcecode">
|
179
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
180
|
-
<div id="
|
179
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
|
180
|
+
<div id="M000107_source" class="dyn-source">
|
181
181
|
<pre>
|
182
182
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/application.rb, line 50</span>
|
183
183
|
50: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">detect_framework_version</span>(<span class="ruby-identifier">app_root</span>)
|
@@ -223,18 +223,18 @@ Rails version is not installed.
|
|
223
223
|
</div>
|
224
224
|
<div class="method">
|
225
225
|
<div class="title">
|
226
|
-
<a name="
|
226
|
+
<a name="M000108"></a><b>new</b>(app_root, pid, listen_socket_name, listen_socket_type, owner_pipe)
|
227
227
|
</div>
|
228
228
|
<div class="description">
|
229
229
|
<p>
|
230
|
-
Creates a <a href="Application.html#
|
230
|
+
Creates a <a href="Application.html#M000108">new</a> instance of <a
|
231
231
|
href="Application.html">Application</a>. The parameters correspond with the
|
232
232
|
attributes of the same names. No exceptions will be thrown.
|
233
233
|
</p>
|
234
234
|
</div>
|
235
235
|
<div class="sourcecode">
|
236
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
237
|
-
<div id="
|
236
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
|
237
|
+
<div id="M000108_source" class="dyn-source">
|
238
238
|
<pre>
|
239
239
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/application.rb, line 90</span>
|
240
240
|
90: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">app_root</span>, <span class="ruby-identifier">pid</span>, <span class="ruby-identifier">listen_socket_name</span>, <span class="ruby-identifier">listen_socket_type</span>, <span class="ruby-identifier">owner_pipe</span>)
|
@@ -251,7 +251,7 @@ attributes of the same names. No exceptions will be thrown.
|
|
251
251
|
<div class="sectiontitle">Public Instance methods</div>
|
252
252
|
<div class="method">
|
253
253
|
<div class="title">
|
254
|
-
<a name="
|
254
|
+
<a name="M000109"></a><b>close</b>()
|
255
255
|
</div>
|
256
256
|
<div class="description">
|
257
257
|
<p>
|
@@ -264,8 +264,8 @@ See also AbstractRequestHandler#owner_pipe.
|
|
264
264
|
</p>
|
265
265
|
</div>
|
266
266
|
<div class="sourcecode">
|
267
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
268
|
-
<div id="
|
267
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p>
|
268
|
+
<div id="M000109_source" class="dyn-source">
|
269
269
|
<pre>
|
270
270
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/application.rb, line 103</span>
|
271
271
|
103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
@@ -84,9 +84,9 @@ A convenience utility class for rendering our error pages.
|
|
84
84
|
|
85
85
|
<div class="sectiontitle">Methods</div>
|
86
86
|
<ul>
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
87
|
+
<li><a href="#M000105">[]=</a></li>
|
88
|
+
<li><a href="#M000104">new</a></li>
|
89
|
+
<li><a href="#M000106">result</a></li>
|
90
90
|
</ul>
|
91
91
|
|
92
92
|
<div class="sectiontitle">Included Modules</div>
|
@@ -114,11 +114,11 @@ A convenience utility class for rendering our error pages.
|
|
114
114
|
<div class="sectiontitle">Public Class methods</div>
|
115
115
|
<div class="method">
|
116
116
|
<div class="title">
|
117
|
-
<a name="
|
117
|
+
<a name="M000104"></a><b>new</b>(template_name, options = {})
|
118
118
|
</div>
|
119
119
|
<div class="sourcecode">
|
120
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
121
|
-
<div id="
|
120
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
|
121
|
+
<div id="M000104_source" class="dyn-source">
|
122
122
|
<pre>
|
123
123
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/html_template.rb, line 28</span>
|
124
124
|
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">template_name</span>, <span class="ruby-identifier">options</span> = {})
|
@@ -136,11 +136,11 @@ A convenience utility class for rendering our error pages.
|
|
136
136
|
<div class="sectiontitle">Public Instance methods</div>
|
137
137
|
<div class="method">
|
138
138
|
<div class="title">
|
139
|
-
<a name="
|
139
|
+
<a name="M000105"></a><b>[]=</b>(name, value)
|
140
140
|
</div>
|
141
141
|
<div class="sourcecode">
|
142
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
143
|
-
<div id="
|
142
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
|
143
|
+
<div id="M000105_source" class="dyn-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/html_template.rb, line 37</span>
|
146
146
|
37: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
@@ -153,11 +153,11 @@ A convenience utility class for rendering our error pages.
|
|
153
153
|
</div>
|
154
154
|
<div class="method">
|
155
155
|
<div class="title">
|
156
|
-
<a name="
|
156
|
+
<a name="M000106"></a><b>result</b>()
|
157
157
|
</div>
|
158
158
|
<div class="sourcecode">
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
160
|
-
<div id="
|
159
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
|
160
|
+
<div id="M000106_source" class="dyn-source">
|
161
161
|
<pre>
|
162
162
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/html_template.rb, line 42</span>
|
163
163
|
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>
|
@@ -58,9 +58,9 @@
|
|
58
58
|
<td>In:</td>
|
59
59
|
<td>
|
60
60
|
<a href="../../files/lib/phusion_passenger/railz/application_spawner_rb.html">lib/phusion_passenger/railz/application_spawner.rb</a>
|
61
|
-
<a href="../../files/lib/phusion_passenger/railz/framework_spawner_rb.html">lib/phusion_passenger/railz/framework_spawner.rb</a>
|
62
61
|
<a href="../../files/lib/phusion_passenger/railz/request_handler_rb.html">lib/phusion_passenger/railz/request_handler.rb</a>
|
63
62
|
<a href="../../files/lib/phusion_passenger/railz/cgi_fixed_rb.html">lib/phusion_passenger/railz/cgi_fixed.rb</a>
|
63
|
+
<a href="../../files/lib/phusion_passenger/railz/framework_spawner_rb.html">lib/phusion_passenger/railz/framework_spawner.rb</a>
|
64
64
|
</td>
|
65
65
|
</tr>
|
66
66
|
</table>
|
@@ -355,15 +355,22 @@ directory if it doesn‘t exist.
|
|
355
355
|
<pre>
|
356
356
|
<span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 338</span>
|
357
357
|
338: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">passenger_tmpdir</span>(<span class="ruby-identifier">create</span> = <span class="ruby-keyword kw">true</span>)
|
358
|
-
339: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'
|
358
|
+
339: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'PASSENGER_INSTANCE_TEMP_DIR'</span>]
|
359
359
|
340: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">empty?</span>
|
360
|
-
341: <span class="ruby-identifier">dir</span> = <span class="ruby-
|
361
|
-
342:
|
362
|
-
343: <span class="ruby-keyword kw">
|
363
|
-
344:
|
364
|
-
345:
|
365
|
-
346:
|
366
|
-
347:
|
360
|
+
341: <span class="ruby-identifier">dir</span> = <span class="ruby-node">"#{Dir.tmpdir}/passenger.#{Process.pid}"</span>
|
361
|
+
342: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'PASSENGER_INSTANCE_TEMP_DIR'</span>] = <span class="ruby-identifier">dir</span>
|
362
|
+
343: <span class="ruby-keyword kw">end</span>
|
363
|
+
344: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">create</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">dir</span>)
|
364
|
+
345: <span class="ruby-comment cmt"># This is a very minimal implementation of the function</span>
|
365
|
+
346: <span class="ruby-comment cmt"># passengerCreateTempDir() in Utils.cpp. This implementation</span>
|
366
|
+
347: <span class="ruby-comment cmt"># is only meant to make the unit tests pass. For production</span>
|
367
|
+
348: <span class="ruby-comment cmt"># systems one should pre-create the temp directory with</span>
|
368
|
+
349: <span class="ruby-comment cmt"># passengerCreateTempDir().</span>
|
369
|
+
350: <span class="ruby-identifier">system</span>(<span class="ruby-value str">"mkdir"</span>, <span class="ruby-value str">"-p"</span>, <span class="ruby-value str">"-m"</span>, <span class="ruby-value str">"u=wxs,g=wx,o=wx"</span>, <span class="ruby-identifier">dir</span>)
|
370
|
+
351: <span class="ruby-identifier">system</span>(<span class="ruby-value str">"mkdir"</span>, <span class="ruby-value str">"-p"</span>, <span class="ruby-value str">"-m"</span>, <span class="ruby-value str">"u=wxs,g=wx,o=wx"</span>, <span class="ruby-node">"#{dir}/backends"</span>)
|
371
|
+
352: <span class="ruby-keyword kw">end</span>
|
372
|
+
353: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dir</span>
|
373
|
+
354: <span class="ruby-keyword kw">end</span>
|
367
374
|
</pre>
|
368
375
|
</div>
|
369
376
|
</div>
|
@@ -155,14 +155,14 @@ The absolute path to the Apache 2 ‘bin’ directory.
|
|
155
155
|
<p class="source-link">[ <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show source</a> ]</p>
|
156
156
|
<div id="M000019_source" class="dyn-source">
|
157
157
|
<pre>
|
158
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
158
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 307</span>
|
159
|
+
307: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_bindir</span>
|
160
|
+
308: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
161
|
+
309: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
162
|
+
310: <span class="ruby-keyword kw">else</span>
|
163
|
+
311: <span class="ruby-keyword kw">return</span> <span class="ruby-node">`#{apxs2} -q BINDIR 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
164
|
+
312: <span class="ruby-keyword kw">end</span>
|
165
|
+
313: <span class="ruby-keyword kw">end</span>
|
166
166
|
</pre>
|
167
167
|
</div>
|
168
168
|
</div>
|
@@ -181,41 +181,41 @@ Includes <a href="PlatformInfo.html#M000021">portability_cflags</a>.
|
|
181
181
|
<p class="source-link">[ <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show source</a> ]</p>
|
182
182
|
<div id="M000024_source" class="dyn-source">
|
183
183
|
<pre>
|
184
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
184
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 378</span>
|
185
|
+
378: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_module_cflags</span>(<span class="ruby-identifier">with_apr_flags</span> = <span class="ruby-keyword kw">true</span>)
|
186
|
+
379: <span class="ruby-identifier">flags</span> = [<span class="ruby-value str">"-fPIC"</span>]
|
187
|
+
380: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">with_apr_flags</span>
|
188
|
+
381: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">apr_flags</span>
|
189
|
+
382: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">apu_flags</span>
|
190
|
+
383: <span class="ruby-keyword kw">end</span>
|
191
|
+
384: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
192
|
+
385: <span class="ruby-identifier">apxs2_flags</span> = <span class="ruby-node">`#{apxs2} -q CFLAGS`</span>.<span class="ruby-identifier">strip</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" -I"</span> <span class="ruby-operator"><<</span> <span class="ruby-node">`#{apxs2} -q INCLUDEDIR`</span>.<span class="ruby-identifier">strip</span>
|
193
|
+
386: <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/-O\d? /</span>, <span class="ruby-value str">''</span>)
|
194
|
+
387:
|
195
|
+
388: <span class="ruby-comment cmt"># Remove flags not supported by GCC</span>
|
196
|
+
389: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris/</span> <span class="ruby-comment cmt"># TODO: Add support for people using SunStudio</span>
|
197
|
+
390: <span class="ruby-comment cmt"># The big problem is Coolstack apxs includes a bunch of solaris -x directives.</span>
|
198
|
+
391: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">split</span>
|
199
|
+
392: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\-x/</span> }
|
200
|
+
393: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\-Xa/</span> }
|
201
|
+
394: <span class="ruby-identifier">apxs2_flags</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
|
202
|
+
395: <span class="ruby-keyword kw">end</span>
|
203
|
+
396:
|
204
|
+
397: <span class="ruby-identifier">apxs2_flags</span>.<span class="ruby-identifier">strip!</span>
|
205
|
+
398: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">apxs2_flags</span>
|
206
|
+
399: <span class="ruby-keyword kw">end</span>
|
207
|
+
400: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">httpd</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/darwin/</span>
|
208
|
+
401: <span class="ruby-comment cmt"># Add possible universal binary flags.</span>
|
209
|
+
402: <span class="ruby-identifier">architectures</span> = []
|
210
|
+
403: <span class="ruby-node">`file "#{httpd}"`</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\n"</span>).<span class="ruby-identifier">grep</span>(<span class="ruby-regexp re">/for architecture/</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
|
211
|
+
404: <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/for architecture (.*?)\)/</span>
|
212
|
+
405: <span class="ruby-identifier">architectures</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-arch #{$1}"</span>
|
213
|
+
406: <span class="ruby-keyword kw">end</span>
|
214
|
+
407: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">architectures</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
|
215
|
+
408: <span class="ruby-keyword kw">end</span>
|
216
|
+
409: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">portability_cflags</span>
|
217
|
+
410: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>).<span class="ruby-identifier">strip</span>
|
218
|
+
411: <span class="ruby-keyword kw">end</span>
|
219
219
|
</pre>
|
220
220
|
</div>
|
221
221
|
</div>
|
@@ -234,12 +234,12 @@ href="PlatformInfo.html#M000022">portability_ldflags</a>
|
|
234
234
|
<p class="source-link">[ <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show source</a> ]</p>
|
235
235
|
<div id="M000025_source" class="dyn-source">
|
236
236
|
<pre>
|
237
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
237
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 416</span>
|
238
|
+
416: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_module_ldflags</span>
|
239
|
+
417: <span class="ruby-identifier">flags</span> = <span class="ruby-node">"-fPIC #{apr_libs} #{apu_libs} #{portability_ldflags}"</span>
|
240
|
+
418: <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">strip!</span>
|
241
|
+
419: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>
|
242
|
+
420: <span class="ruby-keyword kw">end</span>
|
243
243
|
</pre>
|
244
244
|
</div>
|
245
245
|
</div>
|
@@ -257,14 +257,14 @@ The absolute path to the Apache 2 ‘sbin’ directory.
|
|
257
257
|
<p class="source-link">[ <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show source</a> ]</p>
|
258
258
|
<div id="M000020_source" class="dyn-source">
|
259
259
|
<pre>
|
260
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
260
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 317</span>
|
261
|
+
317: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2_sbindir</span>
|
262
|
+
318: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
263
|
+
319: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
264
|
+
320: <span class="ruby-keyword kw">else</span>
|
265
|
+
321: <span class="ruby-keyword kw">return</span> <span class="ruby-node">`#{apxs2} -q SBINDIR`</span>.<span class="ruby-identifier">strip</span>
|
266
|
+
322: <span class="ruby-keyword kw">end</span>
|
267
|
+
323: <span class="ruby-keyword kw">end</span>
|
268
268
|
</pre>
|
269
269
|
</div>
|
270
270
|
</div>
|
@@ -283,10 +283,10 @@ href="PlatformInfo.html#M000015">apache2ctl</a>’ binary.
|
|
283
283
|
<p class="source-link">[ <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show source</a> ]</p>
|
284
284
|
<div id="M000015_source" class="dyn-source">
|
285
285
|
<pre>
|
286
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
287
|
-
|
288
|
-
|
289
|
-
|
286
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 229</span>
|
287
|
+
229: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apache2ctl</span>
|
288
|
+
230: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">find_apache2_executable</span>(<span class="ruby-value str">'apache2ctl'</span>, <span class="ruby-value str">'apachectl2'</span>, <span class="ruby-value str">'apachectl'</span>)
|
289
|
+
231: <span class="ruby-keyword kw">end</span>
|
290
290
|
</pre>
|
291
291
|
</div>
|
292
292
|
</div>
|
@@ -305,29 +305,29 @@ The absolute path to the ‘apr-config’ or
|
|
305
305
|
<p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p>
|
306
306
|
<div id="M000017_source" class="dyn-source">
|
307
307
|
<pre>
|
308
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
308
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 253</span>
|
309
|
+
253: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_config</span>
|
310
|
+
254: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">'APR_CONFIG'</span>)
|
311
|
+
255: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'APR_CONFIG'</span>]
|
312
|
+
256: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
313
|
+
257: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
314
|
+
258: <span class="ruby-keyword kw">else</span>
|
315
|
+
259: <span class="ruby-identifier">filename</span> = <span class="ruby-node">`#{apxs2} -q APR_CONFIG 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
316
|
+
260: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">empty?</span>
|
317
|
+
261: <span class="ruby-identifier">apr_bindir</span> = <span class="ruby-node">`#{apxs2} -q APR_BINDIR 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
318
|
+
262: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apr_bindir</span>.<span class="ruby-identifier">empty?</span>
|
319
|
+
263: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
320
|
+
264: <span class="ruby-keyword kw">else</span>
|
321
|
+
265: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">select_executable</span>(<span class="ruby-identifier">apr_bindir</span>,
|
322
|
+
266: <span class="ruby-value str">"apr-1-config"</span>, <span class="ruby-value str">"apr-config"</span>)
|
323
|
+
267: <span class="ruby-keyword kw">end</span>
|
324
|
+
268: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">filename</span>)
|
325
|
+
269: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">filename</span>
|
326
|
+
270: <span class="ruby-keyword kw">else</span>
|
327
|
+
271: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
328
|
+
272: <span class="ruby-keyword kw">end</span>
|
329
|
+
273: <span class="ruby-keyword kw">end</span>
|
330
|
+
274: <span class="ruby-keyword kw">end</span>
|
331
331
|
</pre>
|
332
332
|
</div>
|
333
333
|
</div>
|
@@ -350,19 +350,19 @@ won‘t be necessary in that case.
|
|
350
350
|
<p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show source</a> ]</p>
|
351
351
|
<div id="M000030_source" class="dyn-source">
|
352
352
|
<pre>
|
353
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
450: <span class="ruby-keyword kw">end</span>
|
359
|
-
451: <span class="ruby-keyword kw">begin</span>
|
360
|
-
452: <span class="ruby-keyword kw">return</span> <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>(<span class="ruby-node">"(gcc #{apache2_module_cflags(false)} -c '#{filename}' -o '#{filename}.o') >/dev/null 2>/dev/null"</span>)
|
361
|
-
453: <span class="ruby-keyword kw">ensure</span>
|
362
|
-
454: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">filename</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
363
|
-
455: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-node">"#{filename}.o"</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
353
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 452</span>
|
354
|
+
452: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_config_needed_for_building_apache_modules?</span>
|
355
|
+
453: <span class="ruby-identifier">filename</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">"/tmp/passenger-platform-check-#{Process.pid}.c"</span>)
|
356
|
+
454: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">"w"</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
357
|
+
455: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-value str">"#include <apr.h>"</span>)
|
364
358
|
456: <span class="ruby-keyword kw">end</span>
|
365
|
-
457:
|
359
|
+
457: <span class="ruby-keyword kw">begin</span>
|
360
|
+
458: <span class="ruby-keyword kw">return</span> <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>(<span class="ruby-node">"(gcc #{apache2_module_cflags(false)} -c '#{filename}' -o '#{filename}.o') >/dev/null 2>/dev/null"</span>)
|
361
|
+
459: <span class="ruby-keyword kw">ensure</span>
|
362
|
+
460: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">filename</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
363
|
+
461: <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-node">"#{filename}.o"</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
364
|
+
462: <span class="ruby-keyword kw">end</span>
|
365
|
+
463: <span class="ruby-keyword kw">end</span>
|
366
366
|
</pre>
|
367
367
|
</div>
|
368
368
|
</div>
|
@@ -380,10 +380,10 @@ The C compiler flags that are necessary for programs that use APR.
|
|
380
380
|
<p class="source-link">[ <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show source</a> ]</p>
|
381
381
|
<div id="M000026_source" class="dyn-source">
|
382
382
|
<pre>
|
383
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
384
|
-
|
385
|
-
|
386
|
-
|
383
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 424</span>
|
384
|
+
424: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_flags</span>
|
385
|
+
425: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">0</span>]
|
386
|
+
426: <span class="ruby-keyword kw">end</span>
|
387
387
|
</pre>
|
388
388
|
</div>
|
389
389
|
</div>
|
@@ -401,10 +401,10 @@ The linker flags that are necessary for linking programs that use APR.
|
|
401
401
|
<p class="source-link">[ <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show source</a> ]</p>
|
402
402
|
<div id="M000027_source" class="dyn-source">
|
403
403
|
<pre>
|
404
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
405
|
-
|
406
|
-
|
407
|
-
|
404
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 429</span>
|
405
|
+
429: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apr_libs</span>
|
406
|
+
430: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apr_info</span>[<span class="ruby-value">1</span>]
|
407
|
+
431: <span class="ruby-keyword kw">end</span>
|
408
408
|
</pre>
|
409
409
|
</div>
|
410
410
|
</div>
|
@@ -423,29 +423,29 @@ The absolute path to the ‘apu-config’ or
|
|
423
423
|
<p class="source-link">[ <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show source</a> ]</p>
|
424
424
|
<div id="M000018_source" class="dyn-source">
|
425
425
|
<pre>
|
426
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
426
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 278</span>
|
427
|
+
278: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_config</span>
|
428
|
+
279: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">'APU_CONFIG'</span>)
|
429
|
+
280: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'APU_CONFIG'</span>]
|
430
|
+
281: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
431
|
+
282: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
432
|
+
283: <span class="ruby-keyword kw">else</span>
|
433
|
+
284: <span class="ruby-identifier">filename</span> = <span class="ruby-node">`#{apxs2} -q APU_CONFIG 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
434
|
+
285: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">empty?</span>
|
435
|
+
286: <span class="ruby-identifier">apu_bindir</span> = <span class="ruby-node">`#{apxs2} -q APU_BINDIR 2>/dev/null`</span>.<span class="ruby-identifier">strip</span>
|
436
|
+
287: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">apu_bindir</span>.<span class="ruby-identifier">empty?</span>
|
437
|
+
288: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
438
|
+
289: <span class="ruby-keyword kw">else</span>
|
439
|
+
290: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">select_executable</span>(<span class="ruby-identifier">apu_bindir</span>,
|
440
|
+
291: <span class="ruby-value str">"apu-1-config"</span>, <span class="ruby-value str">"apu-config"</span>)
|
441
|
+
292: <span class="ruby-keyword kw">end</span>
|
442
|
+
293: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">filename</span>)
|
443
|
+
294: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">filename</span>
|
444
|
+
295: <span class="ruby-keyword kw">else</span>
|
445
|
+
296: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
446
|
+
297: <span class="ruby-keyword kw">end</span>
|
447
|
+
298: <span class="ruby-keyword kw">end</span>
|
448
|
+
299: <span class="ruby-keyword kw">end</span>
|
449
449
|
</pre>
|
450
450
|
</div>
|
451
451
|
</div>
|
@@ -463,10 +463,10 @@ The C compiler flags that are necessary for programs that use APR-Util.
|
|
463
463
|
<p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p>
|
464
464
|
<div id="M000028_source" class="dyn-source">
|
465
465
|
<pre>
|
466
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
467
|
-
|
468
|
-
|
469
|
-
|
466
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 434</span>
|
467
|
+
434: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_flags</span>
|
468
|
+
435: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">0</span>]
|
469
|
+
436: <span class="ruby-keyword kw">end</span>
|
470
470
|
</pre>
|
471
471
|
</div>
|
472
472
|
</div>
|
@@ -484,10 +484,10 @@ The linker flags that are necessary for linking programs that use APR-Util.
|
|
484
484
|
<p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show source</a> ]</p>
|
485
485
|
<div id="M000029_source" class="dyn-source">
|
486
486
|
<pre>
|
487
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
488
|
-
|
489
|
-
|
490
|
-
|
487
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 439</span>
|
488
|
+
439: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apu_libs</span>
|
489
|
+
440: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">determine_apu_info</span>[<span class="ruby-value">1</span>]
|
490
|
+
441: <span class="ruby-keyword kw">end</span>
|
491
491
|
</pre>
|
492
492
|
</div>
|
493
493
|
</div>
|
@@ -507,19 +507,19 @@ found.
|
|
507
507
|
<p class="source-link">[ <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show source</a> ]</p>
|
508
508
|
<div id="M000014_source" class="dyn-source">
|
509
509
|
<pre>
|
510
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
510
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 214</span>
|
511
|
+
214: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">apxs2</span>
|
512
|
+
215: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">"APXS2"</span>)
|
513
|
+
216: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"APXS2"</span>]
|
514
|
+
217: <span class="ruby-keyword kw">end</span>
|
515
|
+
218: [<span class="ruby-value str">'apxs2'</span>, <span class="ruby-value str">'apxs'</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
516
|
+
219: <span class="ruby-identifier">command</span> = <span class="ruby-identifier">find_command</span>(<span class="ruby-identifier">name</span>)
|
517
|
+
220: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">command</span>.<span class="ruby-identifier">nil?</span>
|
518
|
+
221: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">command</span>
|
519
|
+
222: <span class="ruby-keyword kw">end</span>
|
520
|
+
223: <span class="ruby-keyword kw">end</span>
|
521
|
+
224: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
522
|
+
225: <span class="ruby-keyword kw">end</span>
|
523
523
|
</pre>
|
524
524
|
</div>
|
525
525
|
</div>
|
@@ -538,17 +538,17 @@ information.
|
|
538
538
|
<p class="source-link">[ <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show source</a> ]</p>
|
539
539
|
<div id="M000023_source" class="dyn-source">
|
540
540
|
<pre>
|
541
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
541
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 365</span>
|
542
|
+
365: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">debugging_cflags</span>
|
543
|
+
366: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/openbsd/</span>
|
544
|
+
367: <span class="ruby-comment cmt"># According to OpenBSD's pthreads man page, pthreads do not work</span>
|
545
|
+
368: <span class="ruby-comment cmt"># correctly when an app is compiled with -g. It recommends using</span>
|
546
|
+
369: <span class="ruby-comment cmt"># -ggdb instead.</span>
|
547
|
+
370: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-ggdb'</span>
|
548
|
+
371: <span class="ruby-keyword kw">else</span>
|
549
|
+
372: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-g'</span>
|
550
|
+
373: <span class="ruby-keyword kw">end</span>
|
551
|
+
374: <span class="ruby-keyword kw">end</span>
|
552
552
|
</pre>
|
553
553
|
</div>
|
554
554
|
</div>
|
@@ -571,16 +571,16 @@ always behave correctly, for some weird reason.
|
|
571
571
|
<p class="source-link">[ <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show source</a> ]</p>
|
572
572
|
<div id="M000011_source" class="dyn-source">
|
573
573
|
<pre>
|
574
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
574
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 183</span>
|
575
|
+
183: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">find_command</span>(<span class="ruby-identifier">name</span>)
|
576
|
+
184: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'PATH'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">PATH_SEPARATOR</span>).<span class="ruby-identifier">detect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">directory</span><span class="ruby-operator">|</span>
|
577
|
+
185: <span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>)
|
578
|
+
186: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">executable?</span>(<span class="ruby-identifier">path</span>)
|
579
|
+
187: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">path</span>
|
580
|
+
188: <span class="ruby-keyword kw">end</span>
|
581
|
+
189: <span class="ruby-keyword kw">end</span>
|
582
|
+
190: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
583
|
+
191: <span class="ruby-keyword kw">end</span>
|
584
584
|
</pre>
|
585
585
|
</div>
|
586
586
|
</div>
|
@@ -600,22 +600,22 @@ href="PlatformInfo.html#M000016">httpd</a>’, ‘httpd2’,
|
|
600
600
|
<p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p>
|
601
601
|
<div id="M000016_source" class="dyn-source">
|
602
602
|
<pre>
|
603
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
603
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 235</span>
|
604
|
+
235: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">httpd</span>
|
605
|
+
236: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">env_defined?</span>(<span class="ruby-value str">'HTTPD'</span>)
|
606
|
+
237: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'HTTPD'</span>]
|
607
|
+
238: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">apxs2</span>.<span class="ruby-identifier">nil?</span>
|
608
|
+
239: [<span class="ruby-value str">"apache2"</span>, <span class="ruby-value str">"httpd2"</span>, <span class="ruby-value str">"apache"</span>, <span class="ruby-value str">"httpd"</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
609
|
+
240: <span class="ruby-identifier">command</span> = <span class="ruby-identifier">find_command</span>(<span class="ruby-identifier">name</span>)
|
610
|
+
241: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">command</span>.<span class="ruby-identifier">nil?</span>
|
611
|
+
242: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">command</span>
|
612
|
+
243: <span class="ruby-keyword kw">end</span>
|
613
|
+
244: <span class="ruby-keyword kw">end</span>
|
614
|
+
245: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
615
|
+
246: <span class="ruby-keyword kw">else</span>
|
616
|
+
247: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">find_apache2_executable</span>(<span class="ruby-node">`#{apxs2} -q TARGET`</span>.<span class="ruby-identifier">strip</span>)
|
617
|
+
248: <span class="ruby-keyword kw">end</span>
|
618
|
+
249: <span class="ruby-keyword kw">end</span>
|
619
619
|
</pre>
|
620
620
|
</div>
|
621
621
|
</div>
|
@@ -634,14 +634,14 @@ most Unices).
|
|
634
634
|
<p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p>
|
635
635
|
<div id="M000031_source" class="dyn-source">
|
636
636
|
<pre>
|
637
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
637
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 467</span>
|
638
|
+
467: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">library_extension</span>
|
639
|
+
468: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/darwin/</span>
|
640
|
+
469: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">"bundle"</span>
|
641
|
+
470: <span class="ruby-keyword kw">else</span>
|
642
|
+
471: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">"so"</span>
|
643
|
+
472: <span class="ruby-keyword kw">end</span>
|
644
|
+
473: <span class="ruby-keyword kw">end</span>
|
645
645
|
</pre>
|
646
646
|
</div>
|
647
647
|
</div>
|
@@ -660,36 +660,36 @@ system is not Linux.
|
|
660
660
|
<p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p>
|
661
661
|
<div id="M000032_source" class="dyn-source">
|
662
662
|
<pre>
|
663
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
663
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 476</span>
|
664
|
+
476: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">linux_distro</span>
|
665
|
+
477: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/linux/</span>
|
666
|
+
478: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
667
|
+
479: <span class="ruby-keyword kw">end</span>
|
668
|
+
480: <span class="ruby-identifier">lsb_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">"/etc/lsb-release"</span>)
|
669
|
+
481: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lsb_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Ubuntu/</span>
|
670
|
+
482: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:ubuntu</span>
|
671
|
+
483: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/debian_version"</span>)
|
672
|
+
484: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:debian</span>
|
673
|
+
485: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/redhat-release"</span>)
|
674
|
+
486: <span class="ruby-identifier">redhat_release</span> = <span class="ruby-identifier">read_file</span>(<span class="ruby-value str">"/etc/redhat-release"</span>)
|
675
|
+
487: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">redhat_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/CentOS/</span>
|
676
|
+
488: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:centos</span>
|
677
|
+
489: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">redhat_release</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Fedora/</span> <span class="ruby-comment cmt"># is this correct?</span>
|
678
|
+
490: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:fedora</span>
|
679
|
+
491: <span class="ruby-keyword kw">else</span>
|
680
|
+
492: <span class="ruby-comment cmt"># On official RHEL distros, the content is in the form of</span>
|
681
|
+
493: <span class="ruby-comment cmt"># "Red Hat Enterprise Linux Server release 5.1 (Tikanga)"</span>
|
682
|
+
494: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:rhel</span>
|
683
|
+
495: <span class="ruby-keyword kw">end</span>
|
684
|
+
496: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/suse-release"</span>)
|
685
|
+
497: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:suse</span>
|
686
|
+
498: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-value str">"/etc/gentoo-release"</span>)
|
687
|
+
499: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:gentoo</span>
|
688
|
+
500: <span class="ruby-keyword kw">else</span>
|
689
|
+
501: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:unknown</span>
|
690
|
+
502: <span class="ruby-keyword kw">end</span>
|
691
|
+
503: <span class="ruby-comment cmt"># TODO: Slackware, Mandrake/Mandriva</span>
|
692
|
+
504: <span class="ruby-keyword kw">end</span>
|
693
693
|
</pre>
|
694
694
|
</div>
|
695
695
|
</div>
|
@@ -709,20 +709,24 @@ the compiler.
|
|
709
709
|
<p class="source-link">[ <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show source</a> ]</p>
|
710
710
|
<div id="M000021_source" class="dyn-source">
|
711
711
|
<pre>
|
712
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
712
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 333</span>
|
713
|
+
333: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">portability_cflags</span>
|
714
|
+
334: <span class="ruby-comment cmt"># _GLIBCPP__PTHREADS is for fixing Boost compilation on OpenBSD.</span>
|
715
|
+
335: <span class="ruby-identifier">flags</span> = [<span class="ruby-value str">"-D_REENTRANT -I/usr/local/include"</span>]
|
716
|
+
336: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris/</span>
|
717
|
+
337: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-D_XOPEN_SOURCE=500 -D_XPG4_2 -D__EXTENSIONS__ -D__SOLARIS__'</span>
|
718
|
+
338: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DBOOST_HAS_STDINT_H'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris2.9/</span>
|
719
|
+
339: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-D__SOLARIS9__ -DBOOST__STDC_CONSTANT_MACROS_DEFINED'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris2.9/</span>
|
720
|
+
340: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-mcpu=ultrasparc'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/sparc/</span>
|
721
|
+
341: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/openbsd/</span>
|
722
|
+
342: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DBOOST_HAS_STDINT_H -D_GLIBCPP__PTHREADS'</span>
|
723
|
+
343: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/aix/</span>
|
724
|
+
344: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DOXT_DISABLE_BACKTRACES'</span>
|
725
|
+
345: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/sparc-linux/</span>
|
726
|
+
346: <span class="ruby-identifier">flags</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-DBOOST_SP_USE_PTHREADS'</span>
|
727
|
+
347: <span class="ruby-keyword kw">end</span>
|
728
|
+
348: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">flags</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">" "</span>).<span class="ruby-identifier">strip</span>
|
729
|
+
349: <span class="ruby-keyword kw">end</span>
|
726
730
|
</pre>
|
727
731
|
</div>
|
728
732
|
</div>
|
@@ -742,14 +746,14 @@ the linker.
|
|
742
746
|
<p class="source-link">[ <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show source</a> ]</p>
|
743
747
|
<div id="M000022_source" class="dyn-source">
|
744
748
|
<pre>
|
745
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
749
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 355</span>
|
750
|
+
355: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">portability_ldflags</span>
|
751
|
+
356: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/solaris/</span>
|
752
|
+
357: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-lxnet -lrt -lsocket -lnsl -lpthread'</span>
|
753
|
+
358: <span class="ruby-keyword kw">else</span>
|
754
|
+
359: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">'-lpthread'</span>
|
755
|
+
360: <span class="ruby-keyword kw">end</span>
|
756
|
+
361: <span class="ruby-keyword kw">end</span>
|
753
757
|
</pre>
|
754
758
|
</div>
|
755
759
|
</div>
|
@@ -768,10 +772,10 @@ current Ruby interpreter. Returns nil if it doesn‘t exist.
|
|
768
772
|
<p class="source-link">[ <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show source</a> ]</p>
|
769
773
|
<div id="M000012_source" class="dyn-source">
|
770
774
|
<pre>
|
771
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 200</span>
|
776
|
+
200: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rake</span>
|
777
|
+
201: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">locate_ruby_executable</span>(<span class="ruby-value str">'rake'</span>)
|
778
|
+
202: <span class="ruby-keyword kw">end</span>
|
775
779
|
</pre>
|
776
780
|
</div>
|
777
781
|
</div>
|
@@ -790,10 +794,10 @@ current Ruby interpreter. Returns nil if it doesn‘t exist.
|
|
790
794
|
<p class="source-link">[ <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show source</a> ]</p>
|
791
795
|
<div id="M000013_source" class="dyn-source">
|
792
796
|
<pre>
|
793
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
+
<span class="ruby-comment cmt"># File lib/phusion_passenger/platform_info.rb, line 208</span>
|
798
|
+
208: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rspec</span>
|
799
|
+
209: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">locate_ruby_executable</span>(<span class="ruby-value str">'spec'</span>)
|
800
|
+
210: <span class="ruby-keyword kw">end</span>
|
797
801
|
</pre>
|
798
802
|
</div>
|
799
803
|
</div>
|