autobuild 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. data/CHANGES +8 -0
  2. data/Rakefile +19 -11
  3. data/bin/autobuild +94 -0
  4. data/doc/classes/Autobuild.html +294 -0
  5. data/doc/classes/Autobuild.src/M000034.html +25 -0
  6. data/doc/classes/Autobuild.src/M000035.html +19 -0
  7. data/doc/classes/Autobuild.src/M000036.html +44 -0
  8. data/doc/classes/Autobuild.src/M000037.html +19 -0
  9. data/doc/classes/Autobuild.src/M000038.html +19 -0
  10. data/doc/classes/Autobuild.src/M000039.html +20 -0
  11. data/doc/classes/Autobuild/Autotools.html +284 -0
  12. data/doc/classes/Autobuild/Autotools.src/M000065.html +18 -0
  13. data/doc/classes/Autobuild/Autotools.src/M000066.html +26 -0
  14. data/doc/classes/Autobuild/Autotools.src/M000067.html +38 -0
  15. data/doc/classes/Autobuild/Autotools.src/M000068.html +53 -0
  16. data/doc/classes/Autobuild/Autotools.src/M000069.html +28 -0
  17. data/doc/classes/Autobuild/Autotools.src/M000070.html +23 -0
  18. data/doc/classes/Autobuild/Autotools.src/M000071.html +22 -0
  19. data/doc/classes/Autobuild/CVSImporter.html +156 -0
  20. data/doc/classes/Autobuild/CVSImporter.src/M000048.html +24 -0
  21. data/doc/classes/Autobuild/CVSImporter.src/M000049.html +18 -0
  22. data/doc/classes/Autobuild/CommandNotFound.html +113 -0
  23. data/doc/classes/Autobuild/Config.html +146 -0
  24. data/doc/classes/Autobuild/Config.src/M000040.html +28 -0
  25. data/doc/classes/Autobuild/Config.src/M000041.html +47 -0
  26. data/doc/classes/Autobuild/ConfigException.html +113 -0
  27. data/doc/classes/Autobuild/Exception.html +215 -0
  28. data/doc/classes/Autobuild/Exception.src/M000103.html +16 -0
  29. data/doc/classes/Autobuild/Exception.src/M000104.html +16 -0
  30. data/doc/classes/Autobuild/Exception.src/M000105.html +19 -0
  31. data/doc/classes/Autobuild/Exception.src/M000106.html +19 -0
  32. data/doc/classes/Autobuild/GenomModule.html +229 -0
  33. data/doc/classes/Autobuild/GenomModule.src/M000107.html +20 -0
  34. data/doc/classes/Autobuild/GenomModule.src/M000108.html +16 -0
  35. data/doc/classes/Autobuild/GenomModule.src/M000109.html +18 -0
  36. data/doc/classes/Autobuild/GenomModule.src/M000110.html +29 -0
  37. data/doc/classes/Autobuild/GenomModule.src/M000111.html +19 -0
  38. data/doc/classes/Autobuild/GenomModule.src/M000112.html +26 -0
  39. data/doc/classes/Autobuild/GenomModule.src/M000113.html +35 -0
  40. data/doc/classes/Autobuild/Import.html +169 -0
  41. data/doc/classes/Autobuild/Import.src/M000045.html +18 -0
  42. data/doc/classes/Autobuild/Import.src/M000046.html +18 -0
  43. data/doc/classes/Autobuild/Import.src/M000047.html +18 -0
  44. data/doc/classes/Autobuild/Importer.html +154 -0
  45. data/doc/classes/Autobuild/Importer.src/M000056.html +18 -0
  46. data/doc/classes/Autobuild/Importer.src/M000057.html +38 -0
  47. data/doc/classes/Autobuild/ImporterPackage.html +171 -0
  48. data/doc/classes/Autobuild/ImporterPackage.src/M000115.html +18 -0
  49. data/doc/classes/Autobuild/ImporterPackage.src/M000116.html +22 -0
  50. data/doc/classes/Autobuild/ImporterPackage.src/M000117.html +16 -0
  51. data/doc/classes/Autobuild/Interpolator.html +227 -0
  52. data/doc/classes/Autobuild/Interpolator.src/M000051.html +18 -0
  53. data/doc/classes/Autobuild/Interpolator.src/M000052.html +21 -0
  54. data/doc/classes/Autobuild/Interpolator.src/M000053.html +45 -0
  55. data/doc/classes/Autobuild/Interpolator.src/M000054.html +39 -0
  56. data/doc/classes/Autobuild/Interpolator.src/M000055.html +29 -0
  57. data/doc/classes/Autobuild/MailReporter.html +201 -0
  58. data/doc/classes/Autobuild/MailReporter.src/M000060.html +24 -0
  59. data/doc/classes/Autobuild/MailReporter.src/M000061.html +21 -0
  60. data/doc/classes/Autobuild/MailReporter.src/M000062.html +20 -0
  61. data/doc/classes/Autobuild/MailReporter.src/M000063.html +18 -0
  62. data/doc/classes/Autobuild/MailReporter.src/M000064.html +42 -0
  63. data/doc/classes/Autobuild/Options.html +137 -0
  64. data/doc/classes/Autobuild/Options.src/M000058.html +27 -0
  65. data/doc/classes/Autobuild/Package.html +313 -0
  66. data/doc/classes/Autobuild/Package.src/M000085.html +16 -0
  67. data/doc/classes/Autobuild/Package.src/M000086.html +19 -0
  68. data/doc/classes/Autobuild/Package.src/M000087.html +18 -0
  69. data/doc/classes/Autobuild/Package.src/M000088.html +41 -0
  70. data/doc/classes/Autobuild/Package.src/M000089.html +22 -0
  71. data/doc/classes/Autobuild/Package.src/M000090.html +23 -0
  72. data/doc/classes/Autobuild/Package.src/M000091.html +16 -0
  73. data/doc/classes/Autobuild/Package.src/M000092.html +24 -0
  74. data/doc/classes/Autobuild/Package.src/M000093.html +18 -0
  75. data/doc/classes/Autobuild/Package.src/M000094.html +23 -0
  76. data/doc/classes/Autobuild/PackageException.html +139 -0
  77. data/doc/classes/Autobuild/PackageException.src/M000059.html +16 -0
  78. data/doc/classes/Autobuild/Reporter.html +152 -0
  79. data/doc/classes/Autobuild/Reporter.src/M000074.html +16 -0
  80. data/doc/classes/Autobuild/Reporter.src/M000075.html +16 -0
  81. data/doc/classes/Autobuild/Reporting.html +197 -0
  82. data/doc/classes/Autobuild/Reporting.src/M000095.html +24 -0
  83. data/doc/classes/Autobuild/Reporting.src/M000096.html +18 -0
  84. data/doc/classes/Autobuild/Reporting.src/M000097.html +18 -0
  85. data/doc/classes/Autobuild/Reporting.src/M000098.html +18 -0
  86. data/doc/classes/Autobuild/Reporting.src/M000099.html +18 -0
  87. data/doc/classes/Autobuild/SVNImporter.html +139 -0
  88. data/doc/classes/Autobuild/SVNImporter.src/M000050.html +23 -0
  89. data/doc/classes/Autobuild/SourceTreeTask.html +150 -0
  90. data/doc/classes/Autobuild/SourceTreeTask.src/M000114.html +18 -0
  91. data/doc/classes/Autobuild/StdoutReporter.html +154 -0
  92. data/doc/classes/Autobuild/StdoutReporter.src/M000072.html +18 -0
  93. data/doc/classes/Autobuild/StdoutReporter.src/M000073.html +18 -0
  94. data/doc/classes/Autobuild/SubcommandFailed.html +194 -0
  95. data/doc/classes/Autobuild/SubcommandFailed.src/M000100.html +16 -0
  96. data/doc/classes/Autobuild/SubcommandFailed.src/M000101.html +32 -0
  97. data/doc/classes/Autobuild/SubcommandFailed.src/M000102.html +20 -0
  98. data/doc/classes/Autobuild/Subprocess.html +170 -0
  99. data/doc/classes/Autobuild/Subprocess.src/M000042.html +18 -0
  100. data/doc/classes/Autobuild/Subprocess.src/M000043.html +96 -0
  101. data/doc/classes/Autobuild/Subprocess/Failed.html +150 -0
  102. data/doc/classes/Autobuild/Subprocess/Failed.src/M000044.html +18 -0
  103. data/doc/classes/Autobuild/TarImporter.html +287 -0
  104. data/doc/classes/Autobuild/TarImporter.src/M000076.html +28 -0
  105. data/doc/classes/Autobuild/TarImporter.src/M000077.html +53 -0
  106. data/doc/classes/Autobuild/TarImporter.src/M000078.html +26 -0
  107. data/doc/classes/Autobuild/TarImporter.src/M000079.html +16 -0
  108. data/doc/classes/Autobuild/TarImporter.src/M000080.html +20 -0
  109. data/doc/classes/Autobuild/TarImporter.src/M000081.html +20 -0
  110. data/doc/classes/Autobuild/TarImporter.src/M000082.html +30 -0
  111. data/doc/classes/Autobuild/UndefinedVariable.html +174 -0
  112. data/doc/classes/Autobuild/UndefinedVariable.src/M000083.html +19 -0
  113. data/doc/classes/Autobuild/UndefinedVariable.src/M000084.html +18 -0
  114. data/doc/classes/Hash.html +152 -0
  115. data/doc/classes/Hash.src/M000019.html +26 -0
  116. data/doc/classes/Hash.src/M000020.html +23 -0
  117. data/doc/classes/RMail.html +111 -0
  118. data/doc/classes/RMail/Message.html +137 -0
  119. data/doc/classes/RMail/Message.src/M000033.html +25 -0
  120. data/doc/classes/TC_AttrDefval.html +152 -0
  121. data/doc/classes/TC_AttrDefval.src/M000024.html +31 -0
  122. data/doc/classes/TC_AttrDefval.src/M000025.html +22 -0
  123. data/doc/classes/TC_CVSImport.html +180 -0
  124. data/doc/classes/TC_CVSImport.src/M000026.html +22 -0
  125. data/doc/classes/TC_CVSImport.src/M000027.html +21 -0
  126. data/doc/classes/TC_CVSImport.src/M000028.html +36 -0
  127. data/doc/classes/TC_Config.html +182 -0
  128. data/doc/classes/TC_Config.src/M000001.html +20 -0
  129. data/doc/classes/TC_Config.src/M000002.html +18 -0
  130. data/doc/classes/TC_Config.src/M000003.html +29 -0
  131. data/doc/classes/TC_Config.src/M000004.html +20 -0
  132. data/doc/classes/TC_ConfigInterpolation.html +198 -0
  133. data/doc/classes/TC_ConfigInterpolation.src/M000015.html +18 -0
  134. data/doc/classes/TC_ConfigInterpolation.src/M000016.html +18 -0
  135. data/doc/classes/TC_ConfigInterpolation.src/M000017.html +26 -0
  136. data/doc/classes/TC_ConfigInterpolation.src/M000018.html +24 -0
  137. data/doc/classes/TC_SVNImport.html +180 -0
  138. data/doc/classes/TC_SVNImport.src/M000005.html +22 -0
  139. data/doc/classes/TC_SVNImport.src/M000006.html +21 -0
  140. data/doc/classes/TC_SVNImport.src/M000007.html +43 -0
  141. data/doc/classes/TC_Subcommand.html +208 -0
  142. data/doc/classes/TC_Subcommand.src/M000021.html +31 -0
  143. data/doc/classes/TC_Subcommand.src/M000022.html +18 -0
  144. data/doc/classes/TC_Subcommand.src/M000023.html +30 -0
  145. data/doc/classes/TC_TarImporter.html +247 -0
  146. data/doc/classes/TC_TarImporter.src/M000008.html +28 -0
  147. data/doc/classes/TC_TarImporter.src/M000009.html +21 -0
  148. data/doc/classes/TC_TarImporter.src/M000010.html +20 -0
  149. data/doc/classes/TC_TarImporter.src/M000011.html +20 -0
  150. data/doc/classes/TC_TarImporter.src/M000012.html +26 -0
  151. data/doc/classes/TC_TarImporter.src/M000013.html +31 -0
  152. data/doc/classes/TC_TarImporter.src/M000014.html +24 -0
  153. data/doc/classes/TestTools.html +189 -0
  154. data/doc/classes/TestTools.src/M000029.html +19 -0
  155. data/doc/classes/TestTools.src/M000030.html +18 -0
  156. data/doc/classes/TestTools.src/M000031.html +25 -0
  157. data/doc/classes/TestTools.src/M000032.html +24 -0
  158. data/doc/created.rid +1 -0
  159. data/doc/files/lib/autobuild/config-interpolator_rb.html +108 -0
  160. data/doc/files/lib/autobuild/config_rb.html +113 -0
  161. data/doc/files/lib/autobuild/environment_rb.html +101 -0
  162. data/doc/files/lib/autobuild/exceptions_rb.html +101 -0
  163. data/doc/files/lib/autobuild/import/cvs_rb.html +109 -0
  164. data/doc/files/lib/autobuild/import/svn_rb.html +109 -0
  165. data/doc/files/lib/autobuild/import/tar_rb.html +108 -0
  166. data/doc/files/lib/autobuild/importer_rb.html +108 -0
  167. data/doc/files/lib/autobuild/options_rb.html +101 -0
  168. data/doc/files/lib/autobuild/package_rb.html +110 -0
  169. data/doc/files/lib/autobuild/packages/autotools_rb.html +111 -0
  170. data/doc/files/lib/autobuild/packages/genom_rb.html +109 -0
  171. data/doc/files/lib/autobuild/packages/import_rb.html +109 -0
  172. data/doc/files/lib/autobuild/reporting_rb.html +113 -0
  173. data/doc/files/lib/autobuild/subcommand_rb.html +108 -0
  174. data/doc/files/lib/autobuild/timestamps_rb.html +123 -0
  175. data/doc/files/test/base_rb.html +113 -0
  176. data/doc/files/test/test_attr_defval_rb.html +109 -0
  177. data/doc/files/test/test_config_interpolation_rb.html +111 -0
  178. data/doc/files/test/test_config_rb.html +111 -0
  179. data/doc/files/test/test_import_cvs_rb.html +119 -0
  180. data/doc/files/test/test_import_svn_rb.html +119 -0
  181. data/doc/files/test/test_import_tar_rb.html +120 -0
  182. data/doc/files/test/test_subcommand_rb.html +120 -0
  183. data/doc/files/test/tools_rb.html +110 -0
  184. data/doc/fr_class_index.html +63 -0
  185. data/doc/fr_file_index.html +51 -0
  186. data/doc/fr_method_index.html +143 -0
  187. data/doc/index.html +24 -0
  188. data/doc/rdoc-style.css +208 -0
  189. data/test/base.rb +8 -0
  190. data/test/test_attr_defval.rb +29 -0
  191. data/test/test_config.rb +40 -0
  192. data/test/test_config_interpolation.rb +57 -0
  193. data/test/test_import_cvs.rb +52 -0
  194. data/test/test_import_svn.rb +58 -0
  195. data/test/test_import_tar.rb +88 -0
  196. data/test/test_subcommand.rb +63 -0
  197. data/test/tools.rb +39 -0
  198. metadata +274 -8
