passenger 3.0.0.pre2 → 3.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

Files changed (182) hide show
  1. data/bin/passenger-status +1 -1
  2. data/build/packaging.rb +4 -7
  3. data/build/ruby_extension.rb +5 -5
  4. data/ext/common/Constants.h +1 -1
  5. data/ext/common/LoggingAgent/RemoteSender.h +3 -1
  6. data/ext/nginx/ngx_http_passenger_module.c +1 -1
  7. data/ext/{phusion_passenger → ruby}/extconf.rb +1 -1
  8. data/ext/{phusion_passenger/native_support.c → ruby/passenger_native_support.c} +1 -1
  9. data/lib/phusion_passenger.rb +5 -6
  10. data/lib/phusion_passenger/dependencies.rb +23 -0
  11. data/lib/phusion_passenger/native_support.rb +123 -65
  12. data/lib/phusion_passenger/packaging.rb +1 -1
  13. data/lib/phusion_passenger/platform_info/apache.rb +1 -1
  14. data/lib/phusion_passenger/platform_info/compiler.rb +25 -1
  15. data/lib/phusion_passenger/platform_info/ruby.rb +36 -5
  16. data/lib/phusion_passenger/standalone/runtime_installer.rb +5 -4
  17. data/lib/phusion_passenger/utils.rb +62 -1
  18. data/test/ruby/utils_spec.rb +62 -0
  19. data/test/support/test_helper.rb +2 -0
  20. metadata +6 -168
  21. data/doc/rdoc/classes/ConditionVariable.html +0 -215
  22. data/doc/rdoc/classes/Exception.html +0 -120
  23. data/doc/rdoc/classes/GC.html +0 -113
  24. data/doc/rdoc/classes/IO.html +0 -221
  25. data/doc/rdoc/classes/PhusionPassenger.html +0 -368
  26. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +0 -180
  27. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +0 -647
  28. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +0 -654
  29. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html +0 -92
  30. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +0 -97
  31. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +0 -96
  32. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +0 -97
  33. data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +0 -96
  34. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +0 -619
  35. data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +0 -142
  36. data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html +0 -368
  37. data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html +0 -231
  38. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html +0 -588
  39. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html +0 -92
  40. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html +0 -92
  41. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html +0 -147
  42. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html +0 -279
  43. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html +0 -92
  44. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html +0 -92
  45. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html +0 -123
  46. data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html +0 -92
  47. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html +0 -341
  48. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html +0 -294
  49. data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html +0 -199
  50. data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +0 -155
  51. data/doc/rdoc/classes/PhusionPassenger/AppProcess.html +0 -367
  52. data/doc/rdoc/classes/PhusionPassenger/ClassicRails.html +0 -95
  53. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html +0 -351
  54. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html +0 -98
  55. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html +0 -200
  56. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html +0 -410
  57. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html +0 -98
  58. data/doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html +0 -156
  59. data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html +0 -115
  60. data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html +0 -202
  61. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +0 -172
  62. data/doc/rdoc/classes/PhusionPassenger/DebugLogging.html +0 -273
  63. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +0 -145
  64. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +0 -162
  65. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +0 -141
  66. data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +0 -92
  67. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +0 -673
  68. data/doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html +0 -92
  69. data/doc/rdoc/classes/PhusionPassenger/MessageClient.html +0 -415
  70. data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +0 -494
  71. data/doc/rdoc/classes/PhusionPassenger/NativeSupport/FileSystemWatcher.html +0 -96
  72. data/doc/rdoc/classes/PhusionPassenger/Packaging.html +0 -129
  73. data/doc/rdoc/classes/PhusionPassenger/PlatformInfo.html +0 -1758
  74. data/doc/rdoc/classes/PhusionPassenger/Plugin.html +0 -237
  75. data/doc/rdoc/classes/PhusionPassenger/Rack.html +0 -91
  76. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +0 -312
  77. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html +0 -98
  78. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +0 -218
  79. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html +0 -114
  80. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html +0 -256
  81. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html +0 -139
  82. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html +0 -118
  83. data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html +0 -135
  84. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +0 -378
  85. data/doc/rdoc/classes/PhusionPassenger/Standalone.html +0 -111
  86. data/doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html +0 -252
  87. data/doc/rdoc/classes/PhusionPassenger/Standalone/Command.html +0 -161
  88. data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html +0 -368
  89. data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html +0 -132
  90. data/doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html +0 -151
  91. data/doc/rdoc/classes/PhusionPassenger/Standalone/Main.html +0 -189
  92. data/doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html +0 -177
  93. data/doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html +0 -341
  94. data/doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html +0 -203
  95. data/doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html +0 -156
  96. data/doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html +0 -168
  97. data/doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html +0 -86
  98. data/doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html +0 -135
  99. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +0 -125
  100. data/doc/rdoc/classes/PhusionPassenger/Utils.html +0 -1468
  101. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html +0 -204
  102. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html +0 -171
  103. data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html +0 -140
  104. data/doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html +0 -260
  105. data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +0 -169
  106. data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +0 -265
  107. data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +0 -120
  108. data/doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html +0 -561
  109. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +0 -140
  110. data/doc/rdoc/classes/PhusionPassenger/WSGI.html +0 -89
  111. data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +0 -182
  112. data/doc/rdoc/classes/Process.html +0 -115
  113. data/doc/rdoc/classes/Signal.html +0 -139
  114. data/doc/rdoc/created.rid +0 -1
  115. data/doc/rdoc/files/DEVELOPERS_TXT.html +0 -276
  116. data/doc/rdoc/files/README.html +0 -157
  117. data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +0 -92
  118. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +0 -130
  119. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +0 -135
  120. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +0 -126
  121. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +0 -128
  122. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html +0 -126
  123. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html +0 -132
  124. data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +0 -122
  125. data/doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html +0 -129
  126. data/doc/rdoc/files/lib/phusion_passenger/app_process_rb.html +0 -127
  127. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html +0 -141
  128. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html +0 -126
  129. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html +0 -146
  130. data/doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html +0 -125
  131. data/doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html +0 -132
  132. data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +0 -126
  133. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +0 -122
  134. data/doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html +0 -122
  135. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +0 -147
  136. data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +0 -122
  137. data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +0 -127
  138. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +0 -120
  139. data/doc/rdoc/files/lib/phusion_passenger/message_client_rb.html +0 -127
  140. data/doc/rdoc/files/lib/phusion_passenger/native_support_rb.html +0 -131
  141. data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +0 -122
  142. data/doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html +0 -127
  143. data/doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html +0 -129
  144. data/doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html +0 -126
  145. data/doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html +0 -126
  146. data/doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html +0 -126
  147. data/doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html +0 -126
  148. data/doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html +0 -127
  149. data/doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html +0 -128
  150. data/doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html +0 -126
  151. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +0 -122
  152. data/doc/rdoc/files/lib/phusion_passenger/plugin_rb.html +0 -127
  153. data/doc/rdoc/files/lib/phusion_passenger/public_api_rb.html +0 -127
  154. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +0 -137
  155. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +0 -125
  156. data/doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html +0 -127
  157. data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +0 -122
  158. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +0 -160
  159. data/doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html +0 -127
  160. data/doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html +0 -135
  161. data/doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html +0 -126
  162. data/doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html +0 -126
  163. data/doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html +0 -126
  164. data/doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html +0 -127
  165. data/doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html +0 -132
  166. data/doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html +0 -136
  167. data/doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html +0 -126
  168. data/doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html +0 -126
  169. data/doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html +0 -126
  170. data/doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html +0 -127
  171. data/doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html +0 -126
  172. data/doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html +0 -120
  173. data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +0 -100
  174. data/doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html +0 -122
  175. data/doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html +0 -126
  176. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +0 -179
  177. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +0 -132
  178. data/doc/rdoc/fr_class_index.html +0 -139
  179. data/doc/rdoc/fr_file_index.html +0 -109
  180. data/doc/rdoc/fr_method_index.html +0 -435
  181. data/doc/rdoc/index.html +0 -26
  182. data/doc/rdoc/rdoc-style.css +0 -187
