passenger 3.0.0.pre1 → 3.0.0.pre2

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.

Files changed (189) hide show
  1. data/DEVELOPERS.TXT +2 -2
  2. data/NEWS +2 -2
  3. data/Rakefile +1 -1
  4. data/build/packaging.rb +1 -1
  5. data/doc/Users guide Apache.html +22 -22
  6. data/doc/Users guide Apache.txt +2 -2
  7. data/doc/Users guide Nginx.html +14 -14
  8. data/doc/Users guide Nginx.txt +3 -2
  9. data/doc/Users guide Standalone.html +1 -1
  10. data/doc/cxxapi/Constants_8h_source.html +1 -1
  11. data/doc/cxxapi/ResourceLocator_8h_source.html +1 -1
  12. data/doc/rdoc/classes/ConditionVariable.html +215 -0
  13. data/doc/rdoc/classes/Exception.html +120 -0
  14. data/doc/rdoc/classes/GC.html +113 -0
  15. data/doc/rdoc/classes/IO.html +221 -0
  16. data/doc/rdoc/classes/PhusionPassenger.html +368 -0
  17. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +180 -0
  18. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +647 -0
  19. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +654 -0
  20. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html +92 -0
  21. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +97 -0
  22. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +96 -0
  23. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +97 -0
  24. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +96 -0
  25. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +619 -0
  26. data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +142 -0
  27. data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html +368 -0
  28. data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html +231 -0
  29. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html +588 -0
  30. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html +92 -0
  31. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html +92 -0
  32. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html +147 -0
  33. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html +279 -0
  34. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html +92 -0
  35. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html +92 -0
  36. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html +123 -0
  37. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html +92 -0
  38. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html +341 -0
  39. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html +294 -0
  40. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html +199 -0
  41. data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +155 -0
  42. data/doc/rdoc/classes/PhusionPassenger/AppProcess.html +367 -0
  43. data/doc/rdoc/classes/PhusionPassenger/ClassicRails.html +95 -0
  44. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html +351 -0
  45. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html +98 -0
  46. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html +200 -0
  47. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html +410 -0
  48. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html +98 -0
  49. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html +156 -0
  50. data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html +115 -0
  51. data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html +202 -0
  52. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +172 -0
  53. data/doc/rdoc/classes/PhusionPassenger/DebugLogging.html +273 -0
  54. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +145 -0
  55. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +162 -0
  56. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +141 -0
  57. data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +92 -0
  58. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +673 -0
  59. data/doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html +92 -0
  60. data/doc/rdoc/classes/PhusionPassenger/MessageClient.html +415 -0
  61. data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +494 -0
  62. data/doc/rdoc/classes/PhusionPassenger/NativeSupport/FileSystemWatcher.html +96 -0
  63. data/doc/rdoc/classes/PhusionPassenger/Packaging.html +129 -0
  64. data/doc/rdoc/classes/PhusionPassenger/PlatformInfo.html +1758 -0
  65. data/doc/rdoc/classes/PhusionPassenger/Plugin.html +237 -0
  66. data/doc/rdoc/classes/PhusionPassenger/Rack.html +91 -0
  67. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +312 -0
  68. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html +98 -0
  69. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +218 -0
  70. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html +114 -0
  71. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html +256 -0
  72. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html +139 -0
  73. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html +118 -0
  74. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html +135 -0
  75. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +378 -0
  76. data/doc/rdoc/classes/PhusionPassenger/Standalone.html +111 -0
  77. data/doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html +252 -0
  78. data/doc/rdoc/classes/PhusionPassenger/Standalone/Command.html +161 -0
  79. data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html +368 -0
  80. data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html +132 -0
  81. data/doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html +151 -0
  82. data/doc/rdoc/classes/PhusionPassenger/Standalone/Main.html +189 -0
  83. data/doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html +177 -0
  84. data/doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html +341 -0
  85. data/doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html +203 -0
  86. data/doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html +156 -0
  87. data/doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html +168 -0
  88. data/doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html +86 -0
  89. data/doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html +135 -0
  90. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +125 -0
  91. data/doc/rdoc/classes/PhusionPassenger/Utils.html +1468 -0
  92. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html +204 -0
  93. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html +171 -0
  94. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html +140 -0
  95. data/doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html +260 -0
  96. data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +169 -0
  97. data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +265 -0
  98. data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +120 -0
  99. data/doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html +561 -0
  100. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +140 -0
  101. data/doc/rdoc/classes/PhusionPassenger/WSGI.html +89 -0
  102. data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +182 -0
  103. data/doc/rdoc/classes/Process.html +115 -0
  104. data/doc/rdoc/classes/Signal.html +139 -0
  105. data/doc/rdoc/created.rid +1 -0
  106. data/doc/rdoc/files/DEVELOPERS_TXT.html +276 -0
  107. data/doc/rdoc/files/README.html +157 -0
  108. data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +92 -0
  109. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +130 -0
  110. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +135 -0
  111. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +126 -0
  112. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +128 -0
  113. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html +126 -0
  114. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html +132 -0
  115. data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +122 -0
  116. data/doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html +129 -0
  117. data/doc/rdoc/files/lib/phusion_passenger/app_process_rb.html +127 -0
  118. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html +141 -0
  119. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html +126 -0
  120. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html +146 -0
  121. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html +125 -0
  122. data/doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html +132 -0
  123. data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +126 -0
  124. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +122 -0
  125. data/doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html +122 -0
  126. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +147 -0
  127. data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +122 -0
  128. data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +127 -0
  129. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +120 -0
  130. data/doc/rdoc/files/lib/phusion_passenger/message_client_rb.html +127 -0
  131. data/doc/rdoc/files/lib/phusion_passenger/native_support_rb.html +131 -0
  132. data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +122 -0
  133. data/doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html +127 -0
  134. data/doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html +129 -0
  135. data/doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html +126 -0
  136. data/doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html +126 -0
  137. data/doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html +126 -0
  138. data/doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html +126 -0
  139. data/doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html +127 -0
  140. data/doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html +128 -0
  141. data/doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html +126 -0
  142. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +122 -0
  143. data/doc/rdoc/files/lib/phusion_passenger/plugin_rb.html +127 -0
  144. data/doc/rdoc/files/lib/phusion_passenger/public_api_rb.html +127 -0
  145. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +137 -0
  146. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +125 -0
  147. data/doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html +127 -0
  148. data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +122 -0
  149. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +160 -0
  150. data/doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html +127 -0
  151. data/doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html +135 -0
  152. data/doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html +126 -0
  153. data/doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html +126 -0
  154. data/doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html +126 -0
  155. data/doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html +127 -0
  156. data/doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html +132 -0
  157. data/doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html +136 -0
  158. data/doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html +126 -0
  159. data/doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html +126 -0
  160. data/doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html +126 -0
  161. data/doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html +127 -0
  162. data/doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html +126 -0
  163. data/doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html +120 -0
  164. data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +100 -0
  165. data/doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html +122 -0
  166. data/doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html +126 -0
  167. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +179 -0
  168. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +132 -0
  169. data/doc/rdoc/fr_class_index.html +139 -0
  170. data/doc/rdoc/fr_file_index.html +109 -0
  171. data/doc/rdoc/fr_method_index.html +435 -0
  172. data/doc/rdoc/index.html +26 -0
  173. data/doc/rdoc/rdoc-style.css +187 -0
  174. data/ext/apache2/Configuration.hpp +1 -1
  175. data/ext/apache2/Hooks.cpp +24 -2
  176. data/ext/common/AgentsStarter.hpp +57 -20
  177. data/ext/common/Constants.h +1 -1
  178. data/ext/common/ResourceLocator.h +1 -1
  179. data/ext/common/Utils/MemZeroGuard.h +1 -1
  180. data/ext/phusion_passenger/native_support.c +1 -1
  181. data/lib/phusion_passenger.rb +2 -2
  182. data/lib/phusion_passenger/abstract_installer.rb +1 -1
  183. data/lib/phusion_passenger/platform_info/apache.rb +3 -0
  184. data/lib/phusion_passenger/platform_info/binary_compatibility.rb +3 -1
  185. data/lib/phusion_passenger/platform_info/compiler.rb +25 -2
  186. data/lib/phusion_passenger/platform_info/ruby.rb +88 -14
  187. data/lib/phusion_passenger/templates/standalone/config.erb +9 -16
  188. metadata +166 -5
  189. data/ext/common/Utils/foo.cpp +0 -10
