autobuild 0.5.1 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +10 -3
- data/README +106 -273
- data/Rakefile +14 -19
- data/TODO +5 -0
- data/bin/autobuild +17 -67
- data/doc/classes/Autobuild.html +320 -57
- data/doc/classes/{Autobuild/Config.src/M000040.html → Autobuild.src/M000005.html} +8 -5
- data/doc/classes/{Autobuild/Config.src/M000041.html → Autobuild.src/M000006.html} +3 -3
- data/doc/classes/Autobuild.src/M000007.html +18 -0
- data/doc/classes/Autobuild.src/M000008.html +18 -0
- data/doc/classes/Autobuild.src/M000009.html +18 -0
- data/doc/classes/Autobuild.src/M000010.html +18 -0
- data/doc/classes/Autobuild.src/M000011.html +18 -0
- data/doc/classes/Autobuild.src/M000012.html +18 -0
- data/doc/classes/Autobuild.src/M000013.html +25 -0
- data/doc/classes/Autobuild.src/M000014.html +19 -0
- data/doc/classes/Autobuild.src/M000015.html +19 -0
- data/doc/classes/Autobuild.src/M000016.html +16 -0
- data/doc/classes/Autobuild.src/M000017.html +20 -0
- data/doc/classes/Autobuild.src/M000018.html +18 -0
- data/doc/classes/Autobuild.src/M000019.html +52 -0
- data/doc/classes/Autobuild.src/M000020.html +44 -0
- data/doc/classes/Autobuild.src/M000021.html +19 -0
- data/doc/classes/Autobuild.src/M000022.html +19 -0
- data/doc/classes/Autobuild.src/M000023.html +20 -0
- data/doc/classes/Autobuild.src/M000024.html +22 -0
- data/doc/classes/Autobuild.src/M000033.html +31 -0
- data/doc/classes/Autobuild.src/M000034.html +32 -10
- data/doc/classes/Autobuild.src/M000035.html +4 -5
- data/doc/classes/Autobuild.src/M000036.html +4 -30
- data/doc/classes/Autobuild.src/M000037.html +4 -5
- data/doc/classes/Autobuild.src/M000038.html +4 -5
- data/doc/classes/Autobuild.src/M000039.html +4 -6
- data/doc/classes/Autobuild.src/M000040.html +18 -0
- data/doc/classes/Autobuild.src/M000041.html +25 -0
- data/doc/classes/Autobuild.src/M000042.html +19 -0
- data/doc/classes/Autobuild.src/M000043.html +19 -0
- data/doc/classes/Autobuild.src/M000044.html +16 -0
- data/doc/classes/Autobuild.src/M000045.html +20 -0
- data/doc/classes/Autobuild.src/M000046.html +18 -0
- data/doc/classes/Autobuild.src/M000047.html +52 -0
- data/doc/classes/Autobuild.src/M000048.html +44 -0
- data/doc/classes/Autobuild.src/M000049.html +19 -0
- data/doc/classes/Autobuild.src/M000050.html +19 -0
- data/doc/classes/Autobuild.src/M000051.html +20 -0
- data/doc/classes/Autobuild.src/M000052.html +22 -0
- data/doc/classes/Autobuild/Autotools.html +103 -58
- data/doc/classes/Autobuild/Autotools.src/M000055.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000056.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000057.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000058.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000059.html +22 -0
- data/doc/classes/Autobuild/Autotools.src/M000060.html +29 -0
- data/doc/classes/Autobuild/Autotools.src/M000061.html +21 -0
- data/doc/classes/Autobuild/Autotools.src/M000062.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/{M000067.html → M000063.html} +4 -10
- data/doc/classes/Autobuild/Autotools.src/M000083.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000084.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000085.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000086.html +16 -0
- data/doc/classes/Autobuild/Autotools.src/M000087.html +22 -0
- data/doc/classes/Autobuild/Autotools.src/M000088.html +29 -0
- data/doc/classes/Autobuild/Autotools.src/M000089.html +21 -0
- data/doc/classes/Autobuild/Autotools.src/M000090.html +20 -0
- data/doc/classes/Autobuild/Autotools.src/M000091.html +32 -0
- data/doc/classes/Autobuild/CVSImporter.html +11 -11
- data/doc/classes/Autobuild/CVSImporter.src/M000036.html +26 -0
- data/doc/classes/Autobuild/CVSImporter.src/{M000049.html → M000037.html} +1 -1
- data/doc/classes/Autobuild/CVSImporter.src/M000064.html +26 -0
- data/doc/classes/Autobuild/CVSImporter.src/M000065.html +18 -0
- data/doc/classes/Autobuild/CommandNotFound.html +6 -0
- data/doc/classes/Autobuild/ConfigException.html +6 -0
- data/doc/classes/Autobuild/{Options.html → DarcsImporter.html} +13 -11
- data/doc/classes/Autobuild/DarcsImporter.src/M000044.html +20 -0
- data/doc/classes/Autobuild/DarcsImporter.src/M000072.html +20 -0
- data/doc/classes/Autobuild/Exception.html +38 -20
- data/doc/classes/Autobuild/Exception.src/{M000103.html → M000087.html} +1 -1
- data/doc/classes/Autobuild/Exception.src/{M000104.html → M000088.html} +1 -1
- data/doc/classes/Autobuild/Exception.src/{M000105.html → M000089.html} +2 -3
- data/doc/classes/Autobuild/Exception.src/M000090.html +24 -0
- data/doc/classes/Autobuild/Exception.src/M000115.html +16 -0
- data/doc/classes/Autobuild/Exception.src/M000116.html +16 -0
- data/doc/classes/Autobuild/Exception.src/M000117.html +18 -0
- data/doc/classes/Autobuild/Exception.src/M000118.html +24 -0
- data/doc/classes/Autobuild/GenomModule.html +83 -37
- data/doc/classes/Autobuild/GenomModule.src/M000091.html +19 -0
- data/doc/classes/Autobuild/GenomModule.src/{M000107.html → M000092.html} +2 -1
- data/doc/classes/Autobuild/GenomModule.src/{M000108.html → M000093.html} +1 -1
- data/doc/classes/Autobuild/GenomModule.src/{M000109.html → M000094.html} +2 -2
- data/doc/classes/Autobuild/GenomModule.src/{M000110.html → M000095.html} +4 -6
- data/doc/classes/Autobuild/GenomModule.src/{M000112.html → M000096.html} +2 -4
- data/doc/classes/Autobuild/GenomModule.src/{M000111.html → M000097.html} +3 -3
- data/doc/classes/Autobuild/GenomModule.src/M000098.html +36 -0
- data/doc/classes/Autobuild/GenomModule.src/M000119.html +19 -0
- data/doc/classes/Autobuild/GenomModule.src/M000120.html +21 -0
- data/doc/classes/Autobuild/GenomModule.src/M000121.html +16 -0
- data/doc/classes/Autobuild/GenomModule.src/M000122.html +18 -0
- data/doc/classes/Autobuild/GenomModule.src/M000123.html +27 -0
- data/doc/classes/Autobuild/GenomModule.src/M000124.html +24 -0
- data/doc/classes/Autobuild/GenomModule.src/M000125.html +19 -0
- data/doc/classes/Autobuild/GenomModule.src/M000126.html +36 -0
- data/doc/classes/Autobuild/Import.html +5 -43
- data/doc/classes/Autobuild/Import.src/{M000047.html → M000033.html} +0 -0
- data/doc/classes/Autobuild/Import.src/{M000045.html → M000061.html} +4 -4
- data/doc/classes/Autobuild/Importer.html +10 -10
- data/doc/classes/Autobuild/Importer.src/{M000056.html → M000034.html} +1 -1
- data/doc/classes/Autobuild/Importer.src/{M000057.html → M000035.html} +3 -3
- data/doc/classes/Autobuild/Importer.src/M000062.html +18 -0
- data/doc/classes/Autobuild/Importer.src/M000063.html +38 -0
- data/doc/classes/Autobuild/ImporterPackage.html +16 -16
- data/doc/classes/Autobuild/ImporterPackage.src/{M000115.html → M000099.html} +1 -1
- data/doc/classes/Autobuild/ImporterPackage.src/{M000116.html → M000100.html} +3 -3
- data/doc/classes/Autobuild/ImporterPackage.src/{M000117.html → M000101.html} +1 -1
- data/doc/classes/Autobuild/{Autotools.src/M000065.html → ImporterPackage.src/M000127.html} +4 -4
- data/doc/classes/Autobuild/ImporterPackage.src/M000128.html +22 -0
- data/doc/classes/Autobuild/ImporterPackage.src/M000129.html +16 -0
- data/doc/classes/Autobuild/Interpolator.html +27 -27
- data/doc/classes/Autobuild/Interpolator.src/{M000051.html → M000039.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000052.html → M000040.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000053.html → M000041.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000054.html → M000042.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/{M000055.html → M000043.html} +1 -1
- data/doc/classes/Autobuild/Interpolator.src/M000067.html +18 -0
- data/doc/classes/Autobuild/Interpolator.src/M000068.html +21 -0
- data/doc/classes/Autobuild/Interpolator.src/M000069.html +45 -0
- data/doc/classes/Autobuild/Interpolator.src/M000070.html +39 -0
- data/doc/classes/Autobuild/Interpolator.src/M000071.html +29 -0
- data/doc/classes/Autobuild/MailReporter.html +31 -25
- data/doc/classes/Autobuild/MailReporter.src/{M000060.html → M000045.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000061.html → M000046.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000062.html → M000047.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000063.html → M000048.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/{M000064.html → M000049.html} +1 -1
- data/doc/classes/Autobuild/MailReporter.src/M000073.html +24 -0
- data/doc/classes/Autobuild/MailReporter.src/M000074.html +21 -0
- data/doc/classes/Autobuild/MailReporter.src/M000075.html +20 -0
- data/doc/classes/Autobuild/MailReporter.src/M000076.html +18 -0
- data/doc/classes/Autobuild/MailReporter.src/M000077.html +42 -0
- data/doc/classes/Autobuild/Package.html +132 -81
- data/doc/classes/Autobuild/Package.src/M000073.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000074.html +16 -0
- data/doc/classes/Autobuild/Package.src/{M000085.html → M000075.html} +2 -2
- data/doc/classes/Autobuild/Package.src/M000076.html +56 -0
- data/doc/classes/Autobuild/Package.src/M000077.html +16 -0
- data/doc/classes/Autobuild/Package.src/{M000091.html → M000078.html} +3 -3
- data/doc/classes/Autobuild/Package.src/M000079.html +28 -0
- data/doc/classes/Autobuild/Package.src/M000080.html +23 -0
- data/doc/classes/Autobuild/Package.src/{M000086.html → M000081.html} +1 -1
- data/doc/classes/Autobuild/Package.src/{M000087.html → M000082.html} +3 -3
- data/doc/classes/Autobuild/Package.src/M000101.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000102.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000103.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000104.html +56 -0
- data/doc/classes/Autobuild/Package.src/M000105.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000106.html +16 -0
- data/doc/classes/Autobuild/Package.src/M000107.html +28 -0
- data/doc/classes/Autobuild/Package.src/M000108.html +23 -0
- data/doc/classes/Autobuild/Package.src/M000109.html +19 -0
- data/doc/classes/Autobuild/Package.src/{M000093.html → M000110.html} +4 -4
- data/doc/classes/Autobuild/PackageException.html +11 -5
- data/doc/classes/Autobuild/PackageException.src/{M000059.html → M000050.html} +1 -1
- data/doc/classes/Autobuild/PackageException.src/M000078.html +16 -0
- data/doc/classes/Autobuild/Reporter.html +16 -10
- data/doc/classes/Autobuild/Reporter.src/{M000074.html → M000053.html} +1 -1
- data/doc/classes/Autobuild/Reporter.src/{M000075.html → M000054.html} +1 -1
- data/doc/classes/Autobuild/Reporter.src/M000081.html +16 -0
- data/doc/classes/Autobuild/Reporter.src/M000082.html +16 -0
- data/doc/classes/Autobuild/Reporting.html +60 -33
- data/doc/classes/Autobuild/Reporting.src/{M000095.html → M000025.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000096.html → M000026.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000097.html → M000027.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000098.html → M000028.html} +1 -1
- data/doc/classes/Autobuild/Reporting.src/{M000099.html → M000029.html} +2 -2
- data/doc/classes/Autobuild/Reporting.src/M000053.html +24 -0
- data/doc/classes/Autobuild/Reporting.src/M000054.html +18 -0
- data/doc/classes/Autobuild/Reporting.src/M000055.html +18 -0
- data/doc/classes/Autobuild/Reporting.src/M000056.html +18 -0
- data/doc/classes/Autobuild/Reporting.src/M000057.html +18 -0
- data/doc/classes/Autobuild/{SVNImporter.html → SVN.html} +8 -8
- data/doc/classes/Autobuild/SVN.src/M000038.html +22 -0
- data/doc/classes/Autobuild/SVN.src/M000066.html +22 -0
- data/doc/classes/Autobuild/SourceTreeTask.html +5 -5
- data/doc/classes/Autobuild/SourceTreeTask.src/{M000114.html → M000083.html} +1 -1
- data/doc/classes/Autobuild/SourceTreeTask.src/M000111.html +18 -0
- data/doc/classes/Autobuild/StdoutReporter.html +16 -10
- data/doc/classes/Autobuild/StdoutReporter.src/{M000072.html → M000051.html} +1 -1
- data/doc/classes/Autobuild/StdoutReporter.src/{M000073.html → M000052.html} +1 -1
- data/doc/classes/Autobuild/StdoutReporter.src/M000079.html +18 -0
- data/doc/classes/Autobuild/StdoutReporter.src/M000080.html +18 -0
- data/doc/classes/Autobuild/SubcommandFailed.html +21 -15
- data/doc/classes/Autobuild/SubcommandFailed.src/{M000100.html → M000084.html} +1 -1
- data/doc/classes/Autobuild/SubcommandFailed.src/{M000101.html → M000085.html} +2 -2
- data/doc/classes/Autobuild/SubcommandFailed.src/{M000102.html → M000086.html} +1 -1
- data/doc/classes/Autobuild/SubcommandFailed.src/M000112.html +16 -0
- data/doc/classes/Autobuild/SubcommandFailed.src/M000113.html +32 -0
- data/doc/classes/Autobuild/SubcommandFailed.src/M000114.html +20 -0
- data/doc/classes/Autobuild/Subprocess.html +10 -10
- data/doc/classes/Autobuild/Subprocess.src/{M000042.html → M000030.html} +0 -0
- data/doc/classes/Autobuild/Subprocess.src/{M000043.html → M000031.html} +4 -2
- data/doc/classes/Autobuild/Subprocess.src/M000058.html +18 -0
- data/doc/classes/Autobuild/Subprocess.src/M000059.html +98 -0
- data/doc/classes/Autobuild/Subprocess/Failed.html +5 -5
- data/doc/classes/Autobuild/Subprocess/Failed.src/{M000044.html → M000032.html} +0 -0
- data/doc/classes/Autobuild/Subprocess/Failed.src/M000060.html +18 -0
- data/doc/classes/Autobuild/TarImporter.html +35 -35
- data/doc/classes/Autobuild/TarImporter.src/{M000076.html → M000064.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000077.html → M000065.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000078.html → M000066.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000079.html → M000067.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000080.html → M000068.html} +0 -0
- data/doc/classes/Autobuild/TarImporter.src/{M000081.html → M000069.html} +1 -1
- data/doc/classes/Autobuild/TarImporter.src/{M000082.html → M000070.html} +2 -2
- data/doc/classes/Autobuild/TarImporter.src/M000092.html +28 -0
- data/doc/classes/Autobuild/TarImporter.src/M000093.html +53 -0
- data/doc/classes/Autobuild/TarImporter.src/M000094.html +26 -0
- data/doc/classes/Autobuild/TarImporter.src/M000095.html +16 -0
- data/doc/classes/Autobuild/TarImporter.src/M000096.html +20 -0
- data/doc/classes/Autobuild/TarImporter.src/M000097.html +20 -0
- data/doc/classes/Autobuild/TarImporter.src/M000098.html +30 -0
- data/doc/classes/Autobuild/UndefinedVariable.html +12 -12
- data/doc/classes/Autobuild/UndefinedVariable.src/{M000083.html → M000071.html} +1 -1
- data/doc/classes/Autobuild/UndefinedVariable.src/{M000084.html → M000072.html} +1 -1
- data/doc/classes/Autobuild/UndefinedVariable.src/M000099.html +19 -0
- data/doc/classes/Autobuild/{Exception.src/M000106.html → UndefinedVariable.src/M000100.html} +3 -4
- data/doc/classes/Hash.html +12 -12
- data/doc/classes/Hash.src/{M000019.html → M000002.html} +1 -1
- data/doc/classes/Hash.src/M000003.html +23 -0
- data/doc/classes/Hash.src/M000020.html +11 -8
- data/doc/classes/Hash.src/M000021.html +23 -0
- data/doc/classes/RMail/Message.html +8 -5
- data/doc/classes/RMail/Message.src/{M000033.html → M000004.html} +1 -1
- data/doc/classes/RMail/Message.src/M000028.html +25 -0
- data/doc/classes/TC_CVSImport.html +15 -15
- data/doc/classes/{TC_TarImporter.src/M000009.html → TC_CVSImport.src/M000025.html} +7 -6
- data/doc/classes/TC_CVSImport.src/M000026.html +6 -7
- data/doc/classes/TC_CVSImport.src/M000027.html +22 -7
- data/doc/classes/TC_Config.html +20 -20
- data/doc/classes/TC_Config.src/{M000001.html → M000006.html} +0 -0
- data/doc/classes/TC_Config.src/{M000002.html → M000007.html} +0 -0
- data/doc/classes/TC_Config.src/{M000003.html → M000008.html} +0 -0
- data/doc/classes/TC_Config.src/{M000004.html → M000009.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.html +20 -20
- data/doc/classes/TC_ConfigInterpolation.src/{M000015.html → M000002.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.src/{M000016.html → M000003.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.src/{M000017.html → M000004.html} +0 -0
- data/doc/classes/TC_ConfigInterpolation.src/{M000018.html → M000005.html} +0 -0
- data/doc/classes/TC_SVNImport.html +15 -15
- data/doc/classes/TC_SVNImport.src/{M000005.html → M000017.html} +0 -0
- data/doc/classes/TC_SVNImport.src/{M000006.html → M000018.html} +0 -0
- data/doc/classes/TC_SVNImport.src/{M000007.html → M000019.html} +0 -0
- data/doc/classes/TC_Subcommand.html +15 -15
- data/doc/classes/TC_Subcommand.src/M000022.html +17 -4
- data/doc/classes/TC_Subcommand.src/M000023.html +4 -16
- data/doc/classes/TC_Subcommand.src/M000024.html +30 -0
- data/doc/classes/TC_TarImporter.html +35 -35
- data/doc/classes/TC_TarImporter.src/M000010.html +14 -6
- data/doc/classes/TC_TarImporter.src/M000011.html +7 -6
- data/doc/classes/TC_TarImporter.src/M000012.html +6 -12
- data/doc/classes/TC_TarImporter.src/M000013.html +6 -17
- data/doc/classes/TC_TarImporter.src/M000014.html +11 -9
- data/doc/classes/TC_TarImporter.src/M000015.html +31 -0
- data/doc/classes/TC_TarImporter.src/M000016.html +24 -0
- data/doc/created.rid +1 -1
- data/doc/files/README.html +378 -0
- data/doc/files/{lib/autobuild/options_rb.html → demo_rb.html} +19 -5
- data/doc/files/lib/autobuild/config_rb.html +30 -7
- data/doc/files/lib/autobuild/config_rb.src/M000001.html +18 -0
- data/doc/files/lib/autobuild/environment_rb.html +1 -1
- data/doc/files/lib/autobuild/exceptions_rb.html +1 -1
- data/doc/files/lib/autobuild/import/cvs_rb.html +2 -1
- data/doc/files/{test/base_rb.html → lib/autobuild/import/darcs_rb.html} +8 -11
- data/doc/files/lib/autobuild/import/svn_rb.html +1 -1
- data/doc/files/lib/autobuild/import/tar_rb.html +1 -1
- data/doc/files/lib/autobuild/importer_rb.html +2 -1
- data/doc/files/lib/autobuild/{config-interpolator_rb.html → loaders/config-interpolator_rb.html} +3 -3
- data/doc/files/lib/autobuild/loaders/config_rb.html +113 -0
- data/doc/files/lib/autobuild/package_rb.html +1 -1
- data/doc/files/lib/autobuild/packages/autotools_rb.html +2 -1
- data/doc/files/lib/autobuild/packages/genom_rb.html +1 -1
- data/doc/files/lib/autobuild/packages/import_rb.html +1 -1
- data/doc/files/lib/autobuild/reporting_rb.html +2 -1
- data/doc/files/lib/autobuild/subcommand_rb.html +1 -1
- data/doc/files/lib/autobuild/timestamps_rb.html +2 -1
- data/doc/files/{test/test_attr_defval_rb.html → lib/autobuild_rb.html} +7 -6
- data/doc/files/test/test_config_interpolation_rb.html +2 -2
- data/doc/files/test/test_config_rb.html +2 -2
- data/doc/files/test/test_import_cvs_rb.html +1 -1
- data/doc/files/test/test_import_svn_rb.html +1 -1
- data/doc/files/test/test_import_tar_rb.html +1 -1
- data/doc/files/test/test_subcommand_rb.html +2 -2
- data/doc/files/test/tools_rb.html +1 -1
- data/doc/fr_class_index.html +0 -37
- data/doc/fr_file_index.html +1 -25
- data/doc/fr_method_index.html +0 -117
- data/doc/index.html +1 -1
- data/lib/autobuild.rb +3 -0
- data/lib/autobuild/config.rb +87 -153
- data/lib/autobuild/environment.rb +4 -1
- data/lib/autobuild/exceptions.rb +19 -5
- data/lib/autobuild/import/cvs.rb +11 -10
- data/lib/autobuild/import/darcs.rb +32 -0
- data/lib/autobuild/import/svn.rb +10 -13
- data/lib/autobuild/import/tar.rb +3 -3
- data/lib/autobuild/importer.rb +5 -4
- data/lib/autobuild/package.rb +109 -69
- data/lib/autobuild/packages/autotools.rb +112 -69
- data/lib/autobuild/packages/genom.rb +48 -32
- data/lib/autobuild/packages/import.rb +6 -4
- data/lib/autobuild/reporting.rb +48 -19
- data/lib/autobuild/subcommand.rb +7 -9
- data/lib/autobuild/timestamps.rb +6 -5
- data/test/test_import_cvs.rb +7 -14
- data/test/test_import_svn.rb +6 -20
- data/test/test_import_tar.rb +3 -8
- data/test/test_subcommand.rb +7 -14
- data/test/tools.rb +5 -0
- metadata +336 -226
- data/doc/classes/Autobuild/Autotools.src/M000066.html +0 -26
- data/doc/classes/Autobuild/Autotools.src/M000068.html +0 -53
- data/doc/classes/Autobuild/Autotools.src/M000069.html +0 -28
- data/doc/classes/Autobuild/Autotools.src/M000070.html +0 -23
- data/doc/classes/Autobuild/Autotools.src/M000071.html +0 -22
- data/doc/classes/Autobuild/CVSImporter.src/M000048.html +0 -24
- data/doc/classes/Autobuild/Config.html +0 -146
- data/doc/classes/Autobuild/GenomModule.src/M000113.html +0 -35
- data/doc/classes/Autobuild/Import.src/M000046.html +0 -18
- data/doc/classes/Autobuild/Options.src/M000058.html +0 -27
- data/doc/classes/Autobuild/Package.src/M000088.html +0 -41
- data/doc/classes/Autobuild/Package.src/M000089.html +0 -22
- data/doc/classes/Autobuild/Package.src/M000090.html +0 -23
- data/doc/classes/Autobuild/Package.src/M000092.html +0 -24
- data/doc/classes/Autobuild/Package.src/M000094.html +0 -23
- data/doc/classes/Autobuild/SVNImporter.src/M000050.html +0 -23
- data/doc/classes/TC_AttrDefval.html +0 -152
- data/doc/classes/TC_AttrDefval.src/M000024.html +0 -31
- data/doc/classes/TC_AttrDefval.src/M000025.html +0 -22
- data/doc/classes/TC_CVSImport.src/M000028.html +0 -36
- data/doc/classes/TC_Subcommand.src/M000021.html +0 -31
- data/doc/classes/TC_TarImporter.src/M000008.html +0 -28
- data/lib/autobuild/config-interpolator.rb +0 -107
- data/lib/autobuild/options.rb +0 -22
- data/test/base.rb +0 -8
- data/test/test_attr_defval.rb +0 -29
- data/test/test_config.rb +0 -40
- data/test/test_config_interpolation.rb +0 -57
@@ -0,0 +1,32 @@
|
|
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>new (Autobuild::SubcommandFailed)</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 lib/autobuild/exceptions.rb, line 41</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
16
|
+
<span class="ruby-identifier">sc</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>]
|
17
|
+
<span class="ruby-identifier">target</span>, <span class="ruby-identifier">command</span>, <span class="ruby-identifier">logfile</span>, <span class="ruby-identifier">status</span> =
|
18
|
+
<span class="ruby-identifier">sc</span>.<span class="ruby-identifier">target</span>, <span class="ruby-identifier">sc</span>.<span class="ruby-identifier">command</span>, <span class="ruby-identifier">sc</span>.<span class="ruby-identifier">logfile</span>, <span class="ruby-identifier">sc</span>.<span class="ruby-identifier">status</span>
|
19
|
+
<span class="ruby-ivar">@orig_message</span> = <span class="ruby-identifier">sc</span>.<span class="ruby-identifier">exception_message</span>
|
20
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">4</span>
|
21
|
+
<span class="ruby-identifier">target</span>, <span class="ruby-identifier">command</span>, <span class="ruby-identifier">logfile</span>, <span class="ruby-identifier">status</span> = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
23
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"wrong number of arguments, should be 1 or 4"</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
|
26
|
+
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">target</span>)
|
27
|
+
<span class="ruby-ivar">@command</span> = <span class="ruby-identifier">command</span>
|
28
|
+
<span class="ruby-ivar">@logfile</span> = <span class="ruby-identifier">logfile</span>
|
29
|
+
<span class="ruby-ivar">@status</span> = <span class="ruby-identifier">status</span>
|
30
|
+
<span class="ruby-keyword kw">end</span></pre>
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>to_s (Autobuild::SubcommandFailed)</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 lib/autobuild/exceptions.rb, line 59</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
|
+
<span class="ruby-identifier">prefix</span> = <span class="ruby-node">"#{super}\n command '#{command}' failed"</span>
|
16
|
+
<span class="ruby-identifier">prefix</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">": "</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@orig_message</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@orig_message</span>
|
17
|
+
<span class="ruby-identifier">prefix</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"\n see #{File.basename(logfile)} for details\n"</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -80,8 +80,8 @@
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
81
81
|
|
82
82
|
<div class="name-list">
|
83
|
-
<a href="#
|
84
|
-
<a href="#
|
83
|
+
<a href="#M000030">nice=</a>
|
84
|
+
<a href="#M000031">run</a>
|
85
85
|
</div>
|
86
86
|
</div>
|
87
87
|
|
@@ -127,12 +127,12 @@
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Class methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000030" class="method-detail">
|
131
|
+
<a name="M000030"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="Subprocess.src/
|
135
|
-
onclick="popupCode('Subprocess.src/
|
134
|
+
<a href="Subprocess.src/M000030.html" target="Code" class="method-signature"
|
135
|
+
onclick="popupCode('Subprocess.src/M000030.html');return false;">
|
136
136
|
<span class="method-name">nice=</span><span class="method-args">(value)</span>
|
137
137
|
</a>
|
138
138
|
</div>
|
@@ -141,12 +141,12 @@
|
|
141
141
|
</div>
|
142
142
|
</div>
|
143
143
|
|
144
|
-
<div id="method-
|
145
|
-
<a name="
|
144
|
+
<div id="method-M000031" class="method-detail">
|
145
|
+
<a name="M000031"></a>
|
146
146
|
|
147
147
|
<div class="method-heading">
|
148
|
-
<a href="Subprocess.src/
|
149
|
-
onclick="popupCode('Subprocess.src/
|
148
|
+
<a href="Subprocess.src/M000031.html" target="Code" class="method-signature"
|
149
|
+
onclick="popupCode('Subprocess.src/M000031.html');return false;">
|
150
150
|
<span class="method-name">run</span><span class="method-args">(target, phase, *command)</span>
|
151
151
|
</a>
|
152
152
|
</div>
|
File without changes
|
@@ -15,7 +15,9 @@
|
|
15
15
|
<span class="ruby-comment cmt"># Filter nil and empty? in command</span>
|
16
16
|
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">o</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:empty?</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">empty?</span>) }
|
17
17
|
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">collect!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">to_s</span> }
|
18
|
-
|
18
|
+
|
19
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span> <span class="ruby-constant">Autobuild</span>.<span class="ruby-identifier">logdir</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-constant">Autobuild</span>.<span class="ruby-identifier">logdir</span>)
|
20
|
+
<span class="ruby-identifier">logname</span> = <span class="ruby-node">"#{Autobuild.logdir}/#{target}-#{phase}.log"</span>
|
19
21
|
|
20
22
|
<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{target}: running #{command.join(" ")}\n (output goes to #{logname})"</span>
|
21
23
|
|
@@ -30,7 +32,7 @@
|
|
30
32
|
<span class="ruby-identifier">cwrite</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
|
31
33
|
<span class="ruby-keyword kw">begin</span>
|
32
34
|
<span class="ruby-constant">Process</span>.<span class="ruby-identifier">setpriority</span>(<span class="ruby-constant">Process</span><span class="ruby-operator">::</span><span class="ruby-constant">PRIO_PROCESS</span>, <span class="ruby-value">0</span>, <span class="ruby-ivar">@@nice</span>)
|
33
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier"
|
35
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Autobuild</span>.<span class="ruby-identifier">verbose</span>
|
34
36
|
<span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">logfile</span>.<span class="ruby-identifier">dup</span>)
|
35
37
|
<span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">logfile</span>.<span class="ruby-identifier">dup</span>)
|
36
38
|
<span class="ruby-keyword kw">else</span>
|
@@ -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>nice= (Autobuild::Subprocess)</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 lib/autobuild/subcommand.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">nice=</span>(<span class="ruby-identifier">value</span>)
|
15
|
+
<span class="ruby-ivar">@@nice</span> = <span class="ruby-identifier">value</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,98 @@
|
|
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>run (Autobuild::Subprocess)</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 lib/autobuild/subcommand.rb, line 18</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">phase</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">command</span>)
|
15
|
+
<span class="ruby-comment cmt"># Filter nil and empty? in command</span>
|
16
|
+
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">o</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:empty?</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">empty?</span>) }
|
17
|
+
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">collect!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">to_s</span> }
|
18
|
+
|
19
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span> <span class="ruby-constant">Autobuild</span>.<span class="ruby-identifier">logdir</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-constant">Autobuild</span>.<span class="ruby-identifier">logdir</span>)
|
20
|
+
<span class="ruby-identifier">logname</span> = <span class="ruby-node">"#{Autobuild.logdir}/#{target}-#{phase}.log"</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{target}: running #{command.join(" ")}\n (output goes to #{logname})"</span>
|
23
|
+
|
24
|
+
<span class="ruby-identifier">input_streams</span> = <span class="ruby-identifier">command</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">$1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">o</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\<(.+)/</span> }.<span class="ruby-identifier">compact</span>
|
25
|
+
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">o</span><span class="ruby-operator">|</span> <span class="ruby-identifier">o</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^\<(.+)/</span> }
|
26
|
+
|
27
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">logname</span>, <span class="ruby-value str">"a"</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">logfile</span><span class="ruby-operator">|</span>
|
28
|
+
<span class="ruby-identifier">pread</span>, <span class="ruby-identifier">pwrite</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">pipe</span> <span class="ruby-comment cmt"># to feed subprocess stdin </span>
|
29
|
+
<span class="ruby-identifier">cread</span>, <span class="ruby-identifier">cwrite</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">pipe</span> <span class="ruby-comment cmt"># to control that exec goes well</span>
|
30
|
+
|
31
|
+
<span class="ruby-identifier">pid</span> = <span class="ruby-identifier">fork</span> {
|
32
|
+
<span class="ruby-identifier">cwrite</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
|
33
|
+
<span class="ruby-keyword kw">begin</span>
|
34
|
+
<span class="ruby-constant">Process</span>.<span class="ruby-identifier">setpriority</span>(<span class="ruby-constant">Process</span><span class="ruby-operator">::</span><span class="ruby-constant">PRIO_PROCESS</span>, <span class="ruby-value">0</span>, <span class="ruby-ivar">@@nice</span>)
|
35
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Autobuild</span>.<span class="ruby-identifier">verbose</span>
|
36
|
+
<span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">logfile</span>.<span class="ruby-identifier">dup</span>)
|
37
|
+
<span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">logfile</span>.<span class="ruby-identifier">dup</span>)
|
38
|
+
<span class="ruby-keyword kw">else</span>
|
39
|
+
<span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">logfile</span>.<span class="ruby-identifier">dup</span>)
|
40
|
+
<span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">logfile</span>.<span class="ruby-identifier">dup</span>)
|
41
|
+
<span class="ruby-keyword kw">end</span>
|
42
|
+
|
43
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">input_streams</span>.<span class="ruby-identifier">empty?</span>
|
44
|
+
<span class="ruby-identifier">pwrite</span>.<span class="ruby-identifier">close</span>
|
45
|
+
<span class="ruby-identifier">$stdin</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">pread</span>)
|
46
|
+
<span class="ruby-keyword kw">end</span>
|
47
|
+
|
48
|
+
<span class="ruby-identifier">exec</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">command</span>)
|
49
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>
|
50
|
+
<span class="ruby-identifier">cwrite</span>.<span class="ruby-identifier">write</span>([<span class="ruby-constant">CONTROL_COMMAND_NOT_FOUND</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'I'</span>))
|
51
|
+
<span class="ruby-identifier">raise</span>
|
52
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span>
|
53
|
+
<span class="ruby-identifier">cwrite</span>.<span class="ruby-identifier">write</span>([<span class="ruby-constant">CONTROL_UNEXPECTED</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'I'</span>))
|
54
|
+
<span class="ruby-identifier">raise</span>
|
55
|
+
<span class="ruby-keyword kw">end</span>
|
56
|
+
}
|
57
|
+
|
58
|
+
<span class="ruby-comment cmt"># Feed the input</span>
|
59
|
+
<span class="ruby-identifier">pread</span>.<span class="ruby-identifier">close</span>
|
60
|
+
<span class="ruby-keyword kw">begin</span>
|
61
|
+
<span class="ruby-identifier">input_streams</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">infile</span><span class="ruby-operator">|</span>
|
62
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">infile</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">instream</span><span class="ruby-operator">|</span>
|
63
|
+
<span class="ruby-identifier">instream</span>.<span class="ruby-identifier">each_line</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> <span class="ruby-identifier">pwrite</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">line</span>) }
|
64
|
+
<span class="ruby-keyword kw">end</span>
|
65
|
+
<span class="ruby-keyword kw">end</span>
|
66
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
67
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Failed</span>.<span class="ruby-identifier">new</span>, <span class="ruby-node">"cannot open input files: #{e.message}"</span>
|
68
|
+
<span class="ruby-keyword kw">end</span>
|
69
|
+
<span class="ruby-identifier">pwrite</span>.<span class="ruby-identifier">close</span>
|
70
|
+
|
71
|
+
<span class="ruby-comment cmt"># Get control status</span>
|
72
|
+
<span class="ruby-identifier">cwrite</span>.<span class="ruby-identifier">close</span>
|
73
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">cread</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value">4</span>)
|
74
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>
|
75
|
+
<span class="ruby-comment cmt"># An error occured</span>
|
76
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'I'</span>).<span class="ruby-identifier">first</span>
|
77
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">==</span> <span class="ruby-constant">CONTROL_COMMAND_NOT_FOUND</span>
|
78
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Failed</span>.<span class="ruby-identifier">new</span>, <span class="ruby-value str">"file not found"</span>
|
79
|
+
<span class="ruby-keyword kw">else</span>
|
80
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Failed</span>.<span class="ruby-identifier">new</span>, <span class="ruby-value str">"something unexpected happened"</span>
|
81
|
+
<span class="ruby-keyword kw">end</span>
|
82
|
+
<span class="ruby-keyword kw">end</span>
|
83
|
+
|
84
|
+
<span class="ruby-identifier">childpid</span>, <span class="ruby-identifier">childstatus</span> = <span class="ruby-constant">Process</span>.<span class="ruby-identifier">wait2</span>(<span class="ruby-identifier">pid</span>)
|
85
|
+
<span class="ruby-identifier">childstatus</span>
|
86
|
+
<span class="ruby-keyword kw">end</span>
|
87
|
+
|
88
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span>.<span class="ruby-identifier">exitstatus</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
89
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Failed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">status</span>.<span class="ruby-identifier">exitstatus</span>), <span class="ruby-node">"command returned with status #{status.exitstatus}"</span>
|
90
|
+
<span class="ruby-keyword kw">end</span>
|
91
|
+
|
92
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Failed</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
93
|
+
<span class="ruby-identifier">error</span> = <span class="ruby-constant">SubcommandFailed</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">command</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">" "</span>), <span class="ruby-identifier">logname</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">status</span>)
|
94
|
+
<span class="ruby-identifier">error</span>.<span class="ruby-identifier">phase</span> = <span class="ruby-identifier">phase</span>
|
95
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">error</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>
|
96
|
+
<span class="ruby-keyword kw">end</span></pre>
|
97
|
+
</body>
|
98
|
+
</html>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000032">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -121,12 +121,12 @@
|
|
121
121
|
<div id="methods">
|
122
122
|
<h3 class="section-bar">Public Class methods</h3>
|
123
123
|
|
124
|
-
<div id="method-
|
125
|
-
<a name="
|
124
|
+
<div id="method-M000032" class="method-detail">
|
125
|
+
<a name="M000032"></a>
|
126
126
|
|
127
127
|
<div class="method-heading">
|
128
|
-
<a href="Failed.src/
|
129
|
-
onclick="popupCode('Failed.src/
|
128
|
+
<a href="Failed.src/M000032.html" target="Code" class="method-signature"
|
129
|
+
onclick="popupCode('Failed.src/M000032.html');return false;">
|
130
130
|
<span class="method-name">new</span><span class="method-args">(status = 0)</span>
|
131
131
|
</a>
|
132
132
|
</div>
|
File without changes
|
@@ -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>new (Autobuild::Subprocess::Failed)</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 lib/autobuild/subcommand.rb, line 11</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">status</span> = <span class="ruby-value">0</span>)
|
15
|
+
<span class="ruby-ivar">@status</span> = <span class="ruby-identifier">status</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -88,13 +88,13 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
91
|
+
<a href="#M000067">cachedir</a>
|
92
|
+
<a href="#M000070">checkout</a>
|
93
|
+
<a href="#M000068">new</a>
|
94
|
+
<a href="#M000069">update</a>
|
95
|
+
<a href="#M000065">update_cache</a>
|
96
|
+
<a href="#M000066">url=</a>
|
97
|
+
<a href="#M000064">url_to_mode</a>
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
|
@@ -172,12 +172,12 @@
|
|
172
172
|
<div id="methods">
|
173
173
|
<h3 class="section-bar">Public Class methods</h3>
|
174
174
|
|
175
|
-
<div id="method-
|
176
|
-
<a name="
|
175
|
+
<div id="method-M000068" class="method-detail">
|
176
|
+
<a name="M000068"></a>
|
177
177
|
|
178
178
|
<div class="method-heading">
|
179
|
-
<a href="TarImporter.src/
|
180
|
-
onclick="popupCode('TarImporter.src/
|
179
|
+
<a href="TarImporter.src/M000068.html" target="Code" class="method-signature"
|
180
|
+
onclick="popupCode('TarImporter.src/M000068.html');return false;">
|
181
181
|
<span class="method-name">new</span><span class="method-args">(url, options)</span>
|
182
182
|
</a>
|
183
183
|
</div>
|
@@ -186,12 +186,12 @@
|
|
186
186
|
</div>
|
187
187
|
</div>
|
188
188
|
|
189
|
-
<div id="method-
|
190
|
-
<a name="
|
189
|
+
<div id="method-M000064" class="method-detail">
|
190
|
+
<a name="M000064"></a>
|
191
191
|
|
192
192
|
<div class="method-heading">
|
193
|
-
<a href="TarImporter.src/
|
194
|
-
onclick="popupCode('TarImporter.src/
|
193
|
+
<a href="TarImporter.src/M000064.html" target="Code" class="method-signature"
|
194
|
+
onclick="popupCode('TarImporter.src/M000064.html');return false;">
|
195
195
|
<span class="method-name">url_to_mode</span><span class="method-args">(url)</span>
|
196
196
|
</a>
|
197
197
|
</div>
|
@@ -202,12 +202,12 @@
|
|
202
202
|
|
203
203
|
<h3 class="section-bar">Public Instance methods</h3>
|
204
204
|
|
205
|
-
<div id="method-
|
206
|
-
<a name="
|
205
|
+
<div id="method-M000067" class="method-detail">
|
206
|
+
<a name="M000067"></a>
|
207
207
|
|
208
208
|
<div class="method-heading">
|
209
|
-
<a href="TarImporter.src/
|
210
|
-
onclick="popupCode('TarImporter.src/
|
209
|
+
<a href="TarImporter.src/M000067.html" target="Code" class="method-signature"
|
210
|
+
onclick="popupCode('TarImporter.src/M000067.html');return false;">
|
211
211
|
<span class="method-name">cachedir</span><span class="method-args">()</span>
|
212
212
|
</a>
|
213
213
|
</div>
|
@@ -216,12 +216,12 @@
|
|
216
216
|
</div>
|
217
217
|
</div>
|
218
218
|
|
219
|
-
<div id="method-
|
220
|
-
<a name="
|
219
|
+
<div id="method-M000070" class="method-detail">
|
220
|
+
<a name="M000070"></a>
|
221
221
|
|
222
222
|
<div class="method-heading">
|
223
|
-
<a href="TarImporter.src/
|
224
|
-
onclick="popupCode('TarImporter.src/
|
223
|
+
<a href="TarImporter.src/M000070.html" target="Code" class="method-signature"
|
224
|
+
onclick="popupCode('TarImporter.src/M000070.html');return false;">
|
225
225
|
<span class="method-name">checkout</span><span class="method-args">(package)</span>
|
226
226
|
</a>
|
227
227
|
</div>
|
@@ -230,12 +230,12 @@
|
|
230
230
|
</div>
|
231
231
|
</div>
|
232
232
|
|
233
|
-
<div id="method-
|
234
|
-
<a name="
|
233
|
+
<div id="method-M000069" class="method-detail">
|
234
|
+
<a name="M000069"></a>
|
235
235
|
|
236
236
|
<div class="method-heading">
|
237
|
-
<a href="TarImporter.src/
|
238
|
-
onclick="popupCode('TarImporter.src/
|
237
|
+
<a href="TarImporter.src/M000069.html" target="Code" class="method-signature"
|
238
|
+
onclick="popupCode('TarImporter.src/M000069.html');return false;">
|
239
239
|
<span class="method-name">update</span><span class="method-args">(package)</span>
|
240
240
|
</a>
|
241
241
|
</div>
|
@@ -244,12 +244,12 @@
|
|
244
244
|
</div>
|
245
245
|
</div>
|
246
246
|
|
247
|
-
<div id="method-
|
248
|
-
<a name="
|
247
|
+
<div id="method-M000065" class="method-detail">
|
248
|
+
<a name="M000065"></a>
|
249
249
|
|
250
250
|
<div class="method-heading">
|
251
|
-
<a href="TarImporter.src/
|
252
|
-
onclick="popupCode('TarImporter.src/
|
251
|
+
<a href="TarImporter.src/M000065.html" target="Code" class="method-signature"
|
252
|
+
onclick="popupCode('TarImporter.src/M000065.html');return false;">
|
253
253
|
<span class="method-name">update_cache</span><span class="method-args">()</span>
|
254
254
|
</a>
|
255
255
|
</div>
|
@@ -258,12 +258,12 @@
|
|
258
258
|
</div>
|
259
259
|
</div>
|
260
260
|
|
261
|
-
<div id="method-
|
262
|
-
<a name="
|
261
|
+
<div id="method-M000066" class="method-detail">
|
262
|
+
<a name="M000066"></a>
|
263
263
|
|
264
264
|
<div class="method-heading">
|
265
|
-
<a href="TarImporter.src/
|
266
|
-
onclick="popupCode('TarImporter.src/
|
265
|
+
<a href="TarImporter.src/M000066.html" target="Code" class="method-signature"
|
266
|
+
onclick="popupCode('TarImporter.src/M000066.html');return false;">
|
267
267
|
<span class="method-name">url=</span><span class="method-args">(url)</span>
|
268
268
|
</a>
|
269
269
|
</div>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">package</span>)
|
15
15
|
<span class="ruby-identifier">checkout</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">update_cache</span>
|
16
16
|
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">OpenURI</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTPError</span>
|
17
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Autobuild</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">package</span>.<span class="ruby-identifier">
|
17
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Autobuild</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">package</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">:import</span>)
|
18
18
|
<span class="ruby-keyword kw">end</span></pre>
|
19
19
|
</body>
|
20
20
|
</html>
|