@@ -0,0 +1,22 @@
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
+
6
+ <html>
7
+ <head>
8
+ <title>setup (TC_SVNImport)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File test/test_import_svn.rb, line 13</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
15
+ <span class="ruby-identifier">$PROGRAMS</span> = {}
16
+ <span class="ruby-identifier">$UPDATE</span> = <span class="ruby-keyword kw">true</span>
17
+ <span class="ruby-identifier">$LOGDIR</span> = <span class="ruby-node">&quot;#{TestTools.tempdir}/log&quot;</span>
18
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">$LOGDIR</span>)
19
+
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,21 @@
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
+
6
+ <html>
7
+ <head>
8
+ <title>teardown (TC_SVNImport)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File test/test_import_svn.rb, line 21</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span>
15
+ <span class="ruby-identifier">$PROGRAMS</span> = <span class="ruby-keyword kw">nil</span>
16
+ <span class="ruby-identifier">$UPDATE</span> = <span class="ruby-keyword kw">true</span>
17
+ <span class="ruby-identifier">$LOGDIR</span> = <span class="ruby-keyword kw">nil</span>
18
+ <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">clean</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,43 @@
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
+
6
+ <html>
7
+ <head>
8
+ <title>test_svn (TC_SVNImport)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File test/test_import_svn.rb, line 28</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_svn</span>
15
+ <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">untar</span>(<span class="ruby-value str">'svnroot.tar'</span>)
16
+ <span class="ruby-identifier">svnrepo</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'svnroot'</span>)
17
+ <span class="ruby-identifier">svnroot</span> = <span class="ruby-node">&quot;file:///#{svnrepo}&quot;</span>
18
+ <span class="ruby-identifier">pkg_svn</span> = <span class="ruby-constant">Package</span>.<span class="ruby-identifier">new</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'svn'</span>), <span class="ruby-identifier">:svn</span>
19
+
20
+ <span class="ruby-comment cmt"># Make a checkout with a splitted URL</span>
21
+ <span class="ruby-identifier">importer</span> = <span class="ruby-constant">Import</span>.<span class="ruby-identifier">svn</span> [ <span class="ruby-identifier">svnroot</span>, <span class="ruby-value str">'svn'</span> ], {}
22
+ <span class="ruby-identifier">importer</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">pkg_svn</span>)
23
+ <span class="ruby-identifier">assert</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">pkg_svn</span>.<span class="ruby-identifier">srcdir</span>, <span class="ruby-value str">'test'</span>)) )
24
+
25
+ <span class="ruby-comment cmt"># Make a checkout with an URL as a string</span>
26
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">pkg_svn</span>.<span class="ruby-identifier">srcdir</span>
27
+ <span class="ruby-identifier">importer</span> = <span class="ruby-constant">Import</span>.<span class="ruby-identifier">svn</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">svnroot</span>, <span class="ruby-value str">'svn'</span>), {}
28
+ <span class="ruby-identifier">importer</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">pkg_svn</span>)
29
+ <span class="ruby-identifier">assert</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">pkg_svn</span>.<span class="ruby-identifier">srcdir</span>, <span class="ruby-value str">'test'</span>)) )
30
+
31
+ <span class="ruby-comment cmt"># Make an update</span>
32
+ <span class="ruby-identifier">importer</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">pkg_svn</span>)
33
+
34
+ <span class="ruby-comment cmt"># Make an update fail</span>
35
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">svnrepo</span>
36
+ <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">SubcommandFailed</span>) { <span class="ruby-identifier">importer</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">pkg_svn</span>) }
37
+
38
+ <span class="ruby-comment cmt"># Make a checkout fail</span>
39
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">pkg_svn</span>.<span class="ruby-identifier">srcdir</span>
40
+ <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">SubcommandFailed</span>) { <span class="ruby-identifier">importer</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">pkg_svn</span>) }
41
+ <span class="ruby-keyword kw">end</span></pre>
42
+ </body>
43
+ </html>
@@ -0,0 +1,208 @@
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
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: TC_Subcommand</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">TC_Subcommand</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/test/test_subcommand_rb.html">
59
+ test/test_subcommand.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Test::Unit::TestCase
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000021">setup</a>&nbsp;&nbsp;
90
+ <a href="#M000022">teardown</a>&nbsp;&nbsp;
91
+ <a href="#M000023">test_subcommand</a>&nbsp;&nbsp;
92
+ </div>
93
+ </div>
94
+
95
+ </div>
96
+
97
+
98
+ <!-- if includes -->
99
+
100
+ <div id="section">
101
+
102
+
103
+ <div id="constants-list">
104
+ <h3 class="section-bar">Constants</h3>
105
+
106
+ <div class="name-list">
107
+ <table summary="Constants">
108
+ <tr class="top-aligned-row context-row">
109
+ <td class="context-item-name">EXAMPLE_1</td>
110
+ <td>=</td>
111
+ <td class="context-item-value">&lt;&lt;EOF This is a file It will be the first part of the two-part cat EOF</td>
112
+ </tr>
113
+ <tr class="top-aligned-row context-row">
114
+ <td class="context-item-name">EXAMPLE_2</td>
115
+ <td>=</td>
116
+ <td class="context-item-value">&lt;&lt;EOF This is another file It will be the second part of the two-part cat EOF</td>
117
+ </tr>
118
+ </table>
119
+ </div>
120
+ </div>
121
+
122
+
123
+
124
+ <div id="attribute-list">
125
+ <h3 class="section-bar">Attributes</h3>
126
+
127
+ <div class="name-list">
128
+ <table>
129
+ <tr class="top-aligned-row context-row">
130
+ <td class="context-item-name">source1</td>
131
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
132
+ <td class="context-item-desc"></td>
133
+ </tr>
134
+ <tr class="top-aligned-row context-row">
135
+ <td class="context-item-name">source2</td>
136
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
137
+ <td class="context-item-desc"></td>
138
+ </tr>
139
+ <tr class="top-aligned-row context-row">
140
+ <td class="context-item-name">tmpdir</td>
141
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
142
+ <td class="context-item-desc"></td>
143
+ </tr>
144
+ </table>
145
+ </div>
146
+ </div>
147
+
148
+
149
+
150
+ <!-- if method_list -->
151
+ <div id="methods">
152
+ <h3 class="section-bar">Public Instance methods</h3>
153
+
154
+ <div id="method-M000021" class="method-detail">
155
+ <a name="M000021"></a>
156
+
157
+ <div class="method-heading">
158
+ <a href="TC_Subcommand.src/M000021.html" target="Code" class="method-signature"
159
+ onclick="popupCode('TC_Subcommand.src/M000021.html');return false;">
160
+ <span class="method-name">setup</span><span class="method-args">()</span>
161
+ </a>
162
+ </div>
163
+
164
+ <div class="method-description">
165
+ </div>
166
+ </div>
167
+
168
+ <div id="method-M000022" class="method-detail">
169
+ <a name="M000022"></a>
170
+
171
+ <div class="method-heading">
172
+ <a href="TC_Subcommand.src/M000022.html" target="Code" class="method-signature"
173
+ onclick="popupCode('TC_Subcommand.src/M000022.html');return false;">
174
+ <span class="method-name">teardown</span><span class="method-args">()</span>
175
+ </a>
176
+ </div>
177
+
178
+ <div class="method-description">
179
+ </div>
180
+ </div>
181
+
182
+ <div id="method-M000023" class="method-detail">
183
+ <a name="M000023"></a>
184
+
185
+ <div class="method-heading">
186
+ <a href="TC_Subcommand.src/M000023.html" target="Code" class="method-signature"
187
+ onclick="popupCode('TC_Subcommand.src/M000023.html');return false;">
188
+ <span class="method-name">test_subcommand</span><span class="method-args">()</span>
189
+ </a>
190
+ </div>
191
+
192
+ <div class="method-description">
193
+ </div>
194
+ </div>
195
+
196
+
197
+ </div>
198
+
199
+
200
+ </div>
201
+
202
+
203
+ <div id="validator-badges">
204
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
205
+ </div>
206
+
207
+ </body>
208
+ </html>
@@ -0,0 +1,31 @@
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
+
6
+ <html>
7
+ <head>
8
+ <title>setup (TC_Subcommand)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File test/test_subcommand.rb, line 28</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
15
+ <span class="ruby-identifier">conffile</span> = <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">build_config</span>(<span class="ruby-identifier">binding</span>, <span class="ruby-value str">'dummy'</span>)
16
+ <span class="ruby-ivar">@tmpdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">conffile</span>)
17
+
18
+ <span class="ruby-identifier">options</span> = <span class="ruby-constant">Options</span>.<span class="ruby-identifier">default</span>
19
+ <span class="ruby-identifier">options</span>.<span class="ruby-identifier">logdir</span> = <span class="ruby-identifier">tmpdir</span>
20
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">conffile</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">confstream</span><span class="ruby-operator">|</span>
21
+ <span class="ruby-constant">Autobuild</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">load</span> <span class="ruby-identifier">confstream</span>, <span class="ruby-identifier">options</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+
24
+ <span class="ruby-comment cmt"># Write example files</span>
25
+ <span class="ruby-ivar">@source1</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'source1'</span>)
26
+ <span class="ruby-ivar">@source2</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'source2'</span>)
27
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-value str">'w+'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">EXAMPLE_1</span>) }
28
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">source2</span>, <span class="ruby-value str">'w+'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">EXAMPLE_2</span>) }
29
+ <span class="ruby-keyword kw">end</span></pre>
30
+ </body>
31
+ </html>
@@ -0,0 +1,18 @@
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
+
6
+ <html>
7
+ <head>
8
+ <title>teardown (TC_Subcommand)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File test/test_subcommand.rb, line 45</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span>
15
+ <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">clean</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,30 @@
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
+
6
+ <html>
7
+ <head>
8
+ <title>test_subcommand (TC_Subcommand)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File test/test_subcommand.rb, line 49</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_subcommand</span>
15
+ <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">SubcommandFailed</span>) { <span class="ruby-operator">||</span> <span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'copy'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-value str">'bla'</span>) }
16
+
17
+ <span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'simple'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">''</span>, <span class="ruby-identifier">source1</span>)
18
+ <span class="ruby-identifier">assert</span>( <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">identical?</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-simple.log'</span>)) )
19
+
20
+ <span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'use-lt'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-node">&quot;&lt;#{source1}&quot;</span>)
21
+ <span class="ruby-identifier">assert</span>( <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">identical?</span>(<span class="ruby-identifier">source1</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-use-lt.log'</span>)) )
22
+
23
+ <span class="ruby-constant">Subprocess</span>.<span class="ruby-identifier">run</span>(<span class="ruby-value str">'test'</span>, <span class="ruby-value str">'use-both'</span>, <span class="ruby-value str">'cat'</span>, <span class="ruby-identifier">source1</span>, <span class="ruby-value str">'-'</span>, <span class="ruby-node">&quot;&lt;#{source2}&quot;</span>)
24
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">tmpdir</span>, <span class="ruby-value str">'test-use-both.log'</span>) ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
25
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">readlines</span>
26
+ <span class="ruby-keyword kw">end</span>
27
+ <span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">EXAMPLE_1</span> <span class="ruby-operator">+</span> <span class="ruby-constant">EXAMPLE_2</span>, <span class="ruby-identifier">result</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;&quot;</span>))
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,247 @@
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
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: TC_TarImporter</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">TC_TarImporter</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/test/test_import_tar_rb.html">
59
+ test/test_import_tar.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Test::Unit::TestCase
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000008">setup</a>&nbsp;&nbsp;
90
+ <a href="#M000009">teardown</a>&nbsp;&nbsp;
91
+ <a href="#M000010">test_tar_mode</a>&nbsp;&nbsp;
92
+ <a href="#M000013">test_tar_remote</a>&nbsp;&nbsp;
93
+ <a href="#M000014">test_tar_remote_notfound</a>&nbsp;&nbsp;
94
+ <a href="#M000011">test_tar_valid_url</a>&nbsp;&nbsp;
95
+ <a href="#M000012">web_server</a>&nbsp;&nbsp;
96
+ </div>
97
+ </div>
98
+
99
+ </div>
100
+
101
+
102
+ <!-- if includes -->
103
+ <div id="includes">
104
+ <h3 class="section-bar">Included Modules</h3>
105
+
106
+ <div id="includes-list">
107
+ <span class="include-name">WEBrick</span>
108
+ </div>
109
+ </div>
110
+
111
+ <div id="section">
112
+
113
+
114
+ <div id="constants-list">
115
+ <h3 class="section-bar">Constants</h3>
116
+
117
+ <div class="name-list">
118
+ <table summary="Constants">
119
+ <tr class="top-aligned-row context-row">
120
+ <td class="context-item-name">Package</td>
121
+ <td>=</td>
122
+ <td class="context-item-value">Struct.new :srcdir, :target</td>
123
+ </tr>
124
+ </table>
125
+ </div>
126
+ </div>
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <!-- if method_list -->
134
+ <div id="methods">
135
+ <h3 class="section-bar">Public Instance methods</h3>
136
+
137
+ <div id="method-M000008" class="method-detail">
138
+ <a name="M000008"></a>
139
+
140
+ <div class="method-heading">
141
+ <a href="TC_TarImporter.src/M000008.html" target="Code" class="method-signature"
142
+ onclick="popupCode('TC_TarImporter.src/M000008.html');return false;">
143
+ <span class="method-name">setup</span><span class="method-args">()</span>
144
+ </a>
145
+ </div>
146
+
147
+ <div class="method-description">
148
+ </div>
149
+ </div>
150
+
151
+ <div id="method-M000009" class="method-detail">
152
+ <a name="M000009"></a>
153
+
154
+ <div class="method-heading">
155
+ <a href="TC_TarImporter.src/M000009.html" target="Code" class="method-signature"
156
+ onclick="popupCode('TC_TarImporter.src/M000009.html');return false;">
157
+ <span class="method-name">teardown</span><span class="method-args">()</span>
158
+ </a>
159
+ </div>
160
+
161
+ <div class="method-description">
162
+ </div>
163
+ </div>
164
+
165
+ <div id="method-M000010" class="method-detail">
166
+ <a name="M000010"></a>
167
+
168
+ <div class="method-heading">
169
+ <a href="TC_TarImporter.src/M000010.html" target="Code" class="method-signature"
170
+ onclick="popupCode('TC_TarImporter.src/M000010.html');return false;">
171
+ <span class="method-name">test_tar_mode</span><span class="method-args">()</span>
172
+ </a>
173
+ </div>
174
+
175
+ <div class="method-description">
176
+ </div>
177
+ </div>
178
+
179
+ <div id="method-M000013" class="method-detail">
180
+ <a name="M000013"></a>
181
+
182
+ <div class="method-heading">
183
+ <a href="TC_TarImporter.src/M000013.html" target="Code" class="method-signature"
184
+ onclick="popupCode('TC_TarImporter.src/M000013.html');return false;">
185
+ <span class="method-name">test_tar_remote</span><span class="method-args">()</span>
186
+ </a>
187
+ </div>
188
+
189
+ <div class="method-description">
190
+ </div>
191
+ </div>
192
+
193
+ <div id="method-M000014" class="method-detail">
194
+ <a name="M000014"></a>
195
+
196
+ <div class="method-heading">
197
+ <a href="TC_TarImporter.src/M000014.html" target="Code" class="method-signature"
198
+ onclick="popupCode('TC_TarImporter.src/M000014.html');return false;">
199
+ <span class="method-name">test_tar_remote_notfound</span><span class="method-args">()</span>
200
+ </a>
201
+ </div>
202
+
203
+ <div class="method-description">
204
+ </div>
205
+ </div>
206
+
207
+ <div id="method-M000011" class="method-detail">
208
+ <a name="M000011"></a>
209
+
210
+ <div class="method-heading">
211
+ <a href="TC_TarImporter.src/M000011.html" target="Code" class="method-signature"
212
+ onclick="popupCode('TC_TarImporter.src/M000011.html');return false;">
213
+ <span class="method-name">test_tar_valid_url</span><span class="method-args">()</span>
214
+ </a>
215
+ </div>
216
+
217
+ <div class="method-description">
218
+ </div>
219
+ </div>
220
+
221
+ <div id="method-M000012" class="method-detail">
222
+ <a name="M000012"></a>
223
+
224
+ <div class="method-heading">
225
+ <a href="TC_TarImporter.src/M000012.html" target="Code" class="method-signature"
226
+ onclick="popupCode('TC_TarImporter.src/M000012.html');return false;">
227
+ <span class="method-name">web_server</span><span class="method-args">() {|| ...}</span>
228
+ </a>
229
+ </div>
230
+
231
+ <div class="method-description">
232
+ </div>
233
+ </div>
234
+
235
+
236
+ </div>
237
+
238
+
239
+ </div>
240
+
241
+
242
+ <div id="validator-badges">
243
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
244
+ </div>
245
+
246
+ </body>
247
+ </html>