naether 0.12.2 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +35 -33
- data/README.md +1 -1
- data/VERSION +1 -1
- data/{core-0.12.2.jar → core-0.13.0.jar} +0 -0
- data/doc/Naether.html +6 -6
- data/doc/Naether/Bootstrap.html +1111 -0
- data/doc/Naether/Configurator.html +503 -0
- data/doc/Naether/Java.html +1207 -0
- data/doc/Naether/Java/JRuby.html +1208 -0
- data/doc/Naether/Java/Ruby.html +1330 -0
- data/doc/Naether/Maven.html +1391 -0
- data/doc/Naether/Notation.html +705 -0
- data/doc/Naether/Runtime.html +2967 -0
- data/doc/_index.html +4 -4
- data/doc/css/style.css +1 -1
- data/doc/file.README.html +10 -10
- data/doc/frames.html +1 -1
- data/doc/index.html +10 -10
- data/doc/js/app.js +7 -2
- data/doc/top-level-namespace.html +3 -3
- data/lib/naether/configuration.rb +10 -3
- data/lib/naether/maven.rb +8 -1
- data/naether.gemspec +19 -29
- data/pom.xml +5 -1
- metadata +28 -120
- data/doc/Naether/sJa.html +0 -607
- data/doc/Naether/sJa/sJRu.html +0 -597
- data/doc/Naether/sMav.html +0 -979
- data/doc/r_A_20_20_A_20_20.html +0 -121
- data/doc/r_A_20_20_A_20_20/strap.html +0 -229
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8e9694b68b192a176e99048c172d2f21743b72a7
|
4
|
+
data.tar.gz: 519c5b308d3e18fbe2991b41fd671ca25a689485
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 77da506cd242d0fa7fe7bde5149f5eb2166971fa529ef01500f7e3d777de252f4f04c8377c05a8dcc5536a88dc60d4b67d7f94deb7453c3bfc074f20d2aaf180
|
7
|
+
data.tar.gz: 66544edd4ad4b2f77bf95dbc41d96ebc280cbcdac9640c027a69a66b560afe1e5240733308a32362ef85e1472205a0c1ce6bc6266f253f82bc462eed8ec2684b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,64 +3,66 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
addressable (2.3.5)
|
5
5
|
builder (3.2.2)
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
descendants_tracker (0.0.3)
|
7
|
+
diff-lcs (1.2.5)
|
8
|
+
faraday (0.9.0)
|
9
|
+
multipart-post (>= 1.2, < 3)
|
9
10
|
git (1.2.6)
|
10
|
-
github_api (0.
|
11
|
-
addressable
|
12
|
-
|
11
|
+
github_api (0.11.1)
|
12
|
+
addressable (~> 2.3)
|
13
|
+
descendants_tracker (~> 0.0.1)
|
14
|
+
faraday (~> 0.8, < 0.10)
|
13
15
|
hashie (>= 1.2)
|
14
|
-
multi_json (
|
15
|
-
nokogiri (~> 1.
|
16
|
+
multi_json (>= 1.7.5, < 2.0)
|
17
|
+
nokogiri (~> 1.6.0)
|
16
18
|
oauth2
|
17
19
|
hashie (2.0.5)
|
18
|
-
highline (1.6.
|
19
|
-
|
20
|
-
jeweler (1.8.7)
|
20
|
+
highline (1.6.20)
|
21
|
+
jeweler (2.0.0)
|
21
22
|
builder
|
22
|
-
bundler (
|
23
|
+
bundler (>= 1.0)
|
23
24
|
git (>= 1.2.5)
|
24
|
-
github_api
|
25
|
+
github_api
|
25
26
|
highline (>= 1.6.15)
|
26
|
-
nokogiri (
|
27
|
+
nokogiri (>= 1.5.10)
|
27
28
|
rake
|
28
29
|
rdoc
|
29
|
-
json (1.8.
|
30
|
-
jwt (0.1.
|
30
|
+
json (1.8.1)
|
31
|
+
jwt (0.1.11)
|
31
32
|
multi_json (>= 1.5)
|
32
|
-
kramdown (1.
|
33
|
-
|
33
|
+
kramdown (1.3.1)
|
34
|
+
mini_portile (0.5.2)
|
35
|
+
multi_json (1.8.4)
|
34
36
|
multi_xml (0.5.5)
|
35
|
-
multipart-post (
|
36
|
-
nokogiri (1.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
jwt (~> 0.1.
|
41
|
-
multi_json (~> 1.
|
37
|
+
multipart-post (2.0.0)
|
38
|
+
nokogiri (1.6.1)
|
39
|
+
mini_portile (~> 0.5.0)
|
40
|
+
oauth2 (0.9.3)
|
41
|
+
faraday (>= 0.8, < 0.10)
|
42
|
+
jwt (~> 0.1.8)
|
43
|
+
multi_json (~> 1.3)
|
42
44
|
multi_xml (~> 0.5)
|
43
45
|
rack (~> 1.2)
|
44
46
|
rack (1.5.2)
|
45
|
-
rake (10.1.
|
46
|
-
rdoc (4.
|
47
|
+
rake (10.1.1)
|
48
|
+
rdoc (4.1.1)
|
47
49
|
json (~> 1.4)
|
48
|
-
rjb (1.4.
|
50
|
+
rjb (1.4.9)
|
49
51
|
rspec (2.14.1)
|
50
52
|
rspec-core (~> 2.14.0)
|
51
53
|
rspec-expectations (~> 2.14.0)
|
52
54
|
rspec-mocks (~> 2.14.0)
|
53
|
-
rspec-core (2.14.
|
54
|
-
rspec-expectations (2.14.
|
55
|
+
rspec-core (2.14.7)
|
56
|
+
rspec-expectations (2.14.4)
|
55
57
|
diff-lcs (>= 1.1.3, < 2.0)
|
56
|
-
rspec-mocks (2.14.
|
57
|
-
yard (0.8.7.
|
58
|
+
rspec-mocks (2.14.4)
|
59
|
+
yard (0.8.7.3)
|
58
60
|
|
59
61
|
PLATFORMS
|
60
62
|
ruby
|
61
63
|
|
62
64
|
DEPENDENCIES
|
63
|
-
jeweler (~>
|
65
|
+
jeweler (~> 2.0.0)
|
64
66
|
kramdown
|
65
67
|
rjb (~> 1.4.0)
|
66
68
|
rspec (> 2.9.0)
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ The jar dependencies for Naether will automatically be downloaded when the gem i
|
|
24
24
|
<dependency>
|
25
25
|
<groupId>com.tobedevoured.naether</groupId>
|
26
26
|
<artifactId>naether</artifactId>
|
27
|
-
<version>0.
|
27
|
+
<version>0.13.0</version>
|
28
28
|
</dependency>
|
29
29
|
|
30
30
|
May have to add the Sonatype Repo if the sync to Maven Central is slow.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.13.0
|
Binary file
|
data/doc/Naether.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Naether
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -303,7 +303,7 @@
|
|
303
303
|
<pre class="code"><span class="info file"># File 'lib/naether.rb', line 34</span>
|
304
304
|
|
305
305
|
<span class='kw'>def</span> <span class='id identifier rubyid_bootstrap_dependencies'>bootstrap_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span><span class='op'>=</span><span class='kw'>nil</span> <span class='rparen'>)</span>
|
306
|
-
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='
|
306
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>/naether/bootstrap</span><span class='tstring_end'>"</span></span>
|
307
307
|
<span class='const'>Naether</span><span class='op'>::</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span> <span class='rparen'>)</span>
|
308
308
|
<span class='kw'>end</span></pre>
|
309
309
|
</td>
|
@@ -335,7 +335,7 @@
|
|
335
335
|
<pre class="code"><span class="info file"># File 'lib/naether.rb', line 57</span>
|
336
336
|
|
337
337
|
<span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span>
|
338
|
-
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='
|
338
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>/naether/runtime</span><span class='tstring_end'>"</span></span>
|
339
339
|
<span class='const'>Naether</span><span class='op'>::</span><span class='const'>Runtime</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
340
340
|
<span class='kw'>end</span></pre>
|
341
341
|
</td>
|
@@ -412,7 +412,7 @@
|
|
412
412
|
<pre class="code"><span class="info file"># File 'lib/naether.rb', line 51</span>
|
413
413
|
|
414
414
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_from_jars'>create_from_jars</span><span class='lparen'>(</span> <span class='id identifier rubyid_jars'>jars</span> <span class='rparen'>)</span>
|
415
|
-
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='
|
415
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>/naether/java</span><span class='tstring_end'>"</span></span>
|
416
416
|
<span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_internal_load_paths'>internal_load_paths</span><span class='lparen'>(</span> <span class='id identifier rubyid_jars'>jars</span> <span class='rparen'>)</span>
|
417
417
|
<span class='id identifier rubyid_create'>create</span>
|
418
418
|
<span class='kw'>end</span></pre>
|
@@ -467,9 +467,9 @@
|
|
467
467
|
</div>
|
468
468
|
|
469
469
|
<div id="footer">
|
470
|
-
Generated on
|
470
|
+
Generated on Mon Jan 20 23:06:21 2014 by
|
471
471
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
472
|
-
0.8.7.
|
472
|
+
0.8.7.3 (ruby-2.1.0).
|
473
473
|
</div>
|
474
474
|
|
475
475
|
</body>
|
@@ -0,0 +1,1111 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Naether::Bootstrap
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (B)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Naether.html" title="Naether (module)">Naether</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Bootstrap</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Naether::Bootstrap
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Naether::Bootstrap</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/naether/bootstrap.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Helper for bootstrapping Naether</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
<p class="tag_title">Author:</p>
|
113
|
+
<ul class="author">
|
114
|
+
|
115
|
+
<li>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<div class='inline'>
|
122
|
+
<p>Michael Guymon</p>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
</li>
|
126
|
+
|
127
|
+
</ul>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
<h2>Constant Summary</h2>
|
131
|
+
|
132
|
+
<dl class="constants">
|
133
|
+
|
134
|
+
<dt id="dependencies-classvariable" class="">@@dependencies =
|
135
|
+
|
136
|
+
</dt>
|
137
|
+
<dd><pre class="code"><span class='kw'>nil</span></pre></dd>
|
138
|
+
|
139
|
+
</dl>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<h2>
|
150
|
+
Class Method Summary
|
151
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
152
|
+
</h2>
|
153
|
+
|
154
|
+
<ul class="summary">
|
155
|
+
|
156
|
+
<li class="public ">
|
157
|
+
<span class="summary_signature">
|
158
|
+
|
159
|
+
<a href="#bootstrap_local_repo-class_method" title="bootstrap_local_repo (class method)">+ (Object) <strong>bootstrap_local_repo</strong>(local_repo = nil, opts = {}) </a>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
</span>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
174
|
+
<p>Bootstrap the local repo by downloading Naether's dependencies.</p>
|
175
|
+
</div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#check_local_repo_for_deps-class_method" title="check_local_repo_for_deps (class method)">+ (Hash) <strong>check_local_repo_for_deps</strong>(local_repo = nil, opts = {}) </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<span class="summary_desc"><div class='inline'>
|
198
|
+
<p>Check local_repo for Naether dependencies.</p>
|
199
|
+
</div></span>
|
200
|
+
|
201
|
+
</li>
|
202
|
+
|
203
|
+
|
204
|
+
<li class="public ">
|
205
|
+
<span class="summary_signature">
|
206
|
+
|
207
|
+
<a href="#default_local_repo-class_method" title="default_local_repo (class method)">+ (String) <strong>default_local_repo</strong> </a>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
</span>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<span class="summary_desc"><div class='inline'>
|
222
|
+
<p>Default local repo of <a href="'M2_REPO'">ENV</a> or ~/.m2/repository.</p>
|
223
|
+
</div></span>
|
224
|
+
|
225
|
+
</li>
|
226
|
+
|
227
|
+
|
228
|
+
<li class="public ">
|
229
|
+
<span class="summary_signature">
|
230
|
+
|
231
|
+
<a href="#dependencies-class_method" title="dependencies (class method)">+ (List) <strong>dependencies</strong>(dep_file = nil) </a>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<span class="summary_desc"><div class='inline'>
|
246
|
+
<p>List of Java dependencies for Naether from yaml dependency file.</p>
|
247
|
+
</div></span>
|
248
|
+
|
249
|
+
</li>
|
250
|
+
|
251
|
+
|
252
|
+
<li class="public ">
|
253
|
+
<span class="summary_signature">
|
254
|
+
|
255
|
+
<a href="#download_dependencies-class_method" title="download_dependencies (class method)">+ (Hash) <strong>download_dependencies</strong>(dest, opts = {}) </a>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</span>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<span class="summary_desc"><div class='inline'>
|
270
|
+
<p>Download Naether dependencies.</p>
|
271
|
+
</div></span>
|
272
|
+
|
273
|
+
</li>
|
274
|
+
|
275
|
+
|
276
|
+
<li class="public ">
|
277
|
+
<span class="summary_signature">
|
278
|
+
|
279
|
+
<a href="#install_dependencies_to_local_repo-class_method" title="install_dependencies_to_local_repo (class method)">+ (Naether) <strong>install_dependencies_to_local_repo</strong>(install_jars, naether_jars, opts = {}) </a>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
</span>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
<span class="summary_desc"><div class='inline'>
|
294
|
+
<p>Install Naether Dependencies to local_repo.</p>
|
295
|
+
</div></span>
|
296
|
+
|
297
|
+
</li>
|
298
|
+
|
299
|
+
|
300
|
+
<li class="public ">
|
301
|
+
<span class="summary_signature">
|
302
|
+
|
303
|
+
<a href="#write_dependencies-class_method" title="write_dependencies (class method)">+ (Object) <strong>write_dependencies</strong>(dest = 'jar_dependencies.yml') </a>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</span>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<span class="summary_desc"><div class='inline'>
|
318
|
+
<p>Write bootstrap dependencies to yaml file.</p>
|
319
|
+
</div></span>
|
320
|
+
|
321
|
+
</li>
|
322
|
+
|
323
|
+
|
324
|
+
</ul>
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
<div id="class_method_details" class="method_details_list">
|
330
|
+
<h2>Class Method Details</h2>
|
331
|
+
|
332
|
+
|
333
|
+
<div class="method_details first">
|
334
|
+
<h3 class="signature first" id="bootstrap_local_repo-class_method">
|
335
|
+
|
336
|
+
+ (<tt>Object</tt>) <strong>bootstrap_local_repo</strong>(local_repo = nil, opts = {})
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
</h3><div class="docstring">
|
343
|
+
<div class="discussion">
|
344
|
+
|
345
|
+
<p>Bootstrap the local repo by downloading Naether's dependencies</p>
|
346
|
+
|
347
|
+
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
<div class="tags">
|
351
|
+
<p class="tag_title">Parameters:</p>
|
352
|
+
<ul class="param">
|
353
|
+
|
354
|
+
<li>
|
355
|
+
|
356
|
+
<span class='name'>local_repo</span>
|
357
|
+
|
358
|
+
|
359
|
+
<span class='type'>(<tt>String</tt>)</span>
|
360
|
+
|
361
|
+
|
362
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
363
|
+
|
364
|
+
|
365
|
+
—
|
366
|
+
<div class='inline'>
|
367
|
+
<p>defaults to #default_local_repo</p>
|
368
|
+
</div>
|
369
|
+
|
370
|
+
</li>
|
371
|
+
|
372
|
+
<li>
|
373
|
+
|
374
|
+
<span class='name'>opts</span>
|
375
|
+
|
376
|
+
|
377
|
+
<span class='type'>(<tt>hash</tt>)</span>
|
378
|
+
|
379
|
+
|
380
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
381
|
+
|
382
|
+
|
383
|
+
</li>
|
384
|
+
|
385
|
+
</ul>
|
386
|
+
|
387
|
+
|
388
|
+
</div><table class="source_code">
|
389
|
+
<tr>
|
390
|
+
<td>
|
391
|
+
<pre class="lines">
|
392
|
+
|
393
|
+
|
394
|
+
68
|
395
|
+
69
|
396
|
+
70
|
397
|
+
71
|
398
|
+
72
|
399
|
+
73
|
400
|
+
74
|
401
|
+
75
|
402
|
+
76
|
403
|
+
77
|
404
|
+
78
|
405
|
+
79
|
406
|
+
80
|
407
|
+
81
|
408
|
+
82
|
409
|
+
83
|
410
|
+
84
|
411
|
+
85
|
412
|
+
86
|
413
|
+
87
|
414
|
+
88</pre>
|
415
|
+
</td>
|
416
|
+
<td>
|
417
|
+
<pre class="code"><span class="info file"># File 'lib/naether/bootstrap.rb', line 68</span>
|
418
|
+
|
419
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_bootstrap_local_repo'>bootstrap_local_repo</span><span class='lparen'>(</span><span class='id identifier rubyid_local_repo'>local_repo</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='rparen'>)</span>
|
420
|
+
<span class='id identifier rubyid_local_repo'>local_repo</span> <span class='op'>=</span> <span class='id identifier rubyid_local_repo'>local_repo</span> <span class='op'>||</span> <span class='id identifier rubyid_default_local_repo'>default_local_repo</span>
|
421
|
+
|
422
|
+
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:local_repo</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_local_repo'>local_repo</span>
|
423
|
+
|
424
|
+
<span class='id identifier rubyid_temp_naether_dir'>temp_naether_dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span> <span class='id identifier rubyid_local_repo'>local_repo</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.naether</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
425
|
+
|
426
|
+
|
427
|
+
<span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='id identifier rubyid_download_dependencies'>download_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_temp_naether_dir'>temp_naether_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='rparen'>)</span>
|
428
|
+
|
429
|
+
<span class='id identifier rubyid_jars'>jars</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:exists</span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:downloaded</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_jar'>jar</span><span class='op'>|</span> <span class='id identifier rubyid_jar'>jar</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span> <span class='rbrace'>}</span>
|
430
|
+
|
431
|
+
<span class='id identifier rubyid_jars'>jars</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_internal_load_paths'>internal_load_paths</span><span class='lparen'>(</span> <span class='id identifier rubyid_jars'>jars</span> <span class='rparen'>)</span>
|
432
|
+
|
433
|
+
<span class='kw'>if</span> <span class='lparen'>(</span> <span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:downloaded</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>></span> <span class='int'>0</span><span class='rparen'>)</span>
|
434
|
+
<span class='id identifier rubyid_install_dependencies_to_local_repo'>install_dependencies_to_local_repo</span><span class='lparen'>(</span> <span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:downloaded</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_jars'>jars</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='rparen'>)</span>
|
435
|
+
<span class='kw'>end</span>
|
436
|
+
|
437
|
+
<span class='comment'>#raise Naether::Java.internal_loaded_paths.inspect
|
438
|
+
</span>
|
439
|
+
<span class='kw'>end</span></pre>
|
440
|
+
</td>
|
441
|
+
</tr>
|
442
|
+
</table>
|
443
|
+
</div>
|
444
|
+
|
445
|
+
<div class="method_details ">
|
446
|
+
<h3 class="signature " id="check_local_repo_for_deps-class_method">
|
447
|
+
|
448
|
+
+ (<tt>Hash</tt>) <strong>check_local_repo_for_deps</strong>(local_repo = nil, opts = {})
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
</h3><div class="docstring">
|
455
|
+
<div class="discussion">
|
456
|
+
|
457
|
+
<p>Check local_repo for Naether dependencies</p>
|
458
|
+
|
459
|
+
|
460
|
+
</div>
|
461
|
+
</div>
|
462
|
+
<div class="tags">
|
463
|
+
<p class="tag_title">Parameters:</p>
|
464
|
+
<ul class="param">
|
465
|
+
|
466
|
+
<li>
|
467
|
+
|
468
|
+
<span class='name'>local_repo</span>
|
469
|
+
|
470
|
+
|
471
|
+
<span class='type'>(<tt>String</tt>)</span>
|
472
|
+
|
473
|
+
|
474
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
475
|
+
|
476
|
+
|
477
|
+
</li>
|
478
|
+
|
479
|
+
<li>
|
480
|
+
|
481
|
+
<span class='name'>opts</span>
|
482
|
+
|
483
|
+
|
484
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
485
|
+
|
486
|
+
|
487
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
488
|
+
|
489
|
+
|
490
|
+
</li>
|
491
|
+
|
492
|
+
</ul>
|
493
|
+
|
494
|
+
<p class="tag_title">Returns:</p>
|
495
|
+
<ul class="return">
|
496
|
+
|
497
|
+
<li>
|
498
|
+
|
499
|
+
|
500
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
—
|
505
|
+
<div class='inline'>
|
506
|
+
<p>with status of missing, downloaded, exists dependencies</p>
|
507
|
+
</div>
|
508
|
+
|
509
|
+
</li>
|
510
|
+
|
511
|
+
</ul>
|
512
|
+
|
513
|
+
</div><table class="source_code">
|
514
|
+
<tr>
|
515
|
+
<td>
|
516
|
+
<pre class="lines">
|
517
|
+
|
518
|
+
|
519
|
+
148
|
520
|
+
149
|
521
|
+
150
|
522
|
+
151
|
523
|
+
152
|
524
|
+
153
|
525
|
+
154
|
526
|
+
155
|
527
|
+
156
|
528
|
+
157
|
529
|
+
158
|
530
|
+
159
|
531
|
+
160
|
532
|
+
161
|
533
|
+
162
|
534
|
+
163
|
535
|
+
164
|
536
|
+
165
|
537
|
+
166
|
538
|
+
167
|
539
|
+
168
|
540
|
+
169
|
541
|
+
170
|
542
|
+
171
|
543
|
+
172
|
544
|
+
173
|
545
|
+
174
|
546
|
+
175
|
547
|
+
176</pre>
|
548
|
+
</td>
|
549
|
+
<td>
|
550
|
+
<pre class="code"><span class="info file"># File 'lib/naether/bootstrap.rb', line 148</span>
|
551
|
+
|
552
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_check_local_repo_for_deps'>check_local_repo_for_deps</span><span class='lparen'>(</span><span class='id identifier rubyid_local_repo'>local_repo</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='rparen'>)</span>
|
553
|
+
|
554
|
+
<span class='id identifier rubyid_local_repo'>local_repo</span> <span class='op'>=</span> <span class='id identifier rubyid_local_repo'>local_repo</span> <span class='op'>||</span> <span class='id identifier rubyid_default_local_repo'>default_local_repo</span>
|
555
|
+
<span class='id identifier rubyid_local_repo'>local_repo</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_local_repo'>local_repo</span><span class='rparen'>)</span>
|
556
|
+
|
557
|
+
<span class='comment'>#puts "Checking #{local_repo} for jars to bootstrap Naether"
|
558
|
+
</span>
|
559
|
+
<span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:exists</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:missing</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:downloaded</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='rbrace'>}</span>
|
560
|
+
|
561
|
+
<span class='id identifier rubyid_dependencies'>dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:dep_yaml</span><span class='rbracket'>]</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dep'>dep</span><span class='op'>|</span>
|
562
|
+
<span class='id identifier rubyid_notation'>notation</span> <span class='op'>=</span> <span class='id identifier rubyid_dep'>dep</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>:</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
563
|
+
<span class='id identifier rubyid_group'>group</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\.</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='rparen'>)</span>
|
564
|
+
<span class='id identifier rubyid_artifact'>artifact</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\.</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='rparen'>)</span>
|
565
|
+
<span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>2</span><span class='rbracket'>]</span>
|
566
|
+
<span class='id identifier rubyid_version'>version</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>3</span><span class='rbracket'>]</span>
|
567
|
+
|
568
|
+
<span class='id identifier rubyid_jar'>jar</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_artifact'>artifact</span><span class='embexpr_end'>}</span><span class='tstring_content'>-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_type'>type</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
569
|
+
|
570
|
+
<span class='id identifier rubyid_maven_path'>maven_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_local_repo'>local_repo</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_group'>group</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_artifact'>artifact</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_jar'>jar</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
571
|
+
|
572
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span> <span class='id identifier rubyid_maven_path'>maven_path</span>
|
573
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:exists</span><span class='rbracket'>]</span> <span class='op'><<</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_dep'>dep</span> <span class='op'>=></span> <span class='id identifier rubyid_maven_path'>maven_path</span> <span class='rbrace'>}</span>
|
574
|
+
<span class='kw'>else</span>
|
575
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:missing</span><span class='rbracket'>]</span> <span class='op'><<</span> <span class='id identifier rubyid_dep'>dep</span>
|
576
|
+
<span class='kw'>end</span>
|
577
|
+
|
578
|
+
<span class='kw'>end</span>
|
579
|
+
<span class='id identifier rubyid_deps'>deps</span>
|
580
|
+
<span class='kw'>end</span></pre>
|
581
|
+
</td>
|
582
|
+
</tr>
|
583
|
+
</table>
|
584
|
+
</div>
|
585
|
+
|
586
|
+
<div class="method_details ">
|
587
|
+
<h3 class="signature " id="default_local_repo-class_method">
|
588
|
+
|
589
|
+
+ (<tt>String</tt>) <strong>default_local_repo</strong>
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
</h3><div class="docstring">
|
596
|
+
<div class="discussion">
|
597
|
+
|
598
|
+
<p>Default local repo of <a href="'M2_REPO'">ENV</a> or ~/.m2/repository</p>
|
599
|
+
|
600
|
+
|
601
|
+
</div>
|
602
|
+
</div>
|
603
|
+
<div class="tags">
|
604
|
+
|
605
|
+
<p class="tag_title">Returns:</p>
|
606
|
+
<ul class="return">
|
607
|
+
|
608
|
+
<li>
|
609
|
+
|
610
|
+
|
611
|
+
<span class='type'>(<tt>String</tt>)</span>
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
</li>
|
616
|
+
|
617
|
+
</ul>
|
618
|
+
|
619
|
+
</div><table class="source_code">
|
620
|
+
<tr>
|
621
|
+
<td>
|
622
|
+
<pre class="lines">
|
623
|
+
|
624
|
+
|
625
|
+
24
|
626
|
+
25
|
627
|
+
26</pre>
|
628
|
+
</td>
|
629
|
+
<td>
|
630
|
+
<pre class="code"><span class="info file"># File 'lib/naether/bootstrap.rb', line 24</span>
|
631
|
+
|
632
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_default_local_repo'>default_local_repo</span>
|
633
|
+
<span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>M2_REPO</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>~/.m2/repository</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
634
|
+
<span class='kw'>end</span></pre>
|
635
|
+
</td>
|
636
|
+
</tr>
|
637
|
+
</table>
|
638
|
+
</div>
|
639
|
+
|
640
|
+
<div class="method_details ">
|
641
|
+
<h3 class="signature " id="dependencies-class_method">
|
642
|
+
|
643
|
+
+ (<tt>List</tt>) <strong>dependencies</strong>(dep_file = nil)
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
</h3><div class="docstring">
|
650
|
+
<div class="discussion">
|
651
|
+
|
652
|
+
<p>List of Java dependencies for Naether from yaml dependency file. Caches
|
653
|
+
result after first run.</p>
|
654
|
+
|
655
|
+
|
656
|
+
</div>
|
657
|
+
</div>
|
658
|
+
<div class="tags">
|
659
|
+
<p class="tag_title">Parameters:</p>
|
660
|
+
<ul class="param">
|
661
|
+
|
662
|
+
<li>
|
663
|
+
|
664
|
+
<span class='name'>dep_file</span>
|
665
|
+
|
666
|
+
|
667
|
+
<span class='type'>(<tt>String</tt>)</span>
|
668
|
+
|
669
|
+
|
670
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
671
|
+
|
672
|
+
|
673
|
+
—
|
674
|
+
<div class='inline'>
|
675
|
+
<p>path, defaults to Naether::Configuration.dependencies_yml</p>
|
676
|
+
</div>
|
677
|
+
|
678
|
+
</li>
|
679
|
+
|
680
|
+
</ul>
|
681
|
+
|
682
|
+
<p class="tag_title">Returns:</p>
|
683
|
+
<ul class="return">
|
684
|
+
|
685
|
+
<li>
|
686
|
+
|
687
|
+
|
688
|
+
<span class='type'>(<tt>List</tt>)</span>
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
</li>
|
693
|
+
|
694
|
+
</ul>
|
695
|
+
|
696
|
+
</div><table class="source_code">
|
697
|
+
<tr>
|
698
|
+
<td>
|
699
|
+
<pre class="lines">
|
700
|
+
|
701
|
+
|
702
|
+
48
|
703
|
+
49
|
704
|
+
50
|
705
|
+
51
|
706
|
+
52
|
707
|
+
53
|
708
|
+
54
|
709
|
+
55
|
710
|
+
56
|
711
|
+
57
|
712
|
+
58
|
713
|
+
59
|
714
|
+
60</pre>
|
715
|
+
</td>
|
716
|
+
<td>
|
717
|
+
<pre class="code"><span class="info file"># File 'lib/naether/bootstrap.rb', line 48</span>
|
718
|
+
|
719
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_dependencies'>dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span><span class='op'>=</span><span class='kw'>nil</span> <span class='rparen'>)</span>
|
720
|
+
|
721
|
+
<span class='kw'>if</span> <span class='cvar'>@@dependencies</span>
|
722
|
+
<span class='kw'>return</span> <span class='cvar'>@@dependencies</span>
|
723
|
+
<span class='kw'>end</span>
|
724
|
+
|
725
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_dep_file'>dep_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
726
|
+
<span class='id identifier rubyid_dep_file'>dep_file</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_dependencies_yml'>dependencies_yml</span>
|
727
|
+
<span class='kw'>end</span>
|
728
|
+
|
729
|
+
<span class='id identifier rubyid_dep'>dep</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span> <span class='rparen'>)</span>
|
730
|
+
<span class='cvar'>@@dependencies</span> <span class='op'>=</span> <span class='id identifier rubyid_dep'>dep</span><span class='lbracket'>[</span><span class='symbol'>:dependencies</span><span class='rbracket'>]</span>
|
731
|
+
<span class='kw'>end</span></pre>
|
732
|
+
</td>
|
733
|
+
</tr>
|
734
|
+
</table>
|
735
|
+
</div>
|
736
|
+
|
737
|
+
<div class="method_details ">
|
738
|
+
<h3 class="signature " id="download_dependencies-class_method">
|
739
|
+
|
740
|
+
+ (<tt>Hash</tt>) <strong>download_dependencies</strong>(dest, opts = {})
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
</h3><div class="docstring">
|
747
|
+
<div class="discussion">
|
748
|
+
|
749
|
+
<p>Download Naether dependencies</p>
|
750
|
+
|
751
|
+
|
752
|
+
</div>
|
753
|
+
</div>
|
754
|
+
<div class="tags">
|
755
|
+
<p class="tag_title">Parameters:</p>
|
756
|
+
<ul class="param">
|
757
|
+
|
758
|
+
<li>
|
759
|
+
|
760
|
+
<span class='name'>dest</span>
|
761
|
+
|
762
|
+
|
763
|
+
<span class='type'>(<tt>String</tt>)</span>
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
—
|
768
|
+
<div class='inline'>
|
769
|
+
<p>to download dependencies t</p>
|
770
|
+
</div>
|
771
|
+
|
772
|
+
</li>
|
773
|
+
|
774
|
+
<li>
|
775
|
+
|
776
|
+
<span class='name'>opts</span>
|
777
|
+
|
778
|
+
|
779
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
780
|
+
|
781
|
+
|
782
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
783
|
+
|
784
|
+
|
785
|
+
</li>
|
786
|
+
|
787
|
+
</ul>
|
788
|
+
|
789
|
+
<p class="tag_title">Returns:</p>
|
790
|
+
<ul class="return">
|
791
|
+
|
792
|
+
<li>
|
793
|
+
|
794
|
+
|
795
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
796
|
+
|
797
|
+
|
798
|
+
|
799
|
+
—
|
800
|
+
<div class='inline'>
|
801
|
+
<p>with status of missing, downloaded, exists dependencies</p>
|
802
|
+
</div>
|
803
|
+
|
804
|
+
</li>
|
805
|
+
|
806
|
+
</ul>
|
807
|
+
|
808
|
+
</div><table class="source_code">
|
809
|
+
<tr>
|
810
|
+
<td>
|
811
|
+
<pre class="lines">
|
812
|
+
|
813
|
+
|
814
|
+
96
|
815
|
+
97
|
816
|
+
98
|
817
|
+
99
|
818
|
+
100
|
819
|
+
101
|
820
|
+
102
|
821
|
+
103
|
822
|
+
104
|
823
|
+
105
|
824
|
+
106
|
825
|
+
107
|
826
|
+
108
|
827
|
+
109
|
828
|
+
110
|
829
|
+
111
|
830
|
+
112
|
831
|
+
113
|
832
|
+
114
|
833
|
+
115
|
834
|
+
116
|
835
|
+
117
|
836
|
+
118
|
837
|
+
119
|
838
|
+
120
|
839
|
+
121
|
840
|
+
122
|
841
|
+
123
|
842
|
+
124
|
843
|
+
125
|
844
|
+
126
|
845
|
+
127
|
846
|
+
128
|
847
|
+
129
|
848
|
+
130
|
849
|
+
131
|
850
|
+
132
|
851
|
+
133
|
852
|
+
134
|
853
|
+
135
|
854
|
+
136
|
855
|
+
137
|
856
|
+
138
|
857
|
+
139
|
858
|
+
140</pre>
|
859
|
+
</td>
|
860
|
+
<td>
|
861
|
+
<pre class="code"><span class="info file"># File 'lib/naether/bootstrap.rb', line 96</span>
|
862
|
+
|
863
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_download_dependencies'>download_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dest'>dest</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='rparen'>)</span>
|
864
|
+
|
865
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span> <span class='id identifier rubyid_dest'>dest</span>
|
866
|
+
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span><span class='lparen'>(</span> <span class='id identifier rubyid_dest'>dest</span> <span class='rparen'>)</span>
|
867
|
+
<span class='kw'>end</span>
|
868
|
+
|
869
|
+
<span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
870
|
+
|
871
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:deps</span><span class='rbracket'>]</span>
|
872
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:missing</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:deps</span><span class='rbracket'>]</span>
|
873
|
+
<span class='kw'>else</span>
|
874
|
+
<span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='id identifier rubyid_check_local_repo_for_deps'>check_local_repo_for_deps</span><span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:local_repo</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='rparen'>)</span>
|
875
|
+
<span class='kw'>end</span>
|
876
|
+
|
877
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:downloaded</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
878
|
+
|
879
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:missing</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>></span> <span class='int'>0</span>
|
880
|
+
|
881
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:missing</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dep'>dep</span><span class='op'>|</span>
|
882
|
+
<span class='id identifier rubyid_notation'>notation</span> <span class='op'>=</span> <span class='id identifier rubyid_dep'>dep</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>:</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
883
|
+
<span class='id identifier rubyid_group'>group</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\.</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='rparen'>)</span>
|
884
|
+
<span class='id identifier rubyid_artifact'>artifact</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
|
885
|
+
<span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>2</span><span class='rbracket'>]</span>
|
886
|
+
<span class='id identifier rubyid_version'>version</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span><span class='lbracket'>[</span><span class='int'>3</span><span class='rbracket'>]</span>
|
887
|
+
|
888
|
+
<span class='id identifier rubyid_jar'>jar</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_artifact'>artifact</span><span class='embexpr_end'>}</span><span class='tstring_content'>-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_type'>type</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
889
|
+
|
890
|
+
<span class='id identifier rubyid_maven_path'>maven_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dest'>dest</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='op'>::</span><span class='const'>SEPARATOR</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_jar'>jar</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
891
|
+
|
892
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span> <span class='id identifier rubyid_maven_path'>maven_path</span>
|
893
|
+
<span class='id identifier rubyid_maven_mirror'>maven_mirror</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>http://repo1.maven.org/maven2/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_group'>group</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_artifact'>artifact</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_jar'>jar</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
894
|
+
|
895
|
+
<span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_maven_path'>maven_path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>wb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_io'>io</span><span class='op'>|</span>
|
896
|
+
<span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_maven_mirror'>maven_mirror</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span>
|
897
|
+
<span class='kw'>end</span>
|
898
|
+
|
899
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:downloaded</span><span class='rbracket'>]</span> <span class='op'><<</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_dep'>dep</span> <span class='op'>=></span> <span class='id identifier rubyid_maven_path'>maven_path</span> <span class='rbrace'>}</span>
|
900
|
+
<span class='kw'>else</span>
|
901
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:downloaded</span><span class='rbracket'>]</span> <span class='op'><<</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_dep'>dep</span> <span class='op'>=></span> <span class='id identifier rubyid_maven_path'>maven_path</span> <span class='rbrace'>}</span>
|
902
|
+
<span class='kw'>end</span>
|
903
|
+
<span class='kw'>end</span>
|
904
|
+
<span class='kw'>end</span>
|
905
|
+
|
906
|
+
<span class='id identifier rubyid_deps'>deps</span>
|
907
|
+
<span class='kw'>end</span></pre>
|
908
|
+
</td>
|
909
|
+
</tr>
|
910
|
+
</table>
|
911
|
+
</div>
|
912
|
+
|
913
|
+
<div class="method_details ">
|
914
|
+
<h3 class="signature " id="install_dependencies_to_local_repo-class_method">
|
915
|
+
|
916
|
+
+ (<tt><span class='object_link'><a href="../Naether.html" title="Naether (module)">Naether</a></span></tt>) <strong>install_dependencies_to_local_repo</strong>(install_jars, naether_jars, opts = {})
|
917
|
+
|
918
|
+
|
919
|
+
|
920
|
+
|
921
|
+
|
922
|
+
</h3><div class="docstring">
|
923
|
+
<div class="discussion">
|
924
|
+
|
925
|
+
<p>Install Naether Dependencies to local_repo</p>
|
926
|
+
|
927
|
+
|
928
|
+
</div>
|
929
|
+
</div>
|
930
|
+
<div class="tags">
|
931
|
+
<p class="tag_title">Parameters:</p>
|
932
|
+
<ul class="param">
|
933
|
+
|
934
|
+
<li>
|
935
|
+
|
936
|
+
<span class='name'>install_jars</span>
|
937
|
+
|
938
|
+
|
939
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
940
|
+
|
941
|
+
|
942
|
+
|
943
|
+
</li>
|
944
|
+
|
945
|
+
<li>
|
946
|
+
|
947
|
+
<span class='name'>naether_jars</span>
|
948
|
+
|
949
|
+
|
950
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
951
|
+
|
952
|
+
|
953
|
+
|
954
|
+
—
|
955
|
+
<div class='inline'>
|
956
|
+
<p>to bootstrap Naether. These may overlap with install_jars.</p>
|
957
|
+
</div>
|
958
|
+
|
959
|
+
</li>
|
960
|
+
|
961
|
+
<li>
|
962
|
+
|
963
|
+
<span class='name'>opts</span>
|
964
|
+
|
965
|
+
|
966
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
967
|
+
|
968
|
+
|
969
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
970
|
+
|
971
|
+
|
972
|
+
</li>
|
973
|
+
|
974
|
+
</ul>
|
975
|
+
|
976
|
+
<p class="tag_title">Returns:</p>
|
977
|
+
<ul class="return">
|
978
|
+
|
979
|
+
<li>
|
980
|
+
|
981
|
+
|
982
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Naether.html" title="Naether (module)">Naether</a></span></tt>)</span>
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
</li>
|
987
|
+
|
988
|
+
</ul>
|
989
|
+
|
990
|
+
</div><table class="source_code">
|
991
|
+
<tr>
|
992
|
+
<td>
|
993
|
+
<pre class="lines">
|
994
|
+
|
995
|
+
|
996
|
+
186
|
997
|
+
187
|
998
|
+
188
|
999
|
+
189
|
1000
|
+
190
|
1001
|
+
191
|
1002
|
+
192
|
1003
|
+
193
|
1004
|
+
194
|
1005
|
+
195
|
1006
|
+
196
|
1007
|
+
197
|
1008
|
+
198
|
1009
|
+
199
|
1010
|
+
200
|
1011
|
+
201
|
1012
|
+
202</pre>
|
1013
|
+
</td>
|
1014
|
+
<td>
|
1015
|
+
<pre class="code"><span class="info file"># File 'lib/naether/bootstrap.rb', line 186</span>
|
1016
|
+
|
1017
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_install_dependencies_to_local_repo'>install_dependencies_to_local_repo</span><span class='lparen'>(</span> <span class='id identifier rubyid_install_jars'>install_jars</span><span class='comma'>,</span> <span class='id identifier rubyid_naether_jars'>naether_jars</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='rparen'>)</span>
|
1018
|
+
|
1019
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>/../naether</span><span class='tstring_end'>"</span></span>
|
1020
|
+
|
1021
|
+
<span class='ivar'>@naether</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_create_from_jars'>create_from_jars</span><span class='lparen'>(</span> <span class='id identifier rubyid_naether_jars'>naether_jars</span> <span class='rparen'>)</span>
|
1022
|
+
|
1023
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:local_repo</span><span class='rbracket'>]</span>
|
1024
|
+
<span class='ivar'>@naether</span><span class='period'>.</span><span class='id identifier rubyid_local_repo_path'>local_repo_path</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:local_repo</span><span class='rbracket'>]</span>
|
1025
|
+
<span class='kw'>end</span>
|
1026
|
+
|
1027
|
+
<span class='id identifier rubyid_install_jars'>install_jars</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dep'>dep</span><span class='op'>|</span>
|
1028
|
+
<span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_dep'>dep</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
1029
|
+
<span class='ivar'>@naether</span><span class='period'>.</span><span class='id identifier rubyid_install'>install</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
|
1030
|
+
<span class='kw'>end</span>
|
1031
|
+
|
1032
|
+
<span class='ivar'>@naether</span>
|
1033
|
+
<span class='kw'>end</span></pre>
|
1034
|
+
</td>
|
1035
|
+
</tr>
|
1036
|
+
</table>
|
1037
|
+
</div>
|
1038
|
+
|
1039
|
+
<div class="method_details ">
|
1040
|
+
<h3 class="signature " id="write_dependencies-class_method">
|
1041
|
+
|
1042
|
+
+ (<tt>Object</tt>) <strong>write_dependencies</strong>(dest = 'jar_dependencies.yml')
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
|
1047
|
+
|
1048
|
+
</h3><div class="docstring">
|
1049
|
+
<div class="discussion">
|
1050
|
+
|
1051
|
+
<p>Write bootstrap dependencies to yaml file</p>
|
1052
|
+
|
1053
|
+
|
1054
|
+
</div>
|
1055
|
+
</div>
|
1056
|
+
<div class="tags">
|
1057
|
+
|
1058
|
+
|
1059
|
+
</div><table class="source_code">
|
1060
|
+
<tr>
|
1061
|
+
<td>
|
1062
|
+
<pre class="lines">
|
1063
|
+
|
1064
|
+
|
1065
|
+
29
|
1066
|
+
30
|
1067
|
+
31
|
1068
|
+
32
|
1069
|
+
33
|
1070
|
+
34
|
1071
|
+
35
|
1072
|
+
36
|
1073
|
+
37
|
1074
|
+
38
|
1075
|
+
39
|
1076
|
+
40
|
1077
|
+
41</pre>
|
1078
|
+
</td>
|
1079
|
+
<td>
|
1080
|
+
<pre class="code"><span class="info file"># File 'lib/naether/bootstrap.rb', line 29</span>
|
1081
|
+
|
1082
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_write_dependencies'>write_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dest'>dest</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>jar_dependencies.yml</span><span class='tstring_end'>'</span></span> <span class='rparen'>)</span>
|
1083
|
+
<span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='semicolon'>;</span>
|
1084
|
+
<span class='kw'>if</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
|
1085
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:dependencies</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_com'>com</span><span class='period'>.</span><span class='id identifier rubyid_tobedevoured'>tobedevoured</span><span class='period'>.</span><span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span>
|
1086
|
+
<span class='kw'>else</span>
|
1087
|
+
<span class='id identifier rubyid_bootstrap'>bootstrap</span> <span class='op'>=</span> <span class='const'>Rjb</span><span class='op'>::</span><span class='id identifier rubyid_import'>import</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>com.tobedevoured.naether.Bootstrap</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1088
|
+
<span class='id identifier rubyid_deps'>deps</span><span class='lbracket'>[</span><span class='symbol'>:dependencies</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_bootstrap'>bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='period'>.</span><span class='id identifier rubyid_toArray'>toArray</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_dep'>dep</span><span class='op'>|</span> <span class='id identifier rubyid_dep'>dep</span><span class='period'>.</span><span class='id identifier rubyid_toString'>toString</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1089
|
+
<span class='kw'>end</span>
|
1090
|
+
|
1091
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span> <span class='id identifier rubyid_dest'>dest</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>w</span><span class='tstring_end'>'</span></span> <span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_out'>out</span><span class='op'>|</span>
|
1092
|
+
<span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span> <span class='id identifier rubyid_deps'>deps</span><span class='comma'>,</span> <span class='id identifier rubyid_out'>out</span> <span class='rparen'>)</span>
|
1093
|
+
<span class='kw'>end</span>
|
1094
|
+
<span class='kw'>end</span></pre>
|
1095
|
+
</td>
|
1096
|
+
</tr>
|
1097
|
+
</table>
|
1098
|
+
</div>
|
1099
|
+
|
1100
|
+
</div>
|
1101
|
+
|
1102
|
+
</div>
|
1103
|
+
|
1104
|
+
<div id="footer">
|
1105
|
+
Generated on Mon Jan 20 23:06:22 2014 by
|
1106
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1107
|
+
0.8.7.3 (ruby-2.1.0).
|
1108
|
+
</div>
|
1109
|
+
|
1110
|
+
</body>
|
1111
|
+
</html>
|