@@ -0,0 +1,368 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Module: PhusionPassenger</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">Module</span><br />PhusionPassenger</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/abstract_installer_rb.html">lib/phusion_passenger/abstract_installer.rb</a>
61
+ <a href="../files/lib/phusion_passenger/abstract_request_handler_rb.html">lib/phusion_passenger/abstract_request_handler.rb</a>
62
+ <a href="../files/lib/phusion_passenger/abstract_server_rb.html">lib/phusion_passenger/abstract_server.rb</a>
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/admin_tools_rb.html">lib/phusion_passenger/admin_tools.rb</a>
65
+ <a href="../files/lib/phusion_passenger/analytics_logger_rb.html">lib/phusion_passenger/analytics_logger.rb</a>
66
+ <a href="../files/lib/phusion_passenger/app_process_rb.html">lib/phusion_passenger/app_process.rb</a>
67
+ <a href="../files/lib/phusion_passenger/console_text_template_rb.html">lib/phusion_passenger/console_text_template.rb</a>
68
+ <a href="../files/lib/phusion_passenger/constants_rb.html">lib/phusion_passenger/constants.rb</a>
69
+ <a href="../files/lib/phusion_passenger/debug_logging_rb.html">lib/phusion_passenger/debug_logging.rb</a>
70
+ <a href="../files/lib/phusion_passenger/dependencies_rb.html">lib/phusion_passenger/dependencies.rb</a>
71
+ <a href="../files/lib/phusion_passenger/exceptions_rb.html">lib/phusion_passenger/exceptions.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/message_channel_rb.html">lib/phusion_passenger/message_channel.rb</a>
74
+ <a href="../files/lib/phusion_passenger/message_client_rb.html">lib/phusion_passenger/message_client.rb</a>
75
+ <a href="../files/lib/phusion_passenger/native_support_rb.html">lib/phusion_passenger/native_support.rb</a>
76
+ <a href="../files/lib/phusion_passenger/packaging_rb.html">lib/phusion_passenger/packaging.rb</a>
77
+ <a href="../files/lib/phusion_passenger/platform_info_rb.html">lib/phusion_passenger/platform_info.rb</a>
78
+ <a href="../files/lib/phusion_passenger/plugin_rb.html">lib/phusion_passenger/plugin.rb</a>
79
+ <a href="../files/lib/phusion_passenger/public_api_rb.html">lib/phusion_passenger/public_api.rb</a>
80
+ <a href="../files/lib/phusion_passenger/spawn_manager_rb.html">lib/phusion_passenger/spawn_manager.rb</a>
81
+ <a href="../files/lib/phusion_passenger/utils_rb.html">lib/phusion_passenger/utils.rb</a>
82
+ <a href="../files/lib/phusion_passenger/admin_tools/memory_stats_rb.html">lib/phusion_passenger/admin_tools/memory_stats.rb</a>
83
+ <a href="../files/lib/phusion_passenger/admin_tools/server_instance_rb.html">lib/phusion_passenger/admin_tools/server_instance.rb</a>
84
+ <a href="../files/lib/phusion_passenger/classic_rails/application_spawner_rb.html">lib/phusion_passenger/classic_rails/application_spawner.rb</a>
85
+ <a href="../files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html">lib/phusion_passenger/classic_rails/cgi_fixed.rb</a>
86
+ <a href="../files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html">lib/phusion_passenger/classic_rails/framework_spawner.rb</a>
87
+ <a href="../files/lib/phusion_passenger/classic_rails/request_handler_rb.html">lib/phusion_passenger/classic_rails/request_handler.rb</a>
88
+ <a href="../files/lib/phusion_passenger/classic_rails_extensions/init_rb.html">lib/phusion_passenger/classic_rails_extensions/init.rb</a>
89
+ <a href="../files/lib/phusion_passenger/platform_info/apache_rb.html">lib/phusion_passenger/platform_info/apache.rb</a>
90
+ <a href="../files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html">lib/phusion_passenger/platform_info/binary_compatibility.rb</a>
91
+ <a href="../files/lib/phusion_passenger/platform_info/compiler_rb.html">lib/phusion_passenger/platform_info/compiler.rb</a>
92
+ <a href="../files/lib/phusion_passenger/platform_info/curl_rb.html">lib/phusion_passenger/platform_info/curl.rb</a>
93
+ <a href="../files/lib/phusion_passenger/platform_info/documentation_tools_rb.html">lib/phusion_passenger/platform_info/documentation_tools.rb</a>
94
+ <a href="../files/lib/phusion_passenger/platform_info/linux_rb.html">lib/phusion_passenger/platform_info/linux.rb</a>
95
+ <a href="../files/lib/phusion_passenger/platform_info/operating_system_rb.html">lib/phusion_passenger/platform_info/operating_system.rb</a>
96
+ <a href="../files/lib/phusion_passenger/platform_info/ruby_rb.html">lib/phusion_passenger/platform_info/ruby.rb</a>
97
+ <a href="../files/lib/phusion_passenger/platform_info/zlib_rb.html">lib/phusion_passenger/platform_info/zlib.rb</a>
98
+ <a href="../files/lib/phusion_passenger/rack/application_spawner_rb.html">lib/phusion_passenger/rack/application_spawner.rb</a>
99
+ <a href="../files/lib/phusion_passenger/rack/request_handler_rb.html">lib/phusion_passenger/rack/request_handler.rb</a>
100
+ <a href="../files/lib/phusion_passenger/rails3_extensions/init_rb.html">lib/phusion_passenger/rails3_extensions/init.rb</a>
101
+ <a href="../files/lib/phusion_passenger/standalone/app_finder_rb.html">lib/phusion_passenger/standalone/app_finder.rb</a>
102
+ <a href="../files/lib/phusion_passenger/standalone/command_rb.html">lib/phusion_passenger/standalone/command.rb</a>
103
+ <a href="../files/lib/phusion_passenger/standalone/config_file_rb.html">lib/phusion_passenger/standalone/config_file.rb</a>
104
+ <a href="../files/lib/phusion_passenger/standalone/help_command_rb.html">lib/phusion_passenger/standalone/help_command.rb</a>
105
+ <a href="../files/lib/phusion_passenger/standalone/main_rb.html">lib/phusion_passenger/standalone/main.rb</a>
106
+ <a href="../files/lib/phusion_passenger/standalone/package_runtime_command_rb.html">lib/phusion_passenger/standalone/package_runtime_command.rb</a>
107
+ <a href="../files/lib/phusion_passenger/standalone/runtime_installer_rb.html">lib/phusion_passenger/standalone/runtime_installer.rb</a>
108
+ <a href="../files/lib/phusion_passenger/standalone/start_command_rb.html">lib/phusion_passenger/standalone/start_command.rb</a>
109
+ <a href="../files/lib/phusion_passenger/standalone/status_command_rb.html">lib/phusion_passenger/standalone/status_command.rb</a>
110
+ <a href="../files/lib/phusion_passenger/standalone/stop_command_rb.html">lib/phusion_passenger/standalone/stop_command.rb</a>
111
+ <a href="../files/lib/phusion_passenger/standalone/utils_rb.html">lib/phusion_passenger/standalone/utils.rb</a>
112
+ <a href="../files/lib/phusion_passenger/standalone/version_command_rb.html">lib/phusion_passenger/standalone/version_command.rb</a>
113
+ <a href="../files/lib/phusion_passenger/utils/file_system_watcher_rb.html">lib/phusion_passenger/utils/file_system_watcher.rb</a>
114
+ <a href="../files/lib/phusion_passenger/utils/hosts_file_parser_rb.html">lib/phusion_passenger/utils/hosts_file_parser.rb</a>
115
+ <a href="../files/lib/phusion_passenger/utils/rewindable_input_rb.html">lib/phusion_passenger/utils/rewindable_input.rb</a>
116
+ <a href="../files/lib/phusion_passenger/utils/tmpdir_rb.html">lib/phusion_passenger/utils/tmpdir.rb</a>
117
+ <a href="../files/lib/phusion_passenger/utils/unseekable_socket_rb.html">lib/phusion_passenger/utils/unseekable_socket.rb</a>
118
+ <a href="../files/lib/phusion_passenger/wsgi/application_spawner_rb.html">lib/phusion_passenger/wsgi/application_spawner.rb</a>
119
+ <a href="../files/ext/phusion_passenger/native_support_c.html">ext/phusion_passenger/native_support.c</a>
120
+ </td>
121
+ </tr>
122
+ </table>
123
+ </td>
124
+ </tr>
125
+ </table>
126
+ <!-- banner header -->
127
+
128
+ <div id="bodyContent">
129
+ <div id="content">
130
+
131
+
132
+
133
+
134
+ <div class="sectiontitle">Methods</div>
135
+ <ul>
136
+ <li><a href="#M000017">benchmark</a></li>
137
+ <li><a href="#M000015">call_event</a></li>
138
+ <li><a href="#M000016">install_framework_extensions!</a></li>
139
+ <li><a href="#M000018">log_cache_hit</a></li>
140
+ <li><a href="#M000019">log_cache_miss</a></li>
141
+ <li><a href="#M000014">on_event</a></li>
142
+ </ul>
143
+
144
+
145
+
146
+ <div class="sectiontitle">Classes and Modules</div>
147
+ Module <a href="PhusionPassenger/AdminTools.html" class="link">PhusionPassenger::AdminTools</a><br />
148
+ Module <a href="PhusionPassenger/ClassicRails.html" class="link">PhusionPassenger::ClassicRails</a><br />
149
+ Module <a href="PhusionPassenger/ClassicRailsExtensions.html" class="link">PhusionPassenger::ClassicRailsExtensions</a><br />
150
+ Module <a href="PhusionPassenger/DebugLogging.html" class="link">PhusionPassenger::DebugLogging</a><br />
151
+ Module <a href="PhusionPassenger/NativeSupport.html" class="link">PhusionPassenger::NativeSupport</a><br />
152
+ Module <a href="PhusionPassenger/Packaging.html" class="link">PhusionPassenger::Packaging</a><br />
153
+ Module <a href="PhusionPassenger/PlatformInfo.html" class="link">PhusionPassenger::PlatformInfo</a><br />
154
+ Module <a href="PhusionPassenger/Rack.html" class="link">PhusionPassenger::Rack</a><br />
155
+ Module <a href="PhusionPassenger/Rails3Extensions.html" class="link">PhusionPassenger::Rails3Extensions</a><br />
156
+ Module <a href="PhusionPassenger/Standalone.html" class="link">PhusionPassenger::Standalone</a><br />
157
+ Module <a href="PhusionPassenger/Utils.html" class="link">PhusionPassenger::Utils</a><br />
158
+ Module <a href="PhusionPassenger/WSGI.html" class="link">PhusionPassenger::WSGI</a><br />
159
+ Class <a href="PhusionPassenger/AbstractInstaller.html" class="link">PhusionPassenger::AbstractInstaller</a><br />
160
+ Class <a href="PhusionPassenger/AbstractRequestHandler.html" class="link">PhusionPassenger::AbstractRequestHandler</a><br />
161
+ Class <a href="PhusionPassenger/AbstractServer.html" class="link">PhusionPassenger::AbstractServer</a><br />
162
+ Class <a href="PhusionPassenger/AbstractServerCollection.html" class="link">PhusionPassenger::AbstractServerCollection</a><br />
163
+ Class <a href="PhusionPassenger/AnalyticsLogger.html" class="link">PhusionPassenger::AnalyticsLogger</a><br />
164
+ Class <a href="PhusionPassenger/AppInitError.html" class="link">PhusionPassenger::AppInitError</a><br />
165
+ Class <a href="PhusionPassenger/AppProcess.html" class="link">PhusionPassenger::AppProcess</a><br />
166
+ Class <a href="PhusionPassenger/ConsoleTextTemplate.html" class="link">PhusionPassenger::ConsoleTextTemplate</a><br />
167
+ Class <a href="PhusionPassenger/FrameworkInitError.html" class="link">PhusionPassenger::FrameworkInitError</a><br />
168
+ Class <a href="PhusionPassenger/HTMLTemplate.html" class="link">PhusionPassenger::HTMLTemplate</a><br />
169
+ Class <a href="PhusionPassenger/InitializationError.html" class="link">PhusionPassenger::InitializationError</a><br />
170
+ Class <a href="PhusionPassenger/InvalidPath.html" class="link">PhusionPassenger::InvalidPath</a><br />
171
+ Class <a href="PhusionPassenger/MessageChannel.html" class="link">PhusionPassenger::MessageChannel</a><br />
172
+ Class <a href="PhusionPassenger/MessageClient.html" class="link">PhusionPassenger::MessageClient</a><br />
173
+ Class <a href="PhusionPassenger/Plugin.html" class="link">PhusionPassenger::Plugin</a><br />
174
+ Class <a href="PhusionPassenger/SpawnManager.html" class="link">PhusionPassenger::SpawnManager</a><br />
175
+ Class <a href="PhusionPassenger/UnknownError.html" class="link">PhusionPassenger::UnknownError</a><br />
176
+ Class <a href="PhusionPassenger/VersionNotFound.html" class="link">PhusionPassenger::VersionNotFound</a><br />
177
+
178
+
179
+ <div class="sectiontitle">Constants</div>
180
+ <table border='0' cellpadding='5'>
181
+ <tr valign='top'>
182
+ <td class="attr-name">DEFAULT_FRAMEWORK_SPAWNER_MAX_IDLE_TIME</td>
183
+ <td>=</td>
184
+ <td class="attr-value">30 * 60</td>
185
+ </tr>
186
+ <tr valign='top'>
187
+ <td class="attr-name">DEFAULT_APP_SPAWNER_MAX_IDLE_TIME</td>
188
+ <td>=</td>
189
+ <td class="attr-value">10 * 60</td>
190
+ </tr>
191
+ <tr valign='top'>
192
+ <td class="attr-name">ROOT_UID</td>
193
+ <td>=</td>
194
+ <td class="attr-value">0</td>
195
+ </tr>
196
+ <tr valign='top'>
197
+ <td class="attr-name">ROOT_GID</td>
198
+ <td>=</td>
199
+ <td class="attr-value">0</td>
200
+ </tr>
201
+ <tr valign='top'>
202
+ <td class="attr-name">PASSENGER_ANALYTICS_WEB_LOG</td>
203
+ <td>=</td>
204
+ <td class="attr-value">&quot;PASSENGER_ANALYTICS_WEB_LOG&quot;</td>
205
+ </tr>
206
+ <tr valign='top'>
207
+ <td class="attr-name">PASSENGER_TXN_ID</td>
208
+ <td>=</td>
209
+ <td class="attr-value">&quot;PASSENGER_TXN_ID&quot;</td>
210
+ </tr>
211
+ <tr valign='top'>
212
+ <td class="attr-name">PASSENGER_GROUP_NAME</td>
213
+ <td>=</td>
214
+ <td class="attr-value">&quot;PASSENGER_GROUP_NAME&quot;</td>
215
+ </tr>
216
+ <tr valign='top'>
217
+ <td class="attr-name">PASSENGER_UNION_STATION_KEY</td>
218
+ <td>=</td>
219
+ <td class="attr-value">&quot;PASSENGER_UNION_STATION_KEY&quot;</td>
220
+ </tr>
221
+ </table>
222
+
223
+ <div class="sectiontitle">Attributes</div>
224
+ <table border='0' cellpadding='5'>
225
+ <tr valign='top'>
226
+ <td class='attr-rw'>
227
+ [RW]
228
+ </td>
229
+ <td class='attr-name'>_spawn_options</td>
230
+ <td class='attr-desc'>
231
+ Set during spawning, and set back to nil when spawning is done.
232
+
233
+ </td>
234
+ </tr>
235
+ </table>
236
+
237
+ <div class="sectiontitle">Public Class methods</div>
238
+ <div class="method">
239
+ <div class="title">
240
+ <a name="M000017"></a><b>benchmark</b>(env = nil, title = &quot;Benchmarking&quot;) {|| ...}
241
+ </div>
242
+ <div class="sourcecode">
243
+ <p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p>
244
+ <div id="M000017_source" class="dyn-source">
245
+ <pre>
246
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/public_api.rb, line 52</span>
247
+ 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">benchmark</span>(<span class="ruby-identifier">env</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">title</span> = <span class="ruby-value str">&quot;Benchmarking&quot;</span>)
248
+ 53: <span class="ruby-identifier">log</span> = <span class="ruby-identifier">lookup_analytics_log</span>(<span class="ruby-identifier">env</span>)
249
+ 54: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">log</span>
250
+ 55: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">measure</span>(<span class="ruby-node">&quot;BENCHMARK: #{title}&quot;</span>) <span class="ruby-keyword kw">do</span>
251
+ 56: <span class="ruby-keyword kw">yield</span>
252
+ 57: <span class="ruby-keyword kw">end</span>
253
+ 58: <span class="ruby-keyword kw">else</span>
254
+ 59: <span class="ruby-keyword kw">yield</span>
255
+ 60: <span class="ruby-keyword kw">end</span>
256
+ 61: <span class="ruby-keyword kw">end</span>
257
+ </pre>
258
+ </div>
259
+ </div>
260
+ </div>
261
+ <div class="method">
262
+ <div class="title">
263
+ <a name="M000015"></a><b>call_event</b>(name, *args)
264
+ </div>
265
+ <div class="sourcecode">
266
+ <p class="source-link">[ <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show source</a> ]</p>
267
+ <div id="M000015_source" class="dyn-source">
268
+ <pre>
269
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/public_api.rb, line 38</span>
270
+ 38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_event</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
271
+ 39: <span class="ruby-identifier">callback_list_for_event</span>(<span class="ruby-identifier">name</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">callback</span><span class="ruby-operator">|</span>
272
+ 40: <span class="ruby-identifier">callback</span>.<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
273
+ 41: <span class="ruby-keyword kw">end</span>
274
+ 42: <span class="ruby-keyword kw">end</span>
275
+ </pre>
276
+ </div>
277
+ </div>
278
+ </div>
279
+ <div class="method">
280
+ <div class="title">
281
+ <a name="M000016"></a><b>install_framework_extensions!</b>()
282
+ </div>
283
+ <div class="sourcecode">
284
+ <p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p>
285
+ <div id="M000016_source" class="dyn-source">
286
+ <pre>
287
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/public_api.rb, line 44</span>
288
+ 44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_framework_extensions!</span>
289
+ 45: <span class="ruby-identifier">require</span> <span class="ruby-value str">'rails/version'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Rails</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-keyword kw">defined?</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Rails</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span>)
290
+ 46: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Rails</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">::</span><span class="ruby-constant">Rails</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span><span class="ruby-operator">::</span><span class="ruby-constant">MAJOR</span> <span class="ruby-operator">==</span> <span class="ruby-value">3</span>
291
+ 47: <span class="ruby-identifier">require</span> <span class="ruby-value str">'phusion_passenger/rails3_extensions/init'</span>
292
+ 48: <span class="ruby-constant">Rails3Extensions</span>.<span class="ruby-identifier">init!</span>(<span class="ruby-identifier">_spawn_options</span>)
293
+ 49: <span class="ruby-keyword kw">end</span>
294
+ 50: <span class="ruby-keyword kw">end</span>
295
+ </pre>
296
+ </div>
297
+ </div>
298
+ </div>
299
+ <div class="method">
300
+ <div class="title">
301
+ <a name="M000018"></a><b>log_cache_hit</b>(env, name)
302
+ </div>
303
+ <div class="sourcecode">
304
+ <p class="source-link">[ <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show source</a> ]</p>
305
+ <div id="M000018_source" class="dyn-source">
306
+ <pre>
307
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/public_api.rb, line 63</span>
308
+ 63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_cache_hit</span>(<span class="ruby-identifier">env</span>, <span class="ruby-identifier">name</span>)
309
+ 64: <span class="ruby-identifier">log</span> = <span class="ruby-identifier">lookup_analytics_log</span>(<span class="ruby-identifier">env</span>)
310
+ 65: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">log</span>
311
+ 66: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">message</span>(<span class="ruby-node">&quot;Cache hit: #{name}&quot;</span>)
312
+ 67: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
313
+ 68: <span class="ruby-keyword kw">else</span>
314
+ 69: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
315
+ 70: <span class="ruby-keyword kw">end</span>
316
+ 71: <span class="ruby-keyword kw">end</span>
317
+ </pre>
318
+ </div>
319
+ </div>
320
+ </div>
321
+ <div class="method">
322
+ <div class="title">
323
+ <a name="M000019"></a><b>log_cache_miss</b>(env, name, generation_time = nil)
324
+ </div>
325
+ <div class="sourcecode">
326
+ <p class="source-link">[ <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show source</a> ]</p>
327
+ <div id="M000019_source" class="dyn-source">
328
+ <pre>
329
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/public_api.rb, line 73</span>
330
+ 73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_cache_miss</span>(<span class="ruby-identifier">env</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">generation_time</span> = <span class="ruby-keyword kw">nil</span>)
331
+ 74: <span class="ruby-identifier">log</span> = <span class="ruby-identifier">lookup_analytics_log</span>(<span class="ruby-identifier">env</span>)
332
+ 75: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">log</span>
333
+ 76: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">generation_time</span>
334
+ 77: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">message</span>(<span class="ruby-node">&quot;Cache miss (#{generation_time.to_i}): #{name}&quot;</span>)
335
+ 78: <span class="ruby-keyword kw">else</span>
336
+ 79: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">message</span>(<span class="ruby-node">&quot;Cache miss: #{name}&quot;</span>)
337
+ 80: <span class="ruby-keyword kw">end</span>
338
+ 81: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
339
+ 82: <span class="ruby-keyword kw">else</span>
340
+ 83: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
341
+ 84: <span class="ruby-keyword kw">end</span>
342
+ 85: <span class="ruby-keyword kw">end</span>
343
+ </pre>
344
+ </div>
345
+ </div>
346
+ </div>
347
+ <div class="method">
348
+ <div class="title">
349
+ <a name="M000014"></a><b>on_event</b>(name, &amp;block)
350
+ </div>
351
+ <div class="sourcecode">
352
+ <p class="source-link">[ <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show source</a> ]</p>
353
+ <div id="M000014_source" class="dyn-source">
354
+ <pre>
355
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/public_api.rb, line 34</span>
356
+ 34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">on_event</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
357
+ 35: <span class="ruby-identifier">callback_list_for_event</span>(<span class="ruby-identifier">name</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">block</span>
358
+ 36: <span class="ruby-keyword kw">end</span>
359
+ </pre>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+
365
+ </div>
366
+
367
+ </body>
368
+ </html>
@@ -0,0 +1,180 @@
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::AbstractInstaller</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::AbstractInstaller</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/abstract_installer_rb.html">lib/phusion_passenger/abstract_installer.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
+ <div class="description"><p>
79
+ Abstract base class for text mode installers. Used by
80
+ passenger-install-apache2-module and passenger-install-nginx-module.
81
+ </p>
82
+ <p>
83
+ Subclasses must at least implement the #install! method which handles the
84
+ installation itself.
85
+ </p>
86
+ <p>
87
+ Usage:
88
+ </p>
89
+ <pre>
90
+ installer = ConcereteInstallerClass.new(options...)
91
+ installer.start
92
+ </pre>
93
+ </div>
94
+
95
+
96
+
97
+ <div class="sectiontitle">Methods</div>
98
+ <ul>
99
+ <li><a href="#M000365">new</a></li>
100
+ <li><a href="#M000366">start</a></li>
101
+ </ul>
102
+
103
+
104
+
105
+
106
+ <div class="sectiontitle">Constants</div>
107
+ <table border='0' cellpadding='5'>
108
+ <tr valign='top'>
109
+ <td class="attr-name">PASSENGER_WEBSITE</td>
110
+ <td>=</td>
111
+ <td class="attr-value">&quot;http://www.modrails.com/&quot;</td>
112
+ </tr>
113
+ <tr valign='top'>
114
+ <td class="attr-name">PHUSION_WEBSITE</td>
115
+ <td>=</td>
116
+ <td class="attr-value">&quot;www.phusion.nl&quot;</td>
117
+ </tr>
118
+ </table>
119
+
120
+
121
+ <div class="sectiontitle">Public Class methods</div>
122
+ <div class="method">
123
+ <div class="title">
124
+ <a name="M000365"></a><b>new</b>(options = {})
125
+ </div>
126
+ <div class="description">
127
+ <p>
128
+ Create an <a href="AbstractInstaller.html">AbstractInstaller</a>. All
129
+ options will be stored as instance variables, for example:
130
+ </p>
131
+ <pre>
132
+ installer = AbstractInstaller.new(:foo =&gt; &quot;bar&quot;)
133
+ installer.instance_variable_get(:&quot;@foo&quot;) # =&gt; &quot;bar&quot;
134
+ </pre>
135
+ </div>
136
+ <div class="sourcecode">
137
+ <p class="source-link">[ <a href="javascript:toggleSource('M000365_source')" id="l_M000365_source">show source</a> ]</p>
138
+ <div id="M000365_source" class="dyn-source">
139
+ <pre>
140
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_installer.rb, line 54</span>
141
+ 54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span> = {})
142
+ 55: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
143
+ 56: <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">&quot;@#{key}&quot;</span><span class="ruby-node">&quot;@#{key}&quot;</span>, <span class="ruby-identifier">value</span>)
144
+ 57: <span class="ruby-keyword kw">end</span>
145
+ 58: <span class="ruby-keyword kw">end</span>
146
+ </pre>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ <div class="sectiontitle">Public Instance methods</div>
151
+ <div class="method">
152
+ <div class="title">
153
+ <a name="M000366"></a><b>start</b>()
154
+ </div>
155
+ <div class="description">
156
+ <p>
157
+ Start the installation by calling the #install! method.
158
+ </p>
159
+ </div>
160
+ <div class="sourcecode">
161
+ <p class="source-link">[ <a href="javascript:toggleSource('M000366_source')" id="l_M000366_source">show source</a> ]</p>
162
+ <div id="M000366_source" class="dyn-source">
163
+ <pre>
164
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/abstract_installer.rb, line 61</span>
165
+ 61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
166
+ 62: <span class="ruby-identifier">before_install</span>
167
+ 63: <span class="ruby-identifier">install!</span>
168
+ 64: <span class="ruby-keyword kw">ensure</span>
169
+ 65: <span class="ruby-identifier">after_install</span>
170
+ 66: <span class="ruby-keyword kw">end</span>
171
+ </pre>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ </div>
178
+
179
+ </body>
180
+ </html>