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>Class: PhusionPassenger::Standalone::ConfigFile</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::Standalone::ConfigFile</td>
55
+ <td align="right">
56
+ <table cellspacing="0" cellpadding="2">
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../../../files/lib/phusion_passenger/standalone/config_file_rb.html">lib/phusion_passenger/standalone/config_file.rb</a>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td>Parent:</td>
65
+ <td>
66
+ Object
67
+ </td>
68
+ </tr>
69
+ </table>
70
+ </td>
71
+ </tr>
72
+ </table>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+ <div id="content">
77
+
78
+
79
+
80
+
81
+ <div class="sectiontitle">Methods</div>
82
+ <ul>
83
+ <li><a href="#M000125">address</a></li>
84
+ <li><a href="#M000137">analytics</a></li>
85
+ <li><a href="#M000133">daemonize</a></li>
86
+ <li><a href="#M000138">debugger</a></li>
87
+ <li><a href="#M000135">domain_name</a></li>
88
+ <li><a href="#M000136">domain_names</a></li>
89
+ <li><a href="#M000128">env</a></li>
90
+ <li><a href="#M000127">environment</a></li>
91
+ <li><a href="#M000131">max_pool_size</a></li>
92
+ <li><a href="#M000132">min_instances</a></li>
93
+ <li><a href="#M000124">new</a></li>
94
+ <li><a href="#M000134">nginx_bin</a></li>
95
+ <li><a href="#M000126">port</a></li>
96
+ <li><a href="#M000130">rack_env</a></li>
97
+ <li><a href="#M000129">rails_env</a></li>
98
+ </ul>
99
+
100
+
101
+
102
+ <div class="sectiontitle">Classes and Modules</div>
103
+ Class <a href="ConfigFile/DisallowedContextError.html" class="link">PhusionPassenger::Standalone::ConfigFile::DisallowedContextError</a><br />
104
+
105
+
106
+
107
+ <div class="sectiontitle">Attributes</div>
108
+ <table border='0' cellpadding='5'>
109
+ <tr valign='top'>
110
+ <td class='attr-rw'>
111
+ [R]
112
+ </td>
113
+ <td class='attr-name'>options</td>
114
+ <td class='attr-desc'></td>
115
+ </tr>
116
+ </table>
117
+
118
+ <div class="sectiontitle">Public Class methods</div>
119
+ <div class="method">
120
+ <div class="title">
121
+ <a name="M000124"></a><b>new</b>(context, filename)
122
+ </div>
123
+ <div class="sourcecode">
124
+ <p class="source-link">[ <a href="javascript:toggleSource('M000124_source')" id="l_M000124_source">show source</a> ]</p>
125
+ <div id="M000124_source" class="dyn-source">
126
+ <pre>
127
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 42</span>
128
+ 42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">context</span>, <span class="ruby-identifier">filename</span>)
129
+ 43: <span class="ruby-ivar">@options</span> = {}
130
+ 44: <span class="ruby-ivar">@context</span> = <span class="ruby-identifier">context</span>
131
+ 45: <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
132
+ 46: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">'r'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
133
+ 47: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">flock</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">LOCK_SH</span>)
134
+ 48: <span class="ruby-identifier">instance_eval</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>, <span class="ruby-identifier">filename</span>)
135
+ 49: <span class="ruby-keyword kw">end</span>
136
+ 50: <span class="ruby-keyword kw">end</span>
137
+ </pre>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ <div class="sectiontitle">Public Instance methods</div>
142
+ <div class="method">
143
+ <div class="title">
144
+ <a name="M000125"></a><b>address</b>(addr)
145
+ </div>
146
+ <div class="sourcecode">
147
+ <p class="source-link">[ <a href="javascript:toggleSource('M000125_source')" id="l_M000125_source">show source</a> ]</p>
148
+ <div id="M000125_source" class="dyn-source">
149
+ <pre>
150
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 52</span>
151
+ 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">address</span>(<span class="ruby-identifier">addr</span>)
152
+ 53: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:port</span>, <span class="ruby-identifier">:global_config</span>)
153
+ 54: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:address</span>] = <span class="ruby-identifier">addr</span>
154
+ 55: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:tcp_explicitly_given</span>] = <span class="ruby-keyword kw">true</span>
155
+ 56: <span class="ruby-keyword kw">end</span>
156
+ </pre>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ <div class="method">
161
+ <div class="title">
162
+ <a name="M000137"></a><b>analytics</b>(value)
163
+ </div>
164
+ <div class="sourcecode">
165
+ <p class="source-link">[ <a href="javascript:toggleSource('M000137_source')" id="l_M000137_source">show source</a> ]</p>
166
+ <div id="M000137_source" class="dyn-source">
167
+ <pre>
168
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 101</span>
169
+ 101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">analytics</span>(<span class="ruby-identifier">value</span>)
170
+ 102: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:analytics</span>] = <span class="ruby-identifier">value</span>
171
+ 103: <span class="ruby-keyword kw">end</span>
172
+ </pre>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ <div class="method">
177
+ <div class="title">
178
+ <a name="M000133"></a><b>daemonize</b>(on)
179
+ </div>
180
+ <div class="sourcecode">
181
+ <p class="source-link">[ <a href="javascript:toggleSource('M000133_source')" id="l_M000133_source">show source</a> ]</p>
182
+ <div id="M000133_source" class="dyn-source">
183
+ <pre>
184
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 81</span>
185
+ 81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">daemonize</span>(<span class="ruby-identifier">on</span>)
186
+ 82: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:daemonize</span>, <span class="ruby-identifier">:global_config</span>)
187
+ 83: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:daemonize</span>] = <span class="ruby-identifier">on</span>
188
+ 84: <span class="ruby-keyword kw">end</span>
189
+ </pre>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ <div class="method">
194
+ <div class="title">
195
+ <a name="M000138"></a><b>debugger</b>(value)
196
+ </div>
197
+ <div class="sourcecode">
198
+ <p class="source-link">[ <a href="javascript:toggleSource('M000138_source')" id="l_M000138_source">show source</a> ]</p>
199
+ <div id="M000138_source" class="dyn-source">
200
+ <pre>
201
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 105</span>
202
+ 105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debugger</span>(<span class="ruby-identifier">value</span>)
203
+ 106: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:debugger</span>] = <span class="ruby-identifier">value</span>
204
+ 107: <span class="ruby-keyword kw">end</span>
205
+ </pre>
206
+ </div>
207
+ </div>
208
+ </div>
209
+ <div class="method">
210
+ <div class="title">
211
+ <a name="M000135"></a><b>domain_name</b>(name)
212
+ </div>
213
+ <div class="sourcecode">
214
+ <p class="source-link">[ <a href="javascript:toggleSource('M000135_source')" id="l_M000135_source">show source</a> ]</p>
215
+ <div id="M000135_source" class="dyn-source">
216
+ <pre>
217
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 91</span>
218
+ 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">domain_name</span>(<span class="ruby-identifier">name</span>)
219
+ 92: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:domain_name</span>, <span class="ruby-identifier">:local_config</span>)
220
+ 93: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:server_names</span>] = [<span class="ruby-identifier">name</span>]
221
+ 94: <span class="ruby-keyword kw">end</span>
222
+ </pre>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ <div class="method">
227
+ <div class="title">
228
+ <a name="M000136"></a><b>domain_names</b>(*names)
229
+ </div>
230
+ <div class="sourcecode">
231
+ <p class="source-link">[ <a href="javascript:toggleSource('M000136_source')" id="l_M000136_source">show source</a> ]</p>
232
+ <div id="M000136_source" class="dyn-source">
233
+ <pre>
234
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 96</span>
235
+ 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">domain_names</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">names</span>)
236
+ 97: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:domain_names</span>, <span class="ruby-identifier">:local_config</span>)
237
+ 98: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:server_names</span>] = <span class="ruby-identifier">names</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">flatten</span>
238
+ 99: <span class="ruby-keyword kw">end</span>
239
+ </pre>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ <div class="method">
244
+ <div class="title">
245
+ <a name="M000128"></a><b>env</b>(name)
246
+ </div>
247
+ <div class="description">
248
+ <p>
249
+ Alias for <a href="ConfigFile.html#M000127">#environment</a>
250
+ </p>
251
+ </div>
252
+ </div>
253
+ <div class="method">
254
+ <div class="title">
255
+ <a name="M000127"></a><b>environment</b>(name)
256
+ </div>
257
+ <div class="aka">
258
+ This method is also aliased as
259
+ <a href="ConfigFile.html#M000128">env</a>
260
+ <a href="ConfigFile.html#M000129">rails_env</a>
261
+ <a href="ConfigFile.html#M000130">rack_env</a>
262
+ </div>
263
+ <div class="sourcecode">
264
+ <p class="source-link">[ <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">show source</a> ]</p>
265
+ <div id="M000127_source" class="dyn-source">
266
+ <pre>
267
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 64</span>
268
+ 64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">environment</span>(<span class="ruby-identifier">name</span>)
269
+ 65: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:env</span>] = <span class="ruby-identifier">name</span>
270
+ 66: <span class="ruby-keyword kw">end</span>
271
+ </pre>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ <div class="method">
276
+ <div class="title">
277
+ <a name="M000131"></a><b>max_pool_size</b>(number)
278
+ </div>
279
+ <div class="sourcecode">
280
+ <p class="source-link">[ <a href="javascript:toggleSource('M000131_source')" id="l_M000131_source">show source</a> ]</p>
281
+ <div id="M000131_source" class="dyn-source">
282
+ <pre>
283
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 72</span>
284
+ 72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">max_pool_size</span>(<span class="ruby-identifier">number</span>)
285
+ 73: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:max_pool_size</span>, <span class="ruby-identifier">:global_config</span>)
286
+ 74: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:max_pool_size</span>] = <span class="ruby-identifier">number</span>
287
+ 75: <span class="ruby-keyword kw">end</span>
288
+ </pre>
289
+ </div>
290
+ </div>
291
+ </div>
292
+ <div class="method">
293
+ <div class="title">
294
+ <a name="M000132"></a><b>min_instances</b>(number)
295
+ </div>
296
+ <div class="sourcecode">
297
+ <p class="source-link">[ <a href="javascript:toggleSource('M000132_source')" id="l_M000132_source">show source</a> ]</p>
298
+ <div id="M000132_source" class="dyn-source">
299
+ <pre>
300
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 77</span>
301
+ 77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">min_instances</span>(<span class="ruby-identifier">number</span>)
302
+ 78: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:min_instances</span>] = <span class="ruby-identifier">number</span>
303
+ 79: <span class="ruby-keyword kw">end</span>
304
+ </pre>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ <div class="method">
309
+ <div class="title">
310
+ <a name="M000134"></a><b>nginx_bin</b>(filename)
311
+ </div>
312
+ <div class="sourcecode">
313
+ <p class="source-link">[ <a href="javascript:toggleSource('M000134_source')" id="l_M000134_source">show source</a> ]</p>
314
+ <div id="M000134_source" class="dyn-source">
315
+ <pre>
316
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 86</span>
317
+ 86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nginx_bin</span>(<span class="ruby-identifier">filename</span>)
318
+ 87: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:nginx_bin</span>, <span class="ruby-identifier">:global_config</span>)
319
+ 88: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:nginx_bin</span>] = <span class="ruby-identifier">filename</span>
320
+ 89: <span class="ruby-keyword kw">end</span>
321
+ </pre>
322
+ </div>
323
+ </div>
324
+ </div>
325
+ <div class="method">
326
+ <div class="title">
327
+ <a name="M000126"></a><b>port</b>(number)
328
+ </div>
329
+ <div class="sourcecode">
330
+ <p class="source-link">[ <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show source</a> ]</p>
331
+ <div id="M000126_source" class="dyn-source">
332
+ <pre>
333
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 58</span>
334
+ 58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">port</span>(<span class="ruby-identifier">number</span>)
335
+ 59: <span class="ruby-identifier">allowed_contexts</span>(<span class="ruby-identifier">:port</span>, <span class="ruby-identifier">:global_config</span>)
336
+ 60: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:port</span>] = <span class="ruby-identifier">number</span>
337
+ 61: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:tcp_explicitly_given</span>] = <span class="ruby-keyword kw">true</span>
338
+ 62: <span class="ruby-keyword kw">end</span>
339
+ </pre>
340
+ </div>
341
+ </div>
342
+ </div>
343
+ <div class="method">
344
+ <div class="title">
345
+ <a name="M000130"></a><b>rack_env</b>(name)
346
+ </div>
347
+ <div class="description">
348
+ <p>
349
+ Alias for <a href="ConfigFile.html#M000127">#environment</a>
350
+ </p>
351
+ </div>
352
+ </div>
353
+ <div class="method">
354
+ <div class="title">
355
+ <a name="M000129"></a><b>rails_env</b>(name)
356
+ </div>
357
+ <div class="description">
358
+ <p>
359
+ Alias for <a href="ConfigFile.html#M000127">#environment</a>
360
+ </p>
361
+ </div>
362
+ </div>
363
+ </div>
364
+
365
+ </div>
366
+
367
+ </body>
368
+ </html>
@@ -0,0 +1,132 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html>
6
+ <head>
7
+ <title>Class: PhusionPassenger::Standalone::ConfigFile::DisallowedContextError</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "show source"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "hide source"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::Standalone::ConfigFile::DisallowedContextError</td>
55
+ <td align="right">
56
+ <table cellspacing="0" cellpadding="2">
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../../../../files/lib/phusion_passenger/standalone/config_file_rb.html">lib/phusion_passenger/standalone/config_file.rb</a>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td>Parent:</td>
65
+ <td>
66
+ StandardError
67
+ </td>
68
+ </tr>
69
+ </table>
70
+ </td>
71
+ </tr>
72
+ </table>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+ <div id="content">
77
+
78
+
79
+
80
+
81
+ <div class="sectiontitle">Methods</div>
82
+ <ul>
83
+ <li><a href="#M000139">new</a></li>
84
+ </ul>
85
+
86
+
87
+
88
+
89
+
90
+ <div class="sectiontitle">Attributes</div>
91
+ <table border='0' cellpadding='5'>
92
+ <tr valign='top'>
93
+ <td class='attr-rw'>
94
+ [R]
95
+ </td>
96
+ <td class='attr-name'>filename</td>
97
+ <td class='attr-desc'></td>
98
+ </tr>
99
+ <tr valign='top'>
100
+ <td class='attr-rw'>
101
+ [R]
102
+ </td>
103
+ <td class='attr-name'>line</td>
104
+ <td class='attr-desc'></td>
105
+ </tr>
106
+ </table>
107
+
108
+ <div class="sectiontitle">Public Class methods</div>
109
+ <div class="method">
110
+ <div class="title">
111
+ <a name="M000139"></a><b>new</b>(message, filename, line)
112
+ </div>
113
+ <div class="sourcecode">
114
+ <p class="source-link">[ <a href="javascript:toggleSource('M000139_source')" id="l_M000139_source">show source</a> ]</p>
115
+ <div id="M000139_source" class="dyn-source">
116
+ <pre>
117
+ <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/config_file.rb, line 33</span>
118
+ 33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">filename</span>, <span class="ruby-identifier">line</span>)
119
+ 34: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>)
120
+ 35: <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
121
+ 36: <span class="ruby-ivar">@line</span> = <span class="ruby-identifier">line</span>
122
+ 37: <span class="ruby-keyword kw">end</span>
123
+ </pre>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </div>
128
+
129
+ </div>
130
+
131
+ </body>
132
+ </html>