sprout 1.0.35.pre → 1.1.2.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/Gemfile +1 -1
- data/Gemfile.lock +0 -2
- data/README.textile +1 -1
- data/VERSION +1 -1
- data/lib/sprout/concern.rb +5 -7
- data/lib/sprout/daemon.rb +183 -143
- data/lib/sprout/executable/base.rb +564 -0
- data/lib/sprout/executable.rb +1 -550
- data/lib/sprout/generator/base.rb +2 -3
- data/lib/sprout/generator.rb +2 -1
- data/lib/sprout/generators/ruby/templates/ruby_base.rb +1 -2
- data/lib/sprout/library.rb +3 -3
- data/lib/sprout/output_buffer.rb +35 -0
- data/lib/sprout/process_runner.rb +68 -17
- data/lib/sprout/progress_bar.rb +5 -5
- data/lib/sprout/remote_file_target.rb +1 -1
- data/lib/sprout/system/base_system.rb +3 -3
- data/lib/sprout/system/unix_system.rb +1 -1
- data/lib/sprout/{test/sprout_test_case.rb → test_helper.rb} +214 -14
- data/lib/sprout/version.rb +1 -1
- data/lib/sprout.rb +133 -2
- data/rakefile.rb +2 -0
- data/test/fixtures/examples/echo_inputs.rb +1 -2
- data/test/fixtures/executable/fdb.rb +7 -9
- data/test/fixtures/executable/flex3sdk_gem/fdb +49 -18
- data/test/fixtures/executable/mxmlc.rb +1 -2
- data/test/fixtures/executable/subclass/executable_subclass.rb +0 -1
- data/test/fixtures/executable/subclass/executable_superclass.rb +1 -2
- data/test/fixtures/specification/flex4sdk.rb +35 -24
- data/test/unit/archive_unpacker_test.rb +1 -1
- data/test/unit/boolean_param_test.rb +1 -1
- data/test/unit/daemon_test.rb +35 -3
- data/test/unit/executable_option_parser_test.rb +2 -3
- data/test/unit/executable_param_test.rb +1 -1
- data/test/unit/executable_test.rb +8 -15
- data/test/unit/fake_other_executable.rb +1 -2
- data/test/unit/file_param_test.rb +1 -1
- data/test/unit/file_target_test.rb +1 -1
- data/test/unit/files_param_test.rb +1 -1
- data/test/unit/generator_generator_test.rb +1 -1
- data/test/unit/generator_test.rb +1 -1
- data/test/unit/library_generator_test.rb +1 -1
- data/test/unit/library_test.rb +1 -1
- data/test/unit/osx_system_test.rb +1 -1
- data/test/unit/path_param_test.rb +1 -1
- data/test/unit/paths_param_test.rb +1 -1
- data/test/unit/platform_test.rb +1 -1
- data/test/unit/process_runner_test.rb +1 -1
- data/test/unit/rdoc_parser_test.rb +1 -1
- data/test/unit/remote_file_loader_test.rb +1 -1
- data/test/unit/remote_file_target_test.rb +1 -1
- data/test/unit/ruby_feature_test.rb +1 -1
- data/test/unit/ruby_generator_test.rb +1 -1
- data/test/unit/specification_test.rb +8 -1
- data/test/unit/sprout_test.rb +2 -2
- data/test/unit/string_param_test.rb +1 -1
- data/test/unit/string_test.rb +1 -1
- data/test/unit/strings_param_test.rb +1 -1
- data/test/unit/test_helper.rb +33 -1
- data/test/unit/tool_generator_test.rb +1 -1
- data/test/unit/unix_system_test.rb +1 -1
- data/test/unit/user_test.rb +1 -1
- data/test/unit/vista_system_test.rb +1 -1
- data/test/unit/win_nix_system_test.rb +1 -1
- data/test/unit/win_system_test.rb +1 -1
- data/test-stderr.log +1 -0
- data/test-stdout.log +237 -0
- metadata +15 -190
- data/doc/Dir.html +0 -288
- data/doc/Rake/Task.html +0 -184
- data/doc/Sprout/ArchiveUnpacker.html +0 -1246
- data/doc/Sprout/Base/ClassMethods.html +0 -434
- data/doc/Sprout/Base.html +0 -126
- data/doc/Sprout/Concern.html +0 -353
- data/doc/Sprout/Daemon/ClassMethods.html +0 -244
- data/doc/Sprout/Daemon/InstanceMethods.html +0 -601
- data/doc/Sprout/Daemon.html +0 -166
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +0 -125
- data/doc/Sprout/Errors/DestinationExistsError.html +0 -133
- data/doc/Sprout/Errors/DuplicateMemberError.html +0 -132
- data/doc/Sprout/Errors/ExecutableError.html +0 -125
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +0 -132
- data/doc/Sprout/Errors/ExecutionError.html +0 -121
- data/doc/Sprout/Errors/GeneratorError.html +0 -125
- data/doc/Sprout/Errors/InvalidArgumentError.html +0 -132
- data/doc/Sprout/Errors/LoadError.html +0 -121
- data/doc/Sprout/Errors/MissingArgumentError.html +0 -132
- data/doc/Sprout/Errors/MissingExecutableError.html +0 -132
- data/doc/Sprout/Errors/MissingGeneratorError.html +0 -132
- data/doc/Sprout/Errors/MissingTemplateError.html +0 -132
- data/doc/Sprout/Errors/ProcessRunnerError.html +0 -121
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +0 -110
- data/doc/Sprout/Errors/SproutError.html +0 -114
- data/doc/Sprout/Errors/UnknownArchiveType.html +0 -122
- data/doc/Sprout/Errors/UsageError.html +0 -121
- data/doc/Sprout/Errors/ValidationError.html +0 -121
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +0 -121
- data/doc/Sprout/Errors.html +0 -101
- data/doc/Sprout/Executable/Boolean.html +0 -483
- data/doc/Sprout/Executable/ClassMethods.html +0 -417
- data/doc/Sprout/Executable/CollectionParam.html +0 -483
- data/doc/Sprout/Executable/FileParam.html +0 -484
- data/doc/Sprout/Executable/Files.html +0 -292
- data/doc/Sprout/Executable/InstanceMethods.html +0 -2006
- data/doc/Sprout/Executable/Number.html +0 -141
- data/doc/Sprout/Executable/Param.html +0 -2818
- data/doc/Sprout/Executable/ParameterFactory.html +0 -232
- data/doc/Sprout/Executable/Path.html +0 -223
- data/doc/Sprout/Executable/Paths.html +0 -253
- data/doc/Sprout/Executable/StringParam.html +0 -213
- data/doc/Sprout/Executable/Strings.html +0 -167
- data/doc/Sprout/Executable/Url.html +0 -160
- data/doc/Sprout/Executable/Urls.html +0 -170
- data/doc/Sprout/Executable.html +0 -173
- data/doc/Sprout/FileTarget.html +0 -1109
- data/doc/Sprout/Generator/Base.html +0 -1626
- data/doc/Sprout/Generator/Command.html +0 -690
- data/doc/Sprout/Generator/DirectoryManifest.html +0 -476
- data/doc/Sprout/Generator/FileManifest.html +0 -572
- data/doc/Sprout/Generator/Manifest.html +0 -377
- data/doc/Sprout/Generator/TemplateManifest.html +0 -196
- data/doc/Sprout/Generator.html +0 -689
- data/doc/Sprout/GeneratorGenerator.html +0 -1018
- data/doc/Sprout/Library.html +0 -1141
- data/doc/Sprout/LibraryGenerator.html +0 -309
- data/doc/Sprout/Log.html +0 -496
- data/doc/Sprout/MXMLC.html +0 -6373
- data/doc/Sprout/Platform.html +0 -714
- data/doc/Sprout/ProcessRunner.html +0 -1352
- data/doc/Sprout/ProgressBar.html +0 -376
- data/doc/Sprout/ProgressBarImpl.html +0 -2119
- data/doc/Sprout/ProgressBarManager.html +0 -434
- data/doc/Sprout/ProgressBarOutputStream.html +0 -416
- data/doc/Sprout/RDocParser.html +0 -211
- data/doc/Sprout/RemoteFileLoader.html +0 -172
- data/doc/Sprout/RemoteFileTarget.html +0 -679
- data/doc/Sprout/ReversedProgressBar.html +0 -194
- data/doc/Sprout/RubyFeature/ClassMethods.html +0 -1065
- data/doc/Sprout/RubyFeature.html +0 -155
- data/doc/Sprout/RubyGenerator.html +0 -764
- data/doc/Sprout/Specification.html +0 -767
- data/doc/Sprout/System/BaseSystem.html +0 -1455
- data/doc/Sprout/System/JavaSystem.html +0 -122
- data/doc/Sprout/System/OSXSystem.html +0 -335
- data/doc/Sprout/System/ThreadMock.html +0 -193
- data/doc/Sprout/System/UnixSystem.html +0 -584
- data/doc/Sprout/System/VistaSystem.html +0 -251
- data/doc/Sprout/System/WinNixSystem.html +0 -325
- data/doc/Sprout/System/WinSystem.html +0 -571
- data/doc/Sprout/System.html +0 -191
- data/doc/Sprout/ToolGenerator.html +0 -931
- data/doc/Sprout/VERSION.html +0 -128
- data/doc/Sprout.html +0 -144
- data/doc/SproutTestCase.html +0 -1412
- data/doc/String.html +0 -286
- data/doc/_index.html +0 -1035
- data/doc/class_list.html +0 -36
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -53
- data/doc/css/style.css +0 -310
- data/doc/file.README.html +0 -96
- data/doc/file.archive_unpacker.html +0 -288
- data/doc/file.base.html +0 -208
- data/doc/file.base_system.html +0 -278
- data/doc/file.boolean.html +0 -135
- data/doc/file.collection_param.html +0 -139
- data/doc/file.command.html +0 -126
- data/doc/file.concern.html +0 -136
- data/doc/file.daemon.html +0 -309
- data/doc/file.dir.html +0 -76
- data/doc/file.directory_manifest.html +0 -122
- data/doc/file.errors.html +0 -147
- data/doc/file.executable.html +0 -638
- data/doc/file.file_manifest.html +0 -109
- data/doc/file.file_param.html +0 -120
- data/doc/file.file_target.html +0 -140
- data/doc/file.files.html +0 -85
- data/doc/file.generator.html +0 -296
- data/doc/file.generator_class.html +0 -72
- data/doc/file.generator_generator.html +0 -137
- data/doc/file.generator_test.html +0 -92
- data/doc/file.generator_test_helper.html +0 -67
- data/doc/file.java_system.html +0 -62
- data/doc/file.library.html +0 -291
- data/doc/file.library_generator.html +0 -74
- data/doc/file.log.html +0 -100
- data/doc/file.manifest.html +0 -67
- data/doc/file.mxmlc.html +0 -740
- data/doc/file.number.html +0 -67
- data/doc/file.osx_system.html +0 -79
- data/doc/file.param.html +0 -491
- data/doc/file.parameter_factory.html +0 -119
- data/doc/file.path.html +0 -81
- data/doc/file.paths.html +0 -80
- data/doc/file.platform.html +0 -124
- data/doc/file.process_runner.html +0 -224
- data/doc/file.progress_bar.html +0 -390
- data/doc/file.rdoc_parser.html +0 -145
- data/doc/file.remote_file_loader.html +0 -117
- data/doc/file.remote_file_target.html +0 -176
- data/doc/file.ruby_base.html +0 -64
- data/doc/file.ruby_feature.html +0 -244
- data/doc/file.ruby_generator.html +0 -118
- data/doc/file.ruby_input.html +0 -62
- data/doc/file.ruby_test_case.html +0 -78
- data/doc/file.ruby_test_helper.html +0 -61
- data/doc/file.specification.html +0 -248
- data/doc/file.sprout.html +0 -64
- data/doc/file.sprout_test_case.html +0 -280
- data/doc/file.string.html +0 -72
- data/doc/file.string_param.html +0 -76
- data/doc/file.strings.html +0 -71
- data/doc/file.system.html +0 -86
- data/doc/file.template_manifest.html +0 -67
- data/doc/file.tool.html +0 -92
- data/doc/file.tool_generator.html +0 -90
- data/doc/file.unix_system.html +0 -128
- data/doc/file.url.html +0 -71
- data/doc/file.urls.html +0 -70
- data/doc/file.version.html +0 -71
- data/doc/file.vista_system.html +0 -69
- data/doc/file.win_nix_system.html +0 -88
- data/doc/file.win_system.html +0 -129
- data/doc/file_list.html +0 -230
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -96
- data/doc/js/app.js +0 -202
- data/doc/js/full_list.js +0 -149
- data/doc/js/jquery.js +0 -154
- data/doc/method_list.html +0 -3355
- data/doc/top-level-namespace.html +0 -192
- data/lib/sprout/base.rb +0 -121
- data/lib/sprout/log.rb +0 -46
- data/test/unit/sprout_test_helper.rb +0 -33
data/doc/Sprout/Library.html
DELETED
@@ -1,1141 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Class: Sprout::Library</title>
|
7
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '..';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="../_index.html">Index (L)</a> »
|
27
|
-
<span class='title'><span class='object_link'><a href="../Sprout.html" title="Sprout (module)">Sprout</a></span></span>
|
28
|
-
»
|
29
|
-
<span class="title">Library</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Class: Sprout::Library
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
</h1>
|
51
|
-
|
52
|
-
<dl class="box">
|
53
|
-
|
54
|
-
<dt class="r1">Inherits:</dt>
|
55
|
-
<dd class="r1">
|
56
|
-
<span class="inheritName">Object</span>
|
57
|
-
|
58
|
-
<ul class="fullTree">
|
59
|
-
<li>Object</li>
|
60
|
-
|
61
|
-
<li class="next">Sprout::Library</li>
|
62
|
-
|
63
|
-
</ul>
|
64
|
-
<a href="#" class="inheritanceTree">show all</a>
|
65
|
-
|
66
|
-
</dd>
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<dt class="r2">Includes:</dt>
|
74
|
-
<dd class="r2"><span class='object_link'><a href="RubyFeature.html" title="Sprout::RubyFeature (module)">RubyFeature</a></span></dd>
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1 last">Defined in:</dt>
|
81
|
-
<dd class="r1 last">lib/sprout/library.rb</dd>
|
82
|
-
|
83
|
-
</dl>
|
84
|
-
<div class="clear"></div>
|
85
|
-
|
86
|
-
<h2>Overview</h2><div class="docstring">
|
87
|
-
<div class="discussion">
|
88
|
-
|
89
|
-
<p>Sprout Libraries provide support for sharing and versioning raw or
|
90
|
-
pre-compiled source code across projects.</p>
|
91
|
-
|
92
|
-
<p>Sprout Libraries give us the ability to include raw (or pre-compiled)
|
93
|
-
source code directly within a Ruby Gem, or to refer to an archive somewhere
|
94
|
-
on the internet.</p>
|
95
|
-
|
96
|
-
<p>A Sprout Library is made up of two components:</p>
|
97
|
-
<ul><li>
|
98
|
-
<p>Specification: The description of the library</p>
|
99
|
-
</li><li>
|
100
|
-
<p>Source Code: Raw or pre-compiled (swc, jar, abc)</p>
|
101
|
-
</li></ul>
|
102
|
-
|
103
|
-
<h1>Specification</h1>
|
104
|
-
|
105
|
-
<p>Libraries can be added to local or remote file targets in a
|
106
|
-
Sprout::Specification. When calling add_library, one must provide the
|
107
|
-
library name (symbol that will be used from Rake) and a relative path (or
|
108
|
-
Array of paths) from the Specification to the library file or directory.</p>
|
109
|
-
|
110
|
-
<p>Following is an example of a Sprout::Specification that registers a SWC
|
111
|
-
that will be distributed directly within a Ruby Gem:</p>
|
112
|
-
|
113
|
-
<pre class="code"><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Specification</span><span class='period'>.</span><span class='id new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id s'>s</span><span class='op'>|</span>
|
114
|
-
<span class='id s'>s</span><span class='period'>.</span><span class='id name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>asunit4</span><span class='tstring_end'>"</span></span>
|
115
|
-
<span class='id s'>s</span><span class='period'>.</span><span class='id version'>version</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>4.4.2</span><span class='tstring_end'>"</span></span>
|
116
|
-
<span class='id s'>s</span><span class='period'>.</span><span class='id add_file_target'>add_file_target</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id f'>f</span><span class='op'>|</span>
|
117
|
-
<span class='id f'>f</span><span class='period'>.</span><span class='id add_library'>add_library</span> <span class='symbol'>:swc</span><span class='comma'>,</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bin</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>AsUnit-4.4.2.swc</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
118
|
-
<span class='kw'>end</span>
|
119
|
-
<span class='kw'>end</span></pre>
|
120
|
-
|
121
|
-
<p>Following is an example of a Sprout::Specification that registers a ZIP
|
122
|
-
archive that will be distributed separately from the Ruby Gem:</p>
|
123
|
-
|
124
|
-
<pre class="code"><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Specification</span><span class='period'>.</span><span class='id new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id s'>s</span><span class='op'>|</span>
|
125
|
-
<span class='id s'>s</span><span class='period'>.</span><span class='id name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>asunit3</span><span class='tstring_end'>"</span></span>
|
126
|
-
<span class='id s'>s</span><span class='period'>.</span><span class='id version'>version</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>3.0.0</span><span class='tstring_end'>"</span></span>
|
127
|
-
<span class='id s'>s</span><span class='period'>.</span><span class='id add_remote_file_target'>add_remote_file_target</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id f'>f</span><span class='op'>|</span>
|
128
|
-
<span class='id f'>f</span><span class='period'>.</span><span class='id url'>url</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>https://github.com/patternpark/asunit/tree/3.0.0</span><span class='tstring_end'>"</span></span>
|
129
|
-
<span class='id f'>f</span><span class='period'>.</span><span class='id md5'>md5</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>abcdefghijklmnopqrstuvwxyz</span><span class='tstring_end'>"</span></span>
|
130
|
-
<span class='id f'>f</span><span class='period'>.</span><span class='id add_library'>add_library</span> <span class='symbol'>:swc</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bin/AsUnit-3.0.1.zip</span><span class='tstring_end'>"</span></span>
|
131
|
-
<span class='kw'>end</span>
|
132
|
-
<span class='kw'>end</span></pre>
|
133
|
-
|
134
|
-
<p>Libraries can be consumed from any Rakefile without concern for how the
|
135
|
-
source code is distributed. Following is an example Rake task that uses the
|
136
|
-
AsUnit 4.0 Library:</p>
|
137
|
-
|
138
|
-
<pre class="code"><span class='comment'># Define the library Rake::Task:
|
139
|
-
</span><span class='id library'>library</span> <span class='symbol'>:asunit4</span>
|
140
|
-
|
141
|
-
<span class='comment'># Add the library as a dependency from another task
|
142
|
-
</span><span class='comment'># that should know how to properly associate the files:
|
143
|
-
</span><span class='id mxmlc'>mxmlc</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bin/SomeProject.swf</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='symbol'>:asunit4</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id t'>t</span><span class='op'>|</span>
|
144
|
-
<span class='id t'>t</span><span class='period'>.</span><span class='id input'>input</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>src/SomeProject.as</span><span class='tstring_end'>'</span></span>
|
145
|
-
<span class='kw'>end</span></pre>
|
146
|
-
|
147
|
-
<p>When the library task is executed, the library should be resolved and
|
148
|
-
expanded into the project. When the mxmlc task is executed, the installed
|
149
|
-
library should be associated with the compilation command.</p>
|
150
|
-
<hr style="height: 1px">
|
151
|
-
|
152
|
-
<p>Previous Topic: <span class='object_link'><a href="Generator.html" title="Sprout::Generator (module)">Generator</a></span></p>
|
153
|
-
|
154
|
-
<p>Next Topic: <span class='object_link'><a href="Executable.html" title="Sprout::Executable (module)">Executable</a></span></p>
|
155
|
-
<hr style="height: 1px">
|
156
|
-
|
157
|
-
|
158
|
-
</div>
|
159
|
-
</div>
|
160
|
-
<div class="tags">
|
161
|
-
|
162
|
-
<h3>See Also:</h3>
|
163
|
-
<ul class="see">
|
164
|
-
|
165
|
-
<li><span class='object_link'><a href="Generator.html" title="Sprout::Generator (module)">Generator</a></span></li>
|
166
|
-
|
167
|
-
<li><span class='object_link'><a href="Executable.html" title="Sprout::Executable (module)">Executable</a></span></li>
|
168
|
-
|
169
|
-
<li><span class='object_link'><a href="Specification.html" title="Sprout::Specification (class)">Specification</a></span></li>
|
170
|
-
|
171
|
-
<li><span class='object_link'><a href="RubyFeature.html" title="Sprout::RubyFeature (module)">RubyFeature</a></span></li>
|
172
|
-
|
173
|
-
<li><span class='object_link'><a href="System.html" title="Sprout::System (module)">System</a></span></li>
|
174
|
-
|
175
|
-
</ul>
|
176
|
-
|
177
|
-
</div>
|
178
|
-
<h2>Constant Summary</h2>
|
179
|
-
|
180
|
-
<dl class="constants">
|
181
|
-
|
182
|
-
<dt id="TASK_NAME-constant" class="">TASK_NAME =
|
183
|
-
|
184
|
-
</dt>
|
185
|
-
<dd><pre class="code"><span class='symbol'>:resolve_sprout_libraries</span></pre></dd>
|
186
|
-
|
187
|
-
</dl>
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
200
|
-
<ul class="summary">
|
201
|
-
|
202
|
-
<li class="public ">
|
203
|
-
<span class="summary_signature">
|
204
|
-
|
205
|
-
<a href="#file_target-instance_method" title="#file_target (instance method)">- (Object) <strong>file_target</strong> </a>
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
</span>
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
<span class="summary_desc"><div class='inline'>
|
222
|
-
<p>Returns the value of attribute file_target.</p>
|
223
|
-
</div></span>
|
224
|
-
|
225
|
-
</li>
|
226
|
-
|
227
|
-
|
228
|
-
<li class="public ">
|
229
|
-
<span class="summary_signature">
|
230
|
-
|
231
|
-
<a href="#installed_project_path-instance_method" title="#installed_project_path (instance method)">- (Object) <strong>installed_project_path</strong> </a>
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
</span>
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
<span class="summary_desc"><div class='inline'>
|
248
|
-
<p>Returns the value of attribute installed_project_path.</p>
|
249
|
-
</div></span>
|
250
|
-
|
251
|
-
</li>
|
252
|
-
|
253
|
-
|
254
|
-
<li class="public ">
|
255
|
-
<span class="summary_signature">
|
256
|
-
|
257
|
-
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
</span>
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
<span class="summary_desc"><div class='inline'>
|
274
|
-
<p>Returns the value of attribute name.</p>
|
275
|
-
</div></span>
|
276
|
-
|
277
|
-
</li>
|
278
|
-
|
279
|
-
|
280
|
-
<li class="public ">
|
281
|
-
<span class="summary_signature">
|
282
|
-
|
283
|
-
<a href="#path-instance_method" title="#path (instance method)">- (Object) <strong>path</strong> </a>
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
</span>
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
<span class="summary_desc"><div class='inline'>
|
300
|
-
<p>Returns the value of attribute path.</p>
|
301
|
-
</div></span>
|
302
|
-
|
303
|
-
</li>
|
304
|
-
|
305
|
-
|
306
|
-
<li class="public ">
|
307
|
-
<span class="summary_signature">
|
308
|
-
|
309
|
-
<a href="#pkg_name-instance_method" title="#pkg_name (instance method)">- (Object) <strong>pkg_name</strong> </a>
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
</span>
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
<span class="summary_desc"><div class='inline'>
|
326
|
-
<p>Returns the value of attribute pkg_name.</p>
|
327
|
-
</div></span>
|
328
|
-
|
329
|
-
</li>
|
330
|
-
|
331
|
-
|
332
|
-
<li class="public ">
|
333
|
-
<span class="summary_signature">
|
334
|
-
|
335
|
-
<a href="#pkg_version-instance_method" title="#pkg_version (instance method)">- (Object) <strong>pkg_version</strong> </a>
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
</span>
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
<span class="summary_desc"><div class='inline'>
|
352
|
-
<p>Returns the value of attribute pkg_version.</p>
|
353
|
-
</div></span>
|
354
|
-
|
355
|
-
</li>
|
356
|
-
|
357
|
-
|
358
|
-
<li class="public ">
|
359
|
-
<span class="summary_signature">
|
360
|
-
|
361
|
-
<a href="#platform-instance_method" title="#platform (instance method)">- (Object) <strong>platform</strong> </a>
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
</span>
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
<span class="summary_desc"><div class='inline'>
|
378
|
-
<p>Returns the value of attribute platform.</p>
|
379
|
-
</div></span>
|
380
|
-
|
381
|
-
</li>
|
382
|
-
|
383
|
-
|
384
|
-
</ul>
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
<h2>
|
389
|
-
Class Method Summary
|
390
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
391
|
-
</h2>
|
392
|
-
|
393
|
-
<ul class="summary">
|
394
|
-
|
395
|
-
<li class="public ">
|
396
|
-
<span class="summary_signature">
|
397
|
-
|
398
|
-
<a href="#define_task-class_method" title="define_task (class method)">+ (Object) <strong>define_task</strong>(name = nil, pkg_name = nil, pkg_version = nil) </a>
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
</span>
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
<span class="summary_desc"><div class='inline'>
|
412
|
-
<p>Create Rake tasks that will load and install a particular library into the
|
413
|
-
current project.</p>
|
414
|
-
</div></span>
|
415
|
-
|
416
|
-
</li>
|
417
|
-
|
418
|
-
|
419
|
-
<li class="public ">
|
420
|
-
<span class="summary_signature">
|
421
|
-
|
422
|
-
<a href="#project_path-class_method" title="project_path (class method)">+ (Object) <strong>project_path</strong> </a>
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
</span>
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
<span class="summary_desc"><div class='inline'>
|
436
|
-
<p>The path within a project where libraries should be added.</p>
|
437
|
-
</div></span>
|
438
|
-
|
439
|
-
</li>
|
440
|
-
|
441
|
-
|
442
|
-
<li class="public ">
|
443
|
-
<span class="summary_signature">
|
444
|
-
|
445
|
-
<a href="#project_path%3D-class_method" title="project_path= (class method)">+ (Object) <strong>project_path=</strong>(path) </a>
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
</span>
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
<span class="summary_desc"><div class='inline'>
|
459
|
-
<p>Set the path within a project where libraries should be loaded.</p>
|
460
|
-
</div></span>
|
461
|
-
|
462
|
-
</li>
|
463
|
-
|
464
|
-
|
465
|
-
</ul>
|
466
|
-
|
467
|
-
<h2>
|
468
|
-
Instance Method Summary
|
469
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
470
|
-
</h2>
|
471
|
-
|
472
|
-
<ul class="summary">
|
473
|
-
|
474
|
-
<li class="public ">
|
475
|
-
<span class="summary_signature">
|
476
|
-
|
477
|
-
<a href="#create_installation_tasks-instance_method" title="#create_installation_tasks (instance method)">- (Object) <strong>create_installation_tasks</strong> </a>
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
</span>
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
<span class="summary_desc"><div class='inline'>
|
491
|
-
<p>Returns the outer Rake::Task which is invokable.</p>
|
492
|
-
</div></span>
|
493
|
-
|
494
|
-
</li>
|
495
|
-
|
496
|
-
|
497
|
-
<li class="public ">
|
498
|
-
<span class="summary_signature">
|
499
|
-
|
500
|
-
<a href="#create_outer_task-instance_method" title="#create_outer_task (instance method)">- (Object) <strong>create_outer_task</strong> </a>
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
</span>
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
514
|
-
|
515
|
-
</li>
|
516
|
-
|
517
|
-
|
518
|
-
<li class="public ">
|
519
|
-
<span class="summary_signature">
|
520
|
-
|
521
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Library) <strong>initialize</strong>(params = nil) </a>
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
</span>
|
526
|
-
|
527
|
-
<span class="note title constructor">constructor</span>
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
<span class="summary_desc"><div class='inline'>
|
537
|
-
<p>A new instance of Library.</p>
|
538
|
-
</div></span>
|
539
|
-
|
540
|
-
</li>
|
541
|
-
|
542
|
-
|
543
|
-
</ul>
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="Concern.html" title="Sprout::Concern (module)">Concern</a></span></h3>
|
560
|
-
<p class="inherited"><span class='object_link'><a href="Concern.html#append_features-instance_method" title="Sprout::Concern#append_features (method)">#append_features</a></span>, <span class='object_link'><a href="Concern.html#extended-class_method" title="Sprout::Concern.extended (method)">extended</a></span>, <span class='object_link'><a href="Concern.html#included-instance_method" title="Sprout::Concern#included (method)">#included</a></span></p>
|
561
|
-
<div id="constructor_details" class="method_details_list">
|
562
|
-
<h2>Constructor Details</h2>
|
563
|
-
|
564
|
-
<div class="method_details first">
|
565
|
-
<p class="signature first" id="initialize-instance_method">
|
566
|
-
|
567
|
-
- (<tt><span class='object_link'><a href="" title="Sprout::Library (class)">Library</a></span></tt>) <strong>initialize</strong>(params = nil)
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
</p><div class="docstring">
|
572
|
-
<div class="discussion">
|
573
|
-
|
574
|
-
<p>A new instance of Library</p>
|
575
|
-
|
576
|
-
|
577
|
-
</div>
|
578
|
-
</div>
|
579
|
-
<div class="tags">
|
580
|
-
|
581
|
-
</div><table class="source_code">
|
582
|
-
<tr>
|
583
|
-
<td>
|
584
|
-
<pre class="lines">
|
585
|
-
|
586
|
-
|
587
|
-
135
|
588
|
-
136
|
589
|
-
137
|
590
|
-
138</pre>
|
591
|
-
</td>
|
592
|
-
<td>
|
593
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 135</span>
|
594
|
-
|
595
|
-
<span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id params'>params</span><span class='op'>=</span><span class='kw'>nil</span>
|
596
|
-
<span class='id params'>params</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id key'>key</span><span class='comma'>,</span><span class='id value'>value</span><span class='op'>|</span> <span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id key'>key</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id value'>value</span><span class='rparen'>)</span><span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='id params'>params</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
597
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
598
|
-
<span class='kw'>end</span></pre>
|
599
|
-
</td>
|
600
|
-
</tr>
|
601
|
-
</table>
|
602
|
-
</div>
|
603
|
-
|
604
|
-
</div>
|
605
|
-
|
606
|
-
<div id="instance_attr_details" class="attr_details">
|
607
|
-
<h2>Instance Attribute Details</h2>
|
608
|
-
|
609
|
-
|
610
|
-
<span id="file_target=-instance_method"></span>
|
611
|
-
<span id="file_target-instance_method"></span>
|
612
|
-
<div class="method_details first">
|
613
|
-
<p class="signature first" id="file_target-instance_method">
|
614
|
-
|
615
|
-
- (<tt>Object</tt>) <strong>file_target</strong>
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
</p><div class="docstring">
|
620
|
-
<div class="discussion">
|
621
|
-
|
622
|
-
<p>Returns the value of attribute file_target</p>
|
623
|
-
|
624
|
-
|
625
|
-
</div>
|
626
|
-
</div>
|
627
|
-
<div class="tags">
|
628
|
-
|
629
|
-
</div><table class="source_code">
|
630
|
-
<tr>
|
631
|
-
<td>
|
632
|
-
<pre class="lines">
|
633
|
-
|
634
|
-
|
635
|
-
83
|
636
|
-
84
|
637
|
-
85</pre>
|
638
|
-
</td>
|
639
|
-
<td>
|
640
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 83</span>
|
641
|
-
|
642
|
-
<span class='kw'>def</span> <span class='id file_target'>file_target</span>
|
643
|
-
<span class='ivar'>@file_target</span>
|
644
|
-
<span class='kw'>end</span></pre>
|
645
|
-
</td>
|
646
|
-
</tr>
|
647
|
-
</table>
|
648
|
-
</div>
|
649
|
-
|
650
|
-
|
651
|
-
<span id="installed_project_path=-instance_method"></span>
|
652
|
-
<span id="installed_project_path-instance_method"></span>
|
653
|
-
<div class="method_details ">
|
654
|
-
<p class="signature " id="installed_project_path-instance_method">
|
655
|
-
|
656
|
-
- (<tt>Object</tt>) <strong>installed_project_path</strong>
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
</p><div class="docstring">
|
661
|
-
<div class="discussion">
|
662
|
-
|
663
|
-
<p>Returns the value of attribute installed_project_path</p>
|
664
|
-
|
665
|
-
|
666
|
-
</div>
|
667
|
-
</div>
|
668
|
-
<div class="tags">
|
669
|
-
|
670
|
-
</div><table class="source_code">
|
671
|
-
<tr>
|
672
|
-
<td>
|
673
|
-
<pre class="lines">
|
674
|
-
|
675
|
-
|
676
|
-
84
|
677
|
-
85
|
678
|
-
86</pre>
|
679
|
-
</td>
|
680
|
-
<td>
|
681
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 84</span>
|
682
|
-
|
683
|
-
<span class='kw'>def</span> <span class='id installed_project_path'>installed_project_path</span>
|
684
|
-
<span class='ivar'>@installed_project_path</span>
|
685
|
-
<span class='kw'>end</span></pre>
|
686
|
-
</td>
|
687
|
-
</tr>
|
688
|
-
</table>
|
689
|
-
</div>
|
690
|
-
|
691
|
-
|
692
|
-
<span id="name=-instance_method"></span>
|
693
|
-
<span id="name-instance_method"></span>
|
694
|
-
<div class="method_details ">
|
695
|
-
<p class="signature " id="name-instance_method">
|
696
|
-
|
697
|
-
- (<tt>Object</tt>) <strong>name</strong>
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
</p><div class="docstring">
|
702
|
-
<div class="discussion">
|
703
|
-
|
704
|
-
<p>Returns the value of attribute name</p>
|
705
|
-
|
706
|
-
|
707
|
-
</div>
|
708
|
-
</div>
|
709
|
-
<div class="tags">
|
710
|
-
|
711
|
-
</div><table class="source_code">
|
712
|
-
<tr>
|
713
|
-
<td>
|
714
|
-
<pre class="lines">
|
715
|
-
|
716
|
-
|
717
|
-
85
|
718
|
-
86
|
719
|
-
87</pre>
|
720
|
-
</td>
|
721
|
-
<td>
|
722
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 85</span>
|
723
|
-
|
724
|
-
<span class='kw'>def</span> <span class='id name'>name</span>
|
725
|
-
<span class='ivar'>@name</span>
|
726
|
-
<span class='kw'>end</span></pre>
|
727
|
-
</td>
|
728
|
-
</tr>
|
729
|
-
</table>
|
730
|
-
</div>
|
731
|
-
|
732
|
-
|
733
|
-
<span id="path=-instance_method"></span>
|
734
|
-
<span id="path-instance_method"></span>
|
735
|
-
<div class="method_details ">
|
736
|
-
<p class="signature " id="path-instance_method">
|
737
|
-
|
738
|
-
- (<tt>Object</tt>) <strong>path</strong>
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
</p><div class="docstring">
|
743
|
-
<div class="discussion">
|
744
|
-
|
745
|
-
<p>Returns the value of attribute path</p>
|
746
|
-
|
747
|
-
|
748
|
-
</div>
|
749
|
-
</div>
|
750
|
-
<div class="tags">
|
751
|
-
|
752
|
-
</div><table class="source_code">
|
753
|
-
<tr>
|
754
|
-
<td>
|
755
|
-
<pre class="lines">
|
756
|
-
|
757
|
-
|
758
|
-
86
|
759
|
-
87
|
760
|
-
88</pre>
|
761
|
-
</td>
|
762
|
-
<td>
|
763
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 86</span>
|
764
|
-
|
765
|
-
<span class='kw'>def</span> <span class='id path'>path</span>
|
766
|
-
<span class='ivar'>@path</span>
|
767
|
-
<span class='kw'>end</span></pre>
|
768
|
-
</td>
|
769
|
-
</tr>
|
770
|
-
</table>
|
771
|
-
</div>
|
772
|
-
|
773
|
-
|
774
|
-
<span id="pkg_name=-instance_method"></span>
|
775
|
-
<span id="pkg_name-instance_method"></span>
|
776
|
-
<div class="method_details ">
|
777
|
-
<p class="signature " id="pkg_name-instance_method">
|
778
|
-
|
779
|
-
- (<tt>Object</tt>) <strong>pkg_name</strong>
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
</p><div class="docstring">
|
784
|
-
<div class="discussion">
|
785
|
-
|
786
|
-
<p>Returns the value of attribute pkg_name</p>
|
787
|
-
|
788
|
-
|
789
|
-
</div>
|
790
|
-
</div>
|
791
|
-
<div class="tags">
|
792
|
-
|
793
|
-
</div><table class="source_code">
|
794
|
-
<tr>
|
795
|
-
<td>
|
796
|
-
<pre class="lines">
|
797
|
-
|
798
|
-
|
799
|
-
87
|
800
|
-
88
|
801
|
-
89</pre>
|
802
|
-
</td>
|
803
|
-
<td>
|
804
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 87</span>
|
805
|
-
|
806
|
-
<span class='kw'>def</span> <span class='id pkg_name'>pkg_name</span>
|
807
|
-
<span class='ivar'>@pkg_name</span>
|
808
|
-
<span class='kw'>end</span></pre>
|
809
|
-
</td>
|
810
|
-
</tr>
|
811
|
-
</table>
|
812
|
-
</div>
|
813
|
-
|
814
|
-
|
815
|
-
<span id="pkg_version=-instance_method"></span>
|
816
|
-
<span id="pkg_version-instance_method"></span>
|
817
|
-
<div class="method_details ">
|
818
|
-
<p class="signature " id="pkg_version-instance_method">
|
819
|
-
|
820
|
-
- (<tt>Object</tt>) <strong>pkg_version</strong>
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
</p><div class="docstring">
|
825
|
-
<div class="discussion">
|
826
|
-
|
827
|
-
<p>Returns the value of attribute pkg_version</p>
|
828
|
-
|
829
|
-
|
830
|
-
</div>
|
831
|
-
</div>
|
832
|
-
<div class="tags">
|
833
|
-
|
834
|
-
</div><table class="source_code">
|
835
|
-
<tr>
|
836
|
-
<td>
|
837
|
-
<pre class="lines">
|
838
|
-
|
839
|
-
|
840
|
-
88
|
841
|
-
89
|
842
|
-
90</pre>
|
843
|
-
</td>
|
844
|
-
<td>
|
845
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 88</span>
|
846
|
-
|
847
|
-
<span class='kw'>def</span> <span class='id pkg_version'>pkg_version</span>
|
848
|
-
<span class='ivar'>@pkg_version</span>
|
849
|
-
<span class='kw'>end</span></pre>
|
850
|
-
</td>
|
851
|
-
</tr>
|
852
|
-
</table>
|
853
|
-
</div>
|
854
|
-
|
855
|
-
|
856
|
-
<span id="platform=-instance_method"></span>
|
857
|
-
<span id="platform-instance_method"></span>
|
858
|
-
<div class="method_details ">
|
859
|
-
<p class="signature " id="platform-instance_method">
|
860
|
-
|
861
|
-
- (<tt>Object</tt>) <strong>platform</strong>
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
</p><div class="docstring">
|
866
|
-
<div class="discussion">
|
867
|
-
|
868
|
-
<p>Returns the value of attribute platform</p>
|
869
|
-
|
870
|
-
|
871
|
-
</div>
|
872
|
-
</div>
|
873
|
-
<div class="tags">
|
874
|
-
|
875
|
-
</div><table class="source_code">
|
876
|
-
<tr>
|
877
|
-
<td>
|
878
|
-
<pre class="lines">
|
879
|
-
|
880
|
-
|
881
|
-
89
|
882
|
-
90
|
883
|
-
91</pre>
|
884
|
-
</td>
|
885
|
-
<td>
|
886
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 89</span>
|
887
|
-
|
888
|
-
<span class='kw'>def</span> <span class='id platform'>platform</span>
|
889
|
-
<span class='ivar'>@platform</span>
|
890
|
-
<span class='kw'>end</span></pre>
|
891
|
-
</td>
|
892
|
-
</tr>
|
893
|
-
</table>
|
894
|
-
</div>
|
895
|
-
|
896
|
-
</div>
|
897
|
-
|
898
|
-
|
899
|
-
<div id="class_method_details" class="method_details_list">
|
900
|
-
<h2>Class Method Details</h2>
|
901
|
-
|
902
|
-
|
903
|
-
<div class="method_details first">
|
904
|
-
<p class="signature first" id="define_task-class_method">
|
905
|
-
|
906
|
-
+ (<tt>Object</tt>) <strong>define_task</strong>(name = nil, pkg_name = nil, pkg_version = nil)
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
</p><div class="docstring">
|
911
|
-
<div class="discussion">
|
912
|
-
|
913
|
-
<p>Create Rake tasks that will load and install a particular library into the
|
914
|
-
current project.</p>
|
915
|
-
|
916
|
-
<p>This method is usually accessed from the global library helper.</p>
|
917
|
-
|
918
|
-
<pre class="code"><span class='id library'>library</span> <span class='symbol'>:asunit4</span></pre>
|
919
|
-
|
920
|
-
|
921
|
-
</div>
|
922
|
-
</div>
|
923
|
-
<div class="tags">
|
924
|
-
|
925
|
-
</div><table class="source_code">
|
926
|
-
<tr>
|
927
|
-
<td>
|
928
|
-
<pre class="lines">
|
929
|
-
|
930
|
-
|
931
|
-
129
|
932
|
-
130
|
933
|
-
131
|
934
|
-
132</pre>
|
935
|
-
</td>
|
936
|
-
<td>
|
937
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 129</span>
|
938
|
-
|
939
|
-
<span class='kw'>def</span> <span class='id define_task'>define_task</span> <span class='id name'>name</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id pkg_name'>pkg_name</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id pkg_version'>pkg_version</span><span class='op'>=</span><span class='kw'>nil</span>
|
940
|
-
<span class='id library'>library</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='period'>.</span><span class='id load'>load</span> <span class='id name'>name</span><span class='comma'>,</span> <span class='id pkg_name'>pkg_name</span><span class='comma'>,</span> <span class='id pkg_version'>pkg_version</span>
|
941
|
-
<span class='id library'>library</span><span class='period'>.</span><span class='id create_installation_tasks'>create_installation_tasks</span>
|
942
|
-
<span class='kw'>end</span></pre>
|
943
|
-
</td>
|
944
|
-
</tr>
|
945
|
-
</table>
|
946
|
-
</div>
|
947
|
-
|
948
|
-
<div class="method_details ">
|
949
|
-
<p class="signature " id="project_path-class_method">
|
950
|
-
|
951
|
-
+ (<tt>Object</tt>) <strong>project_path</strong>
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
</p><div class="docstring">
|
956
|
-
<div class="discussion">
|
957
|
-
|
958
|
-
<p>The path within a project where libraries should be added.</p>
|
959
|
-
|
960
|
-
<p>Defaults to 'lib'</p>
|
961
|
-
|
962
|
-
<p>From anywhere in your Rakefile, you can output this value with:</p>
|
963
|
-
|
964
|
-
<pre class="code"><span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>>> Library Project Path: </span><span class='embexpr_beg'>#{</span><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='period'>.</span><span class='id project_path'>project_path</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span></pre>
|
965
|
-
|
966
|
-
|
967
|
-
</div>
|
968
|
-
</div>
|
969
|
-
<div class="tags">
|
970
|
-
|
971
|
-
</div><table class="source_code">
|
972
|
-
<tr>
|
973
|
-
<td>
|
974
|
-
<pre class="lines">
|
975
|
-
|
976
|
-
|
977
|
-
116
|
978
|
-
117
|
979
|
-
118</pre>
|
980
|
-
</td>
|
981
|
-
<td>
|
982
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 116</span>
|
983
|
-
|
984
|
-
<span class='kw'>def</span> <span class='id project_path'>project_path</span>
|
985
|
-
<span class='ivar'>@project_path</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>lib</span><span class='tstring_end'>'</span></span>
|
986
|
-
<span class='kw'>end</span></pre>
|
987
|
-
</td>
|
988
|
-
</tr>
|
989
|
-
</table>
|
990
|
-
</div>
|
991
|
-
|
992
|
-
<div class="method_details ">
|
993
|
-
<p class="signature " id="project_path=-class_method">
|
994
|
-
|
995
|
-
+ (<tt>Object</tt>) <strong>project_path=</strong>(path)
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
</p><div class="docstring">
|
1000
|
-
<div class="discussion">
|
1001
|
-
|
1002
|
-
<p>Set the path within a project where libraries should be loaded.</p>
|
1003
|
-
|
1004
|
-
<p>From top of your Rakefile, you can set this value with:</p>
|
1005
|
-
|
1006
|
-
<pre class="code"><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='period'>.</span><span class='id project_path'>project_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>libs</span><span class='tstring_end'>'</span></span></pre>
|
1007
|
-
|
1008
|
-
|
1009
|
-
</div>
|
1010
|
-
</div>
|
1011
|
-
<div class="tags">
|
1012
|
-
|
1013
|
-
</div><table class="source_code">
|
1014
|
-
<tr>
|
1015
|
-
<td>
|
1016
|
-
<pre class="lines">
|
1017
|
-
|
1018
|
-
|
1019
|
-
101
|
1020
|
-
102
|
1021
|
-
103</pre>
|
1022
|
-
</td>
|
1023
|
-
<td>
|
1024
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 101</span>
|
1025
|
-
|
1026
|
-
<span class='kw'>def</span> <span class='id project_path='>project_path=</span><span class='lparen'>(</span><span class='id path'>path</span><span class='rparen'>)</span>
|
1027
|
-
<span class='ivar'>@project_path</span> <span class='op'>=</span> <span class='id path'>path</span>
|
1028
|
-
<span class='kw'>end</span></pre>
|
1029
|
-
</td>
|
1030
|
-
</tr>
|
1031
|
-
</table>
|
1032
|
-
</div>
|
1033
|
-
|
1034
|
-
</div>
|
1035
|
-
|
1036
|
-
<div id="instance_method_details" class="method_details_list">
|
1037
|
-
<h2>Instance Method Details</h2>
|
1038
|
-
|
1039
|
-
|
1040
|
-
<div class="method_details first">
|
1041
|
-
<p class="signature first" id="create_installation_tasks-instance_method">
|
1042
|
-
|
1043
|
-
- (<tt>Object</tt>) <strong>create_installation_tasks</strong>
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
</p><div class="docstring">
|
1048
|
-
<div class="discussion">
|
1049
|
-
|
1050
|
-
<p>Returns the outer Rake::Task which is invokable.</p>
|
1051
|
-
|
1052
|
-
|
1053
|
-
</div>
|
1054
|
-
</div>
|
1055
|
-
<div class="tags">
|
1056
|
-
|
1057
|
-
</div><table class="source_code">
|
1058
|
-
<tr>
|
1059
|
-
<td>
|
1060
|
-
<pre class="lines">
|
1061
|
-
|
1062
|
-
|
1063
|
-
142
|
1064
|
-
143
|
1065
|
-
144
|
1066
|
-
145
|
1067
|
-
146</pre>
|
1068
|
-
</td>
|
1069
|
-
<td>
|
1070
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 142</span>
|
1071
|
-
|
1072
|
-
<span class='kw'>def</span> <span class='id create_installation_tasks'>create_installation_tasks</span>
|
1073
|
-
<span class='id define_lib_dir_task_if_necessary'>define_lib_dir_task_if_necessary</span> <span class='id project_path'>project_path</span>
|
1074
|
-
<span class='id create_project_tasks'>create_project_tasks</span>
|
1075
|
-
<span class='id create_outer_task'>create_outer_task</span>
|
1076
|
-
<span class='kw'>end</span></pre>
|
1077
|
-
</td>
|
1078
|
-
</tr>
|
1079
|
-
</table>
|
1080
|
-
</div>
|
1081
|
-
|
1082
|
-
<div class="method_details ">
|
1083
|
-
<p class="signature " id="create_outer_task-instance_method">
|
1084
|
-
|
1085
|
-
- (<tt>Object</tt>) <strong>create_outer_task</strong>
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
</p><table class="source_code">
|
1090
|
-
<tr>
|
1091
|
-
<td>
|
1092
|
-
<pre class="lines">
|
1093
|
-
|
1094
|
-
|
1095
|
-
148
|
1096
|
-
149
|
1097
|
-
150
|
1098
|
-
151
|
1099
|
-
152
|
1100
|
-
153
|
1101
|
-
154
|
1102
|
-
155
|
1103
|
-
156
|
1104
|
-
157
|
1105
|
-
158
|
1106
|
-
159
|
1107
|
-
160</pre>
|
1108
|
-
</td>
|
1109
|
-
<td>
|
1110
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/library.rb', line 148</span>
|
1111
|
-
|
1112
|
-
<span class='kw'>def</span> <span class='id create_outer_task'>create_outer_task</span>
|
1113
|
-
<span class='id t'>t</span> <span class='op'>=</span> <span class='id task'>task</span> <span class='id pkg_name'>pkg_name</span>
|
1114
|
-
<span class='comment'># This helps executable rake tasks decide if they
|
1115
|
-
</span> <span class='comment'># want to do something special for library tasks.
|
1116
|
-
</span> <span class='id t'>t</span><span class='period'>.</span><span class='id sprout_entity'>sprout_entity</span> <span class='op'>=</span> <span class='kw'>self</span>
|
1117
|
-
<span class='kw'>class</span> <span class='op'><<</span> <span class='id t'>t</span>
|
1118
|
-
<span class='kw'>def</span> <span class='id sprout_library?'>sprout_library?</span>
|
1119
|
-
<span class='op'>!</span><span class='id sprout_entity'>sprout_entity</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>&&</span>
|
1120
|
-
<span class='id sprout_entity'>sprout_entity</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='rparen'>)</span>
|
1121
|
-
<span class='kw'>end</span>
|
1122
|
-
<span class='kw'>end</span>
|
1123
|
-
<span class='id t'>t</span>
|
1124
|
-
<span class='kw'>end</span></pre>
|
1125
|
-
</td>
|
1126
|
-
</tr>
|
1127
|
-
</table>
|
1128
|
-
</div>
|
1129
|
-
|
1130
|
-
</div>
|
1131
|
-
|
1132
|
-
</div>
|
1133
|
-
|
1134
|
-
<div id="footer">
|
1135
|
-
Generated on Wed Dec 22 11:58:33 2010 by
|
1136
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1137
|
-
0.6.3 (ruby-1.9.2).
|
1138
|
-
</div>
|
1139
|
-
|
1140
|
-
</body>
|
1141
|
-
</html>
|