@@ -1,151 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>Class: PhusionPassenger::Standalone::HelpCommand</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::HelpCommand</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/help_command_rb.html">lib/phusion_passenger/standalone/help_command.rb</a>
61
- </td>
62
- </tr>
63
- <tr>
64
- <td>Parent:</td>
65
- <td>
66
- <a href="Command.html">
67
- Command
68
- </a>
69
- </td>
70
- </tr>
71
- </table>
72
- </td>
73
- </tr>
74
- </table>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
- <div id="content">
79
-
80
-
81
-
82
-
83
- <div class="sectiontitle">Methods</div>
84
- <ul>
85
- <li><a href="#M000108">run</a></li>
86
- <li><a href="#M000107">show_in_command_list</a></li>
87
- </ul>
88
-
89
-
90
-
91
-
92
-
93
-
94
- <div class="sectiontitle">Public Class methods</div>
95
- <div class="method">
96
- <div class="title">
97
- <a name="M000107"></a><b>show_in_command_list</b>()
98
- </div>
99
- <div class="sourcecode">
100
- <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p>
101
- <div id="M000107_source" class="dyn-source">
102
- <pre>
103
- <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/help_command.rb, line 29</span>
104
- 29: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">show_in_command_list</span>
105
- 30: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
106
- 31: <span class="ruby-keyword kw">end</span>
107
- </pre>
108
- </div>
109
- </div>
110
- </div>
111
- <div class="sectiontitle">Public Instance methods</div>
112
- <div class="method">
113
- <div class="title">
114
- <a name="M000108"></a><b>run</b>()
115
- </div>
116
- <div class="sourcecode">
117
- <p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p>
118
- <div id="M000108_source" class="dyn-source">
119
- <pre>
120
- <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/help_command.rb, line 33</span>
121
- 33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
122
- 34: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Phusion Passenger Standalone, the easiest way to deploy Ruby web apps.&quot;</span>
123
- 35: <span class="ruby-identifier">puts</span>
124
- 36: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Available commands:&quot;</span>
125
- 37: <span class="ruby-identifier">puts</span>
126
- 38: <span class="ruby-constant">Main</span>.<span class="ruby-identifier">each_command</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">command_name</span>, <span class="ruby-identifier">command_class</span><span class="ruby-operator">|</span>
127
- 39: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">command_class</span>.<span class="ruby-identifier">show_in_command_list</span>
128
- 40: <span class="ruby-identifier">printf</span> <span class="ruby-value str">&quot; passenger %-15s %s\n&quot;</span>,
129
- 41: <span class="ruby-identifier">command_name</span>,
130
- 42: <span class="ruby-identifier">wrap_desc</span>(<span class="ruby-identifier">command_class</span>.<span class="ruby-identifier">description</span>, <span class="ruby-value">51</span>, <span class="ruby-value">29</span>)
131
- 43: <span class="ruby-keyword kw">end</span>
132
- 44: <span class="ruby-keyword kw">end</span>
133
- 45: <span class="ruby-identifier">puts</span>
134
- 46: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Special options:&quot;</span>
135
- 47: <span class="ruby-identifier">puts</span>
136
- 48: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot; passenger --help Display this help message.&quot;</span>
137
- 49: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot; passenger --version Display version number.&quot;</span>
138
- 50: <span class="ruby-identifier">puts</span>
139
- 51: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;For more information about a specific command, please type&quot;</span>
140
- 52: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;'passenger &lt;COMMAND&gt; --help', e.g. 'passenger start --help'.&quot;</span>
141
- 53: <span class="ruby-keyword kw">end</span>
142
- </pre>
143
- </div>
144
- </div>
145
- </div>
146
- </div>
147
-
148
- </div>
149
-
150
- </body>
151
- </html>
@@ -1,189 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>Class: PhusionPassenger::Standalone::Main</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::Main</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/main_rb.html">lib/phusion_passenger/standalone/main.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="#M000105">each_command</a></li>
84
- <li><a href="#M000104">run!</a></li>
85
- <li><a href="#M000106">run!</a></li>
86
- </ul>
87
-
88
-
89
-
90
-
91
- <div class="sectiontitle">Constants</div>
92
- <table border='0' cellpadding='5'>
93
- <tr valign='top'>
94
- <td class="attr-name">COMMANDS</td>
95
- <td>=</td>
96
- <td class="attr-value">[ ['start', 'StartCommand'], ['stop', 'StopCommand'], ['status', 'StatusCommand'], ['package-runtime', 'PackageRuntimeCommand'], ['version', 'VersionCommand'], ['help', 'HelpCommand']</td>
97
- </tr>
98
- </table>
99
-
100
-
101
- <div class="sectiontitle">Public Class methods</div>
102
- <div class="method">
103
- <div class="title">
104
- <a name="M000105"></a><b>each_command</b>() {|command_name, command_class| ...}
105
- </div>
106
- <div class="sourcecode">
107
- <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
108
- <div id="M000105_source" class="dyn-source">
109
- <pre>
110
- <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/main.rb, line 42</span>
111
- 42: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each_command</span>
112
- 43: <span class="ruby-constant">COMMANDS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">command_spec</span><span class="ruby-operator">|</span>
113
- 44: <span class="ruby-identifier">command_name</span> = <span class="ruby-identifier">command_spec</span>[<span class="ruby-value">0</span>]
114
- 45: <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">command_name</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/-/</span>, <span class="ruby-value str">'_'</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;_command&quot;</span>
115
- 46: <span class="ruby-identifier">require</span> <span class="ruby-node">&quot;phusion_passenger/standalone/#{filename}&quot;</span>
116
- 47: <span class="ruby-identifier">command_class</span> = <span class="ruby-constant">Standalone</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">command_spec</span>[<span class="ruby-value">1</span>])
117
- 48: <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">command_name</span>, <span class="ruby-identifier">command_class</span>)
118
- 49: <span class="ruby-keyword kw">end</span>
119
- 50: <span class="ruby-keyword kw">end</span>
120
- </pre>
121
- </div>
122
- </div>
123
- </div>
124
- <div class="method">
125
- <div class="title">
126
- <a name="M000104"></a><b>run!</b>(argv)
127
- </div>
128
- <div class="sourcecode">
129
- <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
130
- <div id="M000104_source" class="dyn-source">
131
- <pre>
132
- <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/main.rb, line 38</span>
133
- 38: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run!</span>(<span class="ruby-identifier">argv</span>)
134
- 39: <span class="ruby-identifier">new</span>.<span class="ruby-identifier">run!</span>(<span class="ruby-identifier">argv</span>)
135
- 40: <span class="ruby-keyword kw">end</span>
136
- </pre>
137
- </div>
138
- </div>
139
- </div>
140
- <div class="sectiontitle">Public Instance methods</div>
141
- <div class="method">
142
- <div class="title">
143
- <a name="M000106"></a><b>run!</b>(argv)
144
- </div>
145
- <div class="sourcecode">
146
- <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p>
147
- <div id="M000106_source" class="dyn-source">
148
- <pre>
149
- <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/main.rb, line 52</span>
150
- 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run!</span>(<span class="ruby-identifier">argv</span>)
151
- 53: <span class="ruby-identifier">command</span> = <span class="ruby-identifier">argv</span>[<span class="ruby-value">0</span>]
152
- 54: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">command</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">command</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'-h'</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">command</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'--help'</span>
153
- 55: <span class="ruby-identifier">run_command</span>(<span class="ruby-value str">'help'</span>)
154
- 56: <span class="ruby-identifier">exit</span>
155
- 57: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">command</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'-v'</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">command</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'--version'</span>
156
- 58: <span class="ruby-identifier">run_command</span>(<span class="ruby-value str">'version'</span>)
157
- 59: <span class="ruby-identifier">exit</span>
158
- 60: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">command_exists?</span>(<span class="ruby-identifier">command</span>)
159
- 61: <span class="ruby-keyword kw">begin</span>
160
- 62: <span class="ruby-identifier">run_command</span>(<span class="ruby-identifier">command</span>, <span class="ruby-identifier">argv</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
161
- 63: <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
162
- 64: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">OptionParser</span><span class="ruby-operator">::</span><span class="ruby-constant">ParseError</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">OptionParser</span><span class="ruby-operator">::</span><span class="ruby-constant">ParseError</span>)
163
- 65: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>
164
- 66: <span class="ruby-identifier">puts</span>
165
- 67: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Please see '--help' for valid options.&quot;</span>
166
- 68: <span class="ruby-identifier">exit</span> <span class="ruby-value">1</span>
167
- 69: <span class="ruby-keyword kw">elsif</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">ConfigFile</span><span class="ruby-operator">::</span><span class="ruby-constant">DisallowedContextError</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ConfigFile</span><span class="ruby-operator">::</span><span class="ruby-constant">DisallowedContextError</span>)
168
- 70: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;*** Error in #{e.filename} line #{e.line}:&quot;</span>
169
- 71: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>
170
- 72: <span class="ruby-identifier">exit</span> <span class="ruby-value">1</span>
171
- 73: <span class="ruby-keyword kw">else</span>
172
- 74: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>
173
- 75: <span class="ruby-keyword kw">end</span>
174
- 76: <span class="ruby-keyword kw">end</span>
175
- 77: <span class="ruby-keyword kw">else</span>
176
- 78: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Unknown command '#{command}'. Please type --help for options.&quot;</span>
177
- 79: <span class="ruby-identifier">exit</span> <span class="ruby-value">1</span>
178
- 80: <span class="ruby-keyword kw">end</span>
179
- 81: <span class="ruby-keyword kw">end</span>
180
- </pre>
181
- </div>
182
- </div>
183
- </div>
184
- </div>
185
-
186
- </div>
187
-
188
- </body>
189
- </html>
@@ -1,177 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html>
6
- <head>
7
- <title>Class: PhusionPassenger::Standalone::PackageRuntimeCommand</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::PackageRuntimeCommand</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/package_runtime_command_rb.html">lib/phusion_passenger/standalone/package_runtime_command.rb</a>
61
- </td>
62
- </tr>
63
- <tr>
64
- <td>Parent:</td>
65
- <td>
66
- <a href="Command.html">
67
- Command
68
- </a>
69
- </td>
70
- </tr>
71
- </table>
72
- </td>
73
- </tr>
74
- </table>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
- <div id="content">
79
-
80
-
81
-
82
-
83
- <div class="sectiontitle">Methods</div>
84
- <ul>
85
- <li><a href="#M000102">description</a></li>
86
- <li><a href="#M000103">run</a></li>
87
- </ul>
88
-
89
-
90
-
91
-
92
-
93
-
94
- <div class="sectiontitle">Public Class methods</div>
95
- <div class="method">
96
- <div class="title">
97
- <a name="M000102"></a><b>description</b>()
98
- </div>
99
- <div class="sourcecode">
100
- <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p>
101
- <div id="M000102_source" class="dyn-source">
102
- <pre>
103
- <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/package_runtime_command.rb, line 29</span>
104
- 29: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">description</span>
105
- 30: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;Package the Phusion Passenger Standalone runtime.&quot;</span>
106
- 31: <span class="ruby-keyword kw">end</span>
107
- </pre>
108
- </div>
109
- </div>
110
- </div>
111
- <div class="sectiontitle">Public Instance methods</div>
112
- <div class="method">
113
- <div class="title">
114
- <a name="M000103"></a><b>run</b>()
115
- </div>
116
- <div class="sourcecode">
117
- <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
118
- <div id="M000103_source" class="dyn-source">
119
- <pre>
120
- <span class="ruby-comment cmt"># File lib/phusion_passenger/standalone/package_runtime_command.rb, line 33</span>
121
- 33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
122
- 34: <span class="ruby-identifier">destdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-value str">&quot;passenger-standalone&quot;</span>)
123
- 35: <span class="ruby-identifier">description</span> =
124
- 36: <span class="ruby-value str">&quot;Package the Phusion Passenger Standalone runtime into the specified directory. If\n&quot;</span> <span class="ruby-operator">&lt;&lt;</span>
125
- 37: <span class="ruby-node">&quot;DIRECTORY is not given then #{destdir} will be used.&quot;</span>
126
- 38: <span class="ruby-identifier">parse_options!</span>(<span class="ruby-value str">&quot;package [directory]&quot;</span>, <span class="ruby-identifier">description</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">opts</span><span class="ruby-operator">|</span>
127
- 39: <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-value str">&quot;--nginx-version VERSION&quot;</span>, <span class="ruby-constant">String</span>,
128
- 40: <span class="ruby-identifier">wrap_desc</span>(<span class="ruby-node">&quot;Nginx version to use as core (default: #{@options[:nginx_version]})&quot;</span>)) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
129
- 41: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:nginx_version</span>] = <span class="ruby-identifier">value</span>
130
- 42: <span class="ruby-keyword kw">end</span>
131
- 43: <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-value str">&quot;--nginx-tarball FILENAME&quot;</span>, <span class="ruby-constant">String</span>,
132
- 44: <span class="ruby-identifier">wrap_desc</span>(<span class="ruby-value str">&quot;Use the given tarball instead of downloading from the Internet&quot;</span>)) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
133
- 45: <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:nginx_tarball</span>] = <span class="ruby-identifier">value</span>
134
- 46: <span class="ruby-keyword kw">end</span>
135
- 47: <span class="ruby-keyword kw">end</span>
136
- 48:
137
- 49: <span class="ruby-identifier">destdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-ivar">@args</span>[<span class="ruby-value">0</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@args</span>[<span class="ruby-value">0</span>]
138
- 50: <span class="ruby-identifier">runtime_dir</span> = <span class="ruby-node">&quot;#{destdir}/#{runtime_version_string}&quot;</span>
139
- 51: <span class="ruby-identifier">support_dir</span> = <span class="ruby-node">&quot;#{runtime_dir}/support&quot;</span>
140
- 52: <span class="ruby-identifier">nginx_dir</span> = <span class="ruby-node">&quot;#{runtime_dir}/nginx-#{@options[:nginx_version]}&quot;</span>
141
- 53:
142
- 54: <span class="ruby-identifier">sh</span> <span class="ruby-value str">&quot;rm&quot;</span>, <span class="ruby-value str">&quot;-rf&quot;</span>, <span class="ruby-identifier">support_dir</span>
143
- 55: <span class="ruby-identifier">sh</span> <span class="ruby-value str">&quot;rm&quot;</span>, <span class="ruby-value str">&quot;-rf&quot;</span>, <span class="ruby-identifier">nginx_dir</span>
144
- 56:
145
- 57: <span class="ruby-identifier">require</span> <span class="ruby-value str">'phusion_passenger/standalone/runtime_installer'</span>
146
- 58: <span class="ruby-identifier">installer</span> = <span class="ruby-constant">RuntimeInstaller</span>.<span class="ruby-identifier">new</span>(
147
- 59: <span class="ruby-identifier">:source_root</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">SOURCE_ROOT</span>,
148
- 60: <span class="ruby-identifier">:support_dir</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">support_dir</span>,
149
- 61: <span class="ruby-identifier">:nginx_dir</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">nginx_dir</span>,
150
- 62: <span class="ruby-identifier">:version</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:nginx_version</span>],
151
- 63: <span class="ruby-identifier">:tarball</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:nginx_tarball</span>],
152
- 64: <span class="ruby-identifier">:download_binaries</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>)
153
- 65: <span class="ruby-identifier">installer</span>.<span class="ruby-identifier">start</span>
154
- 66:
155
- 67: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">support_dir</span>) <span class="ruby-keyword kw">do</span>
156
- 68: <span class="ruby-identifier">support_dir_name</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">support_dir</span>)
157
- 69: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;cd #{support_dir}&quot;</span>
158
- 70: <span class="ruby-identifier">sh</span> <span class="ruby-node">&quot;tar -c . | gzip --best &gt; ../#{support_dir_name}.tar.gz&quot;</span>
159
- 71: <span class="ruby-keyword kw">end</span>
160
- 72: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">nginx_dir</span>) <span class="ruby-keyword kw">do</span>
161
- 73: <span class="ruby-identifier">nginx_dir_name</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">nginx_dir</span>)
162
- 74: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;cd #{nginx_dir}&quot;</span>
163
- 75: <span class="ruby-identifier">sh</span> <span class="ruby-node">&quot;tar -c . | gzip --best &gt; ../#{nginx_dir_name}.tar.gz&quot;</span>
164
- 76: <span class="ruby-keyword kw">end</span>
165
- 77: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;cd #{runtime_dir}&quot;</span>
166
- 78: <span class="ruby-identifier">sh</span> <span class="ruby-value str">&quot;rm&quot;</span>, <span class="ruby-value str">&quot;-rf&quot;</span>, <span class="ruby-identifier">support_dir</span>, <span class="ruby-identifier">nginx_dir</span>
167
- 79: <span class="ruby-keyword kw">end</span>
168
- </pre>
169
- </div>
170
- </div>
171
- </div>
172
- </div>
173
-
174
- </div>
175
-
176
- </body>
177
- </html>