litterbox 0.1.0 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -3
- data/.rubocop.yml +8 -1
- data/.travis.yml +7 -1
- data/Gemfile.lock +3 -1
- data/README.md +7 -1
- data/Rakefile +6 -0
- data/bin/litterbox +1 -1
- data/docs/Litterbox/CLI.html +354 -0
- data/docs/Litterbox/Command.html +520 -0
- data/docs/Litterbox/Habitat/Build.html +280 -0
- data/docs/Litterbox/Habitat/Export.html +286 -0
- data/docs/Litterbox/Habitat/Package.html +570 -0
- data/docs/Litterbox/Habitat/Promote.html +288 -0
- data/docs/Litterbox/Habitat/Upload.html +292 -0
- data/docs/Litterbox/Habitat.html +128 -0
- data/docs/Litterbox/LastBuild.html +781 -0
- data/docs/Litterbox.html +225 -0
- data/docs/_index.html +218 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +499 -0
- data/docs/file.README.html +159 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +159 -0
- data/docs/js/app.js +248 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +315 -0
- data/docs/top-level-namespace.html +110 -0
- data/exe/litterbox +5 -0
- data/lib/litterbox/command.rb +38 -0
- data/lib/litterbox/habitat/package.rb +47 -0
- data/lib/litterbox/habitat/upload.rb +4 -1
- data/lib/litterbox/habitat.rb +1 -0
- data/lib/litterbox/version.rb +1 -1
- data/lib/litterbox.rb +8 -8
- data/litterbox.gemspec +1 -0
- metadata +43 -2
@@ -0,0 +1,570 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: Litterbox::Habitat::Package
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.12
|
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
|
+
pathId = "Litterbox::Habitat::Package";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (P)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Litterbox.html" title="Litterbox (module)">Litterbox</a></span></span> » <span class='title'><span class='object_link'><a href="../Habitat.html" title="Litterbox::Habitat (module)">Habitat</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Package</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: Litterbox::Habitat::Package
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">Litterbox::Habitat::Package</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/litterbox/habitat/package.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Habitat package operations</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
118
|
+
<ul class="summary">
|
119
|
+
|
120
|
+
<li class="public ">
|
121
|
+
<span class="summary_signature">
|
122
|
+
|
123
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ Object </a>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
</span>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<span class="summary_desc"><div class='inline'>
|
141
|
+
<p>Returns the value of attribute name.</p>
|
142
|
+
</div></span>
|
143
|
+
|
144
|
+
</li>
|
145
|
+
|
146
|
+
|
147
|
+
</ul>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<h2>
|
154
|
+
Instance Method Summary
|
155
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
156
|
+
</h2>
|
157
|
+
|
158
|
+
<ul class="summary">
|
159
|
+
|
160
|
+
<li class="public ">
|
161
|
+
<span class="summary_signature">
|
162
|
+
|
163
|
+
<a href="#demote-instance_method" title="#demote (instance method)">#<strong>demote</strong>(pkg_ident, channel, auth = ENV['HAB_AUTH_TOKEN']) ⇒ Object </a>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
</span>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
178
|
+
|
179
|
+
</li>
|
180
|
+
|
181
|
+
|
182
|
+
<li class="public ">
|
183
|
+
<span class="summary_signature">
|
184
|
+
|
185
|
+
<a href="#exec-instance_method" title="#exec (instance method)">#<strong>exec</strong>(command) ⇒ Object </a>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
</span>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
200
|
+
|
201
|
+
</li>
|
202
|
+
|
203
|
+
|
204
|
+
<li class="public ">
|
205
|
+
<span class="summary_signature">
|
206
|
+
|
207
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name) ⇒ Package </a>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
</span>
|
212
|
+
|
213
|
+
|
214
|
+
<span class="note title constructor">constructor</span>
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
<span class="summary_desc"><div class='inline'>
|
224
|
+
<p>A new instance of Package.</p>
|
225
|
+
</div></span>
|
226
|
+
|
227
|
+
</li>
|
228
|
+
|
229
|
+
|
230
|
+
<li class="public ">
|
231
|
+
<span class="summary_signature">
|
232
|
+
|
233
|
+
<a href="#install-instance_method" title="#install (instance method)">#<strong>install</strong>(name = @name) ⇒ Object </a>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</span>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
248
|
+
|
249
|
+
</li>
|
250
|
+
|
251
|
+
|
252
|
+
<li class="public ">
|
253
|
+
<span class="summary_signature">
|
254
|
+
|
255
|
+
<a href="#promote-instance_method" title="#promote (instance method)">#<strong>promote</strong>(pkg_ident, channel, auth = ENV['HAB_AUTH_TOKEN']) ⇒ Object </a>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</span>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
270
|
+
|
271
|
+
</li>
|
272
|
+
|
273
|
+
|
274
|
+
<li class="public ">
|
275
|
+
<span class="summary_signature">
|
276
|
+
|
277
|
+
<a href="#upload-instance_method" title="#upload (instance method)">#<strong>upload</strong>(pkg, auth) ⇒ Object </a>
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
</span>
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
292
|
+
|
293
|
+
</li>
|
294
|
+
|
295
|
+
|
296
|
+
</ul>
|
297
|
+
|
298
|
+
|
299
|
+
<div id="constructor_details" class="method_details_list">
|
300
|
+
<h2>Constructor Details</h2>
|
301
|
+
|
302
|
+
<div class="method_details first">
|
303
|
+
<h3 class="signature first" id="initialize-instance_method">
|
304
|
+
|
305
|
+
#<strong>initialize</strong>(name) ⇒ <tt><span class='object_link'><a href="" title="Litterbox::Habitat::Package (class)">Package</a></span></tt>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</h3><div class="docstring">
|
312
|
+
<div class="discussion">
|
313
|
+
|
314
|
+
<p>Returns a new instance of Package</p>
|
315
|
+
|
316
|
+
|
317
|
+
</div>
|
318
|
+
</div>
|
319
|
+
<div class="tags">
|
320
|
+
|
321
|
+
|
322
|
+
</div><table class="source_code">
|
323
|
+
<tr>
|
324
|
+
<td>
|
325
|
+
<pre class="lines">
|
326
|
+
|
327
|
+
|
328
|
+
7
|
329
|
+
8
|
330
|
+
9</pre>
|
331
|
+
</td>
|
332
|
+
<td>
|
333
|
+
<pre class="code"><span class="info file"># File 'lib/litterbox/habitat/package.rb', line 7</span>
|
334
|
+
|
335
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
336
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
337
|
+
<span class='kw'>end</span></pre>
|
338
|
+
</td>
|
339
|
+
</tr>
|
340
|
+
</table>
|
341
|
+
</div>
|
342
|
+
|
343
|
+
</div>
|
344
|
+
|
345
|
+
<div id="instance_attr_details" class="attr_details">
|
346
|
+
<h2>Instance Attribute Details</h2>
|
347
|
+
|
348
|
+
|
349
|
+
<span id="name=-instance_method"></span>
|
350
|
+
<div class="method_details first">
|
351
|
+
<h3 class="signature first" id="name-instance_method">
|
352
|
+
|
353
|
+
#<strong>name</strong> ⇒ <tt>Object</tt>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
</h3><div class="docstring">
|
360
|
+
<div class="discussion">
|
361
|
+
|
362
|
+
<p>Returns the value of attribute name</p>
|
363
|
+
|
364
|
+
|
365
|
+
</div>
|
366
|
+
</div>
|
367
|
+
<div class="tags">
|
368
|
+
|
369
|
+
|
370
|
+
</div><table class="source_code">
|
371
|
+
<tr>
|
372
|
+
<td>
|
373
|
+
<pre class="lines">
|
374
|
+
|
375
|
+
|
376
|
+
5
|
377
|
+
6
|
378
|
+
7</pre>
|
379
|
+
</td>
|
380
|
+
<td>
|
381
|
+
<pre class="code"><span class="info file"># File 'lib/litterbox/habitat/package.rb', line 5</span>
|
382
|
+
|
383
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
384
|
+
<span class='ivar'>@name</span>
|
385
|
+
<span class='kw'>end</span></pre>
|
386
|
+
</td>
|
387
|
+
</tr>
|
388
|
+
</table>
|
389
|
+
</div>
|
390
|
+
|
391
|
+
</div>
|
392
|
+
|
393
|
+
|
394
|
+
<div id="instance_method_details" class="method_details_list">
|
395
|
+
<h2>Instance Method Details</h2>
|
396
|
+
|
397
|
+
|
398
|
+
<div class="method_details first">
|
399
|
+
<h3 class="signature first" id="demote-instance_method">
|
400
|
+
|
401
|
+
#<strong>demote</strong>(pkg_ident, channel, auth = ENV['HAB_AUTH_TOKEN']) ⇒ <tt>Object</tt>
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
</h3><table class="source_code">
|
408
|
+
<tr>
|
409
|
+
<td>
|
410
|
+
<pre class="lines">
|
411
|
+
|
412
|
+
|
413
|
+
32
|
414
|
+
33
|
415
|
+
34</pre>
|
416
|
+
</td>
|
417
|
+
<td>
|
418
|
+
<pre class="code"><span class="info file"># File 'lib/litterbox/habitat/package.rb', line 32</span>
|
419
|
+
|
420
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_demote'>demote</span><span class='lparen'>(</span><span class='id identifier rubyid_pkg_ident'>pkg_ident</span><span class='comma'>,</span> <span class='id identifier rubyid_channel'>channel</span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span> <span class='op'>=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>HAB_AUTH_TOKEN</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
421
|
+
<span class='id identifier rubyid_exec_cmd'>exec_cmd</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>hab pkg demote </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_pkg_ident'>pkg_ident</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_channel'>channel</span><span class='embexpr_end'>}</span><span class='tstring_content'> -z </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_auth'>auth</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
422
|
+
<span class='kw'>end</span></pre>
|
423
|
+
</td>
|
424
|
+
</tr>
|
425
|
+
</table>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
<div class="method_details ">
|
429
|
+
<h3 class="signature " id="exec-instance_method">
|
430
|
+
|
431
|
+
#<strong>exec</strong>(command) ⇒ <tt>Object</tt>
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
</h3><table class="source_code">
|
438
|
+
<tr>
|
439
|
+
<td>
|
440
|
+
<pre class="lines">
|
441
|
+
|
442
|
+
|
443
|
+
15
|
444
|
+
16
|
445
|
+
17
|
446
|
+
18</pre>
|
447
|
+
</td>
|
448
|
+
<td>
|
449
|
+
<pre class="code"><span class="info file"># File 'lib/litterbox/habitat/package.rb', line 15</span>
|
450
|
+
|
451
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_exec'>exec</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
452
|
+
<span class='id identifier rubyid_install'>install</span>
|
453
|
+
<span class='id identifier rubyid_exec_cmd'>exec_cmd</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>hab pkg exec </span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_command'>command</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
454
|
+
<span class='kw'>end</span></pre>
|
455
|
+
</td>
|
456
|
+
</tr>
|
457
|
+
</table>
|
458
|
+
</div>
|
459
|
+
|
460
|
+
<div class="method_details ">
|
461
|
+
<h3 class="signature " id="install-instance_method">
|
462
|
+
|
463
|
+
#<strong>install</strong>(name = @name) ⇒ <tt>Object</tt>
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
</h3><table class="source_code">
|
470
|
+
<tr>
|
471
|
+
<td>
|
472
|
+
<pre class="lines">
|
473
|
+
|
474
|
+
|
475
|
+
11
|
476
|
+
12
|
477
|
+
13</pre>
|
478
|
+
</td>
|
479
|
+
<td>
|
480
|
+
<pre class="code"><span class="info file"># File 'lib/litterbox/habitat/package.rb', line 11</span>
|
481
|
+
|
482
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_install'>install</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='ivar'>@name</span><span class='rparen'>)</span>
|
483
|
+
<span class='id identifier rubyid_exec_cmd'>exec_cmd</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>hab pkg install </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
484
|
+
<span class='kw'>end</span></pre>
|
485
|
+
</td>
|
486
|
+
</tr>
|
487
|
+
</table>
|
488
|
+
</div>
|
489
|
+
|
490
|
+
<div class="method_details ">
|
491
|
+
<h3 class="signature " id="promote-instance_method">
|
492
|
+
|
493
|
+
#<strong>promote</strong>(pkg_ident, channel, auth = ENV['HAB_AUTH_TOKEN']) ⇒ <tt>Object</tt>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
</h3><table class="source_code">
|
500
|
+
<tr>
|
501
|
+
<td>
|
502
|
+
<pre class="lines">
|
503
|
+
|
504
|
+
|
505
|
+
26
|
506
|
+
27
|
507
|
+
28
|
508
|
+
29
|
509
|
+
30</pre>
|
510
|
+
</td>
|
511
|
+
<td>
|
512
|
+
<pre class="code"><span class="info file"># File 'lib/litterbox/habitat/package.rb', line 26</span>
|
513
|
+
|
514
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_promote'>promote</span><span class='lparen'>(</span><span class='id identifier rubyid_pkg_ident'>pkg_ident</span><span class='comma'>,</span> <span class='id identifier rubyid_channel'>channel</span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span> <span class='op'>=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>HAB_AUTH_TOKEN</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
515
|
+
<span class='const'><span class='object_link'><a href="../../Litterbox.html" title="Litterbox (module)">Litterbox</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Habitat.html" title="Litterbox::Habitat (module)">Habitat</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Promote.html" title="Litterbox::Habitat::Promote (class)">Promote</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Promote.html#initialize-instance_method" title="Litterbox::Habitat::Promote#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
516
|
+
<span class='id identifier rubyid_pkg_ident'>pkg_ident</span><span class='comma'>,</span> <span class='id identifier rubyid_channel'>channel</span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span>
|
517
|
+
<span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_promote'><span class='object_link'><a href="Promote.html#promote-instance_method" title="Litterbox::Habitat::Promote#promote (method)">promote</a></span></span>
|
518
|
+
<span class='kw'>end</span></pre>
|
519
|
+
</td>
|
520
|
+
</tr>
|
521
|
+
</table>
|
522
|
+
</div>
|
523
|
+
|
524
|
+
<div class="method_details ">
|
525
|
+
<h3 class="signature " id="upload-instance_method">
|
526
|
+
|
527
|
+
#<strong>upload</strong>(pkg, auth) ⇒ <tt>Object</tt>
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
</h3><table class="source_code">
|
534
|
+
<tr>
|
535
|
+
<td>
|
536
|
+
<pre class="lines">
|
537
|
+
|
538
|
+
|
539
|
+
20
|
540
|
+
21
|
541
|
+
22
|
542
|
+
23
|
543
|
+
24</pre>
|
544
|
+
</td>
|
545
|
+
<td>
|
546
|
+
<pre class="code"><span class="info file"># File 'lib/litterbox/habitat/package.rb', line 20</span>
|
547
|
+
|
548
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_upload'>upload</span><span class='lparen'>(</span><span class='id identifier rubyid_pkg'>pkg</span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span><span class='rparen'>)</span>
|
549
|
+
<span class='const'><span class='object_link'><a href="../../Litterbox.html" title="Litterbox (module)">Litterbox</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Habitat.html" title="Litterbox::Habitat (module)">Habitat</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Upload.html" title="Litterbox::Habitat::Upload (class)">Upload</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Upload.html#initialize-instance_method" title="Litterbox::Habitat::Upload#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
550
|
+
<span class='id identifier rubyid_pkg'>pkg</span><span class='comma'>,</span> <span class='id identifier rubyid_auth'>auth</span>
|
551
|
+
<span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_upload'><span class='object_link'><a href="Upload.html#upload-instance_method" title="Litterbox::Habitat::Upload#upload (method)">upload</a></span></span>
|
552
|
+
<span class='kw'>end</span></pre>
|
553
|
+
</td>
|
554
|
+
</tr>
|
555
|
+
</table>
|
556
|
+
</div>
|
557
|
+
|
558
|
+
</div>
|
559
|
+
|
560
|
+
</div>
|
561
|
+
|
562
|
+
<div id="footer">
|
563
|
+
Generated on Wed May 2 10:27:51 2018 by
|
564
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
565
|
+
0.9.12 (ruby-2.5.0).
|
566
|
+
</div>
|
567
|
+
|
568
|
+
</div>
|
569
|
+
</body>
|
570
|
+
</html>
|