bunchr 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/README.md +148 -116
  2. data/bunchr.gemspec +1 -1
  3. data/lib/bunchr/version.rb +1 -1
  4. data/lib/bunchr.rb +2 -0
  5. data/pkg/bunchr-0.1.1/README.md +355 -0
  6. data/pkg/bunchr-0.1.1/Rakefile +9 -0
  7. data/pkg/bunchr-0.1.1/TODO +7 -0
  8. data/pkg/bunchr-0.1.1/bunchr.gemspec +34 -0
  9. data/pkg/bunchr-0.1.1/doc/Bunchr/Logger.html +201 -0
  10. data/pkg/bunchr-0.1.1/doc/Bunchr/Ohai.html +201 -0
  11. data/pkg/bunchr-0.1.1/doc/Bunchr/Packages.html +1840 -0
  12. data/pkg/bunchr-0.1.1/doc/Bunchr/Software.html +1727 -0
  13. data/pkg/bunchr-0.1.1/doc/Bunchr/Utils.html +334 -0
  14. data/pkg/bunchr-0.1.1/doc/Bunchr.html +124 -0
  15. data/pkg/bunchr-0.1.1/doc/_index.html +181 -0
  16. data/pkg/bunchr-0.1.1/doc/class_list.html +47 -0
  17. data/pkg/bunchr-0.1.1/doc/css/common.css +1 -0
  18. data/pkg/bunchr-0.1.1/doc/css/full_list.css +55 -0
  19. data/pkg/bunchr-0.1.1/doc/css/style.css +322 -0
  20. data/pkg/bunchr-0.1.1/doc/file.README.html +376 -0
  21. data/pkg/bunchr-0.1.1/doc/file_list.html +49 -0
  22. data/pkg/bunchr-0.1.1/doc/frames.html +13 -0
  23. data/pkg/bunchr-0.1.1/doc/index.html +376 -0
  24. data/pkg/bunchr-0.1.1/doc/js/app.js +205 -0
  25. data/pkg/bunchr-0.1.1/doc/js/full_list.js +173 -0
  26. data/pkg/bunchr-0.1.1/doc/js/jquery.js +16 -0
  27. data/pkg/bunchr-0.1.1/doc/method_list.html +438 -0
  28. data/pkg/bunchr-0.1.1/doc/top-level-namespace.html +105 -0
  29. data/pkg/bunchr-0.1.1/example_recipes/autoconf.rake +18 -0
  30. data/pkg/bunchr-0.1.1/example_recipes/libyaml.rake +18 -0
  31. data/pkg/bunchr-0.1.1/example_recipes/openssl.rake +54 -0
  32. data/pkg/bunchr-0.1.1/example_recipes/ruby.rake +38 -0
  33. data/pkg/bunchr-0.1.1/example_recipes/sensu.rake +18 -0
  34. data/pkg/bunchr-0.1.1/example_recipes/sensu_bin_stubs.rake +17 -0
  35. data/pkg/bunchr-0.1.1/example_recipes/sensu_configs.rake +30 -0
  36. data/pkg/bunchr-0.1.1/example_recipes/sensu_dashboard.rake +17 -0
  37. data/pkg/bunchr-0.1.1/example_recipes/zlib.rake +32 -0
  38. data/pkg/bunchr-0.1.1/lib/bunchr/logger.rb +18 -0
  39. data/pkg/bunchr-0.1.1/lib/bunchr/ohai.rb +18 -0
  40. data/pkg/bunchr-0.1.1/lib/bunchr/packages.rb +176 -0
  41. data/pkg/bunchr-0.1.1/lib/bunchr/software.rb +164 -0
  42. data/pkg/bunchr-0.1.1/lib/bunchr/utils.rb +36 -0
  43. data/pkg/bunchr-0.1.1/lib/bunchr/version.rb +3 -0
  44. data/pkg/bunchr-0.1.1/lib/bunchr.rb +44 -0
  45. data/pkg/bunchr-0.1.1.gem +0 -0
  46. metadata +123 -62
@@ -0,0 +1,1727 @@
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: Bunchr::Software
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (S)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Bunchr.html" title="Bunchr (module)">Bunchr</a></span></span>
38
+ &raquo;
39
+ <span class="title">Software</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Bunchr::Software
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Rake::TaskLib</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Rake::TaskLib</li>
75
+
76
+ <li class="next">Bunchr::Software</li>
77
+
78
+ </ul>
79
+ <a href="#" class="inheritanceTree">show all</a>
80
+
81
+ </dd>
82
+
83
+
84
+
85
+
86
+
87
+
88
+ <dt class="r2">Includes:</dt>
89
+ <dd class="r2"><span class='object_link'><a href="Utils.html" title="Bunchr::Utils (module)">Utils</a></span></dd>
90
+
91
+
92
+
93
+
94
+
95
+ <dt class="r1 last">Defined in:</dt>
96
+ <dd class="r1 last">lib/bunchr/software.rb</dd>
97
+
98
+ </dl>
99
+ <div class="clear"></div>
100
+
101
+
102
+
103
+
104
+
105
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
106
+ <ul class="summary">
107
+
108
+ <li class="public ">
109
+ <span class="summary_signature">
110
+
111
+ <a href="#build_commands-instance_method" title="#build_commands (instance method)">- (Object) <strong>build_commands</strong> </a>
112
+
113
+
114
+
115
+ </span>
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ <span class="summary_desc"><div class='inline'><p>
128
+ Returns the value of attribute build_commands.
129
+ </p>
130
+ </div></span>
131
+
132
+ </li>
133
+
134
+
135
+ <li class="public ">
136
+ <span class="summary_signature">
137
+
138
+ <a href="#build_environment-instance_method" title="#build_environment (instance method)">- (Object) <strong>build_environment</strong> </a>
139
+
140
+
141
+
142
+ </span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+ <span class="summary_desc"><div class='inline'><p>
155
+ Returns the value of attribute build_environment.
156
+ </p>
157
+ </div></span>
158
+
159
+ </li>
160
+
161
+
162
+ <li class="public ">
163
+ <span class="summary_signature">
164
+
165
+ <a href="#download_commands-instance_method" title="#download_commands (instance method)">- (Object) <strong>download_commands</strong> </a>
166
+
167
+
168
+
169
+ </span>
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+ <span class="summary_desc"><div class='inline'><p>
182
+ Returns the value of attribute download_commands.
183
+ </p>
184
+ </div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#download_environment-instance_method" title="#download_environment (instance method)">- (Object) <strong>download_environment</strong> </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <span class="summary_desc"><div class='inline'><p>
209
+ Returns the value of attribute download_environment.
210
+ </p>
211
+ </div></span>
212
+
213
+ </li>
214
+
215
+
216
+ <li class="public ">
217
+ <span class="summary_signature">
218
+
219
+ <a href="#install_commands-instance_method" title="#install_commands (instance method)">- (Object) <strong>install_commands</strong> </a>
220
+
221
+
222
+
223
+ </span>
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+ <span class="summary_desc"><div class='inline'><p>
236
+ Returns the value of attribute install_commands.
237
+ </p>
238
+ </div></span>
239
+
240
+ </li>
241
+
242
+
243
+ <li class="public ">
244
+ <span class="summary_signature">
245
+
246
+ <a href="#install_environment-instance_method" title="#install_environment (instance method)">- (Object) <strong>install_environment</strong> </a>
247
+
248
+
249
+
250
+ </span>
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+ <span class="summary_desc"><div class='inline'><p>
263
+ Returns the value of attribute install_environment.
264
+ </p>
265
+ </div></span>
266
+
267
+ </li>
268
+
269
+
270
+ <li class="public ">
271
+ <span class="summary_signature">
272
+
273
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
274
+
275
+
276
+
277
+ </span>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+ <span class="summary_desc"><div class='inline'><p>
290
+ Returns the value of attribute name.
291
+ </p>
292
+ </div></span>
293
+
294
+ </li>
295
+
296
+
297
+ <li class="public ">
298
+ <span class="summary_signature">
299
+
300
+ <a href="#version-instance_method" title="#version (instance method)">- (Object) <strong>version</strong> </a>
301
+
302
+
303
+
304
+ </span>
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+ <span class="summary_desc"><div class='inline'><p>
317
+ Returns the value of attribute version.
318
+ </p>
319
+ </div></span>
320
+
321
+ </li>
322
+
323
+
324
+ </ul>
325
+
326
+
327
+
328
+
329
+
330
+ <h2>
331
+ Instance Method Summary
332
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
333
+ </h2>
334
+
335
+ <ul class="summary">
336
+
337
+ <li class="public ">
338
+ <span class="summary_signature">
339
+
340
+ <a href="#build-instance_method" title="#build (instance method)">- (Object) <strong>build</strong> </a>
341
+
342
+
343
+
344
+ </span>
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+ <span class="summary_desc"><div class='inline'><p>
354
+ Execute all the build commands.
355
+ </p>
356
+ </div></span>
357
+
358
+ </li>
359
+
360
+
361
+ <li class="public ">
362
+ <span class="summary_signature">
363
+
364
+ <a href="#define-instance_method" title="#define (instance method)">- (Object) <strong>define</strong> </a>
365
+
366
+
367
+
368
+ </span>
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+ <span class="summary_desc"><div class='inline'><p>
378
+ Define all the tasks in the namespace of the <tt>name</tt> of this task.
379
+ </p>
380
+ </div></span>
381
+
382
+ </li>
383
+
384
+
385
+ <li class="public ">
386
+ <span class="summary_signature">
387
+
388
+ <a href="#define_build-instance_method" title="#define_build (instance method)">- (Object) <strong>define_build</strong> </a>
389
+
390
+
391
+
392
+ </span>
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+ <span class="summary_desc"><div class='inline'></div></span>
402
+
403
+ </li>
404
+
405
+
406
+ <li class="public ">
407
+ <span class="summary_signature">
408
+
409
+ <a href="#define_download-instance_method" title="#define_download (instance method)">- (Object) <strong>define_download</strong> </a>
410
+
411
+
412
+
413
+ </span>
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+ <span class="summary_desc"><div class='inline'></div></span>
423
+
424
+ </li>
425
+
426
+
427
+ <li class="public ">
428
+ <span class="summary_signature">
429
+
430
+ <a href="#define_install-instance_method" title="#define_install (instance method)">- (Object) <strong>define_install</strong> </a>
431
+
432
+
433
+
434
+ </span>
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+ <span class="summary_desc"><div class='inline'></div></span>
444
+
445
+ </li>
446
+
447
+
448
+ <li class="public ">
449
+ <span class="summary_signature">
450
+
451
+ <a href="#depends_on-instance_method" title="#depends_on (instance method)">- (Object) <strong>depends_on</strong>(dependency) </a>
452
+
453
+
454
+
455
+ </span>
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+ <span class="summary_desc"><div class='inline'><p>
465
+ depend on a <span class='object_link'><a href="" title="Bunchr::Software (class)">Software</a></span> object to be built and installed.
466
+ </p>
467
+ </div></span>
468
+
469
+ </li>
470
+
471
+
472
+ <li class="public ">
473
+ <span class="summary_signature">
474
+
475
+ <a href="#dotfile-instance_method" title="#dotfile (instance method)">- (Object) <strong>dotfile</strong>(name) </a>
476
+
477
+
478
+
479
+ </span>
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+ <span class="summary_desc"><div class='inline'></div></span>
489
+
490
+ </li>
491
+
492
+
493
+ <li class="public ">
494
+ <span class="summary_signature">
495
+
496
+ <a href="#dotfile%21-instance_method" title="#dotfile! (instance method)">- (Object) <strong>dotfile!</strong>(name) </a>
497
+
498
+
499
+
500
+ </span>
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+ <span class="summary_desc"><div class='inline'></div></span>
510
+
511
+ </li>
512
+
513
+
514
+ <li class="public ">
515
+ <span class="summary_signature">
516
+
517
+ <a href="#download-instance_method" title="#download (instance method)">- (Object) <strong>download</strong> </a>
518
+
519
+
520
+
521
+ </span>
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+ <span class="summary_desc"><div class='inline'><p>
531
+ Execute all the build commands.
532
+ </p>
533
+ </div></span>
534
+
535
+ </li>
536
+
537
+
538
+ <li class="public ">
539
+ <span class="summary_signature">
540
+
541
+ <a href="#download_dir-instance_method" title="#download_dir (instance method)">- (Object) <strong>download_dir</strong> </a>
542
+
543
+
544
+
545
+ </span>
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+ <span class="summary_desc"><div class='inline'></div></span>
555
+
556
+ </li>
557
+
558
+
559
+ <li class="public ">
560
+ <span class="summary_signature">
561
+
562
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Software) <strong>initialize</strong> {|_self| ... }</a>
563
+
564
+
565
+
566
+ </span>
567
+
568
+ <span class="note title constructor">constructor</span>
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+ <span class="summary_desc"><div class='inline'><p>
578
+ A new instance of Software.
579
+ </p>
580
+ </div></span>
581
+
582
+ </li>
583
+
584
+
585
+ <li class="public ">
586
+ <span class="summary_signature">
587
+
588
+ <a href="#install-instance_method" title="#install (instance method)">- (Object) <strong>install</strong> </a>
589
+
590
+
591
+
592
+ </span>
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+ <span class="summary_desc"><div class='inline'><p>
602
+ Execute all the install commands.
603
+ </p>
604
+ </div></span>
605
+
606
+ </li>
607
+
608
+
609
+ <li class="public ">
610
+ <span class="summary_signature">
611
+
612
+ <a href="#work_dir-instance_method" title="#work_dir (instance method)">- (Object) <strong>work_dir</strong> </a>
613
+
614
+
615
+
616
+ </span>
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+ <span class="summary_desc"><div class='inline'><p>
626
+ The directory this task unpacks into.
627
+ </p>
628
+ </div></span>
629
+
630
+ </li>
631
+
632
+
633
+ <li class="public ">
634
+ <span class="summary_signature">
635
+
636
+ <a href="#work_dir%3D-instance_method" title="#work_dir= (instance method)">- (Object) <strong>work_dir=</strong>(pd) </a>
637
+
638
+
639
+
640
+ </span>
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+ <span class="summary_desc"><div class='inline'><p>
650
+ override the directory that the local source unpacks into if it is not
651
+ <tt>name-version</tt>.
652
+ </p>
653
+ </div></span>
654
+
655
+ </li>
656
+
657
+
658
+ </ul>
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Utils.html" title="Bunchr::Utils (module)">Utils</a></span></h3>
670
+ <p class="inherited"><span class='object_link'><a href="Utils.html#logger-instance_method" title="Bunchr::Utils#logger (method)">#logger</a></span>, <span class='object_link'><a href="Utils.html#ohai-instance_method" title="Bunchr::Utils#ohai (method)">#ohai</a></span>, <span class='object_link'><a href="Utils.html#sh-instance_method" title="Bunchr::Utils#sh (method)">#sh</a></span></p>
671
+
672
+ <div id="constructor_details" class="method_details_list">
673
+ <h2>Constructor Details</h2>
674
+
675
+ <div class="method_details first">
676
+ <p class="signature first" id="initialize-instance_method">
677
+
678
+ - (<tt><span class='object_link'><a href="" title="Bunchr::Software (class)">Software</a></span></tt>) <strong>initialize</strong> {|_self| ... }
679
+
680
+
681
+
682
+ </p><div class="docstring">
683
+ <div class="discussion">
684
+ <p>
685
+ A new instance of Software
686
+ </p>
687
+
688
+
689
+ </div>
690
+ </div>
691
+ <div class="tags">
692
+
693
+ <h3>Yields:</h3>
694
+ <ul class="yield">
695
+
696
+ <li>
697
+
698
+
699
+ <span class='type'>(<tt>_self</tt>)</span>
700
+
701
+
702
+
703
+ </li>
704
+
705
+ </ul>
706
+ <h3>Yield Parameters:</h3>
707
+ <ul class="yieldparam">
708
+
709
+ <li>
710
+
711
+ <span class='name'>_self</span>
712
+
713
+
714
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Bunchr::Software (class)">Bunchr::Software</a></span></tt>)</span>
715
+
716
+
717
+
718
+ &mdash;
719
+ <div class='inline'><p>
720
+ the object that the method was called on
721
+ </p>
722
+ </div>
723
+
724
+ </li>
725
+
726
+ </ul>
727
+
728
+ </div><table class="source_code">
729
+ <tr>
730
+ <td>
731
+ <pre class="lines">
732
+
733
+
734
+ 16
735
+ 17
736
+ 18
737
+ 19
738
+ 20
739
+ 21
740
+ 22
741
+ 23
742
+ 24
743
+ 25
744
+ 26
745
+ 27</pre>
746
+ </td>
747
+ <td>
748
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 16</span>
749
+
750
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
751
+ <span class='ivar'>@name</span> <span class='op'>=</span> <span class='kw'>nil</span>
752
+ <span class='ivar'>@version</span> <span class='op'>=</span> <span class='kw'>nil</span>
753
+ <span class='ivar'>@install_commands</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
754
+ <span class='ivar'>@build_commands</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
755
+ <span class='ivar'>@download_commands</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
756
+ <span class='ivar'>@install_environment</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
757
+ <span class='ivar'>@build_environment</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
758
+ <span class='ivar'>@download_environment</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
759
+ <span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
760
+ <span class='id identifier rubyid_define'>define</span> <span class='kw'>unless</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
761
+ <span class='kw'>end</span></pre>
762
+ </td>
763
+ </tr>
764
+ </table>
765
+ </div>
766
+
767
+ </div>
768
+
769
+ <div id="instance_attr_details" class="attr_details">
770
+ <h2>Instance Attribute Details</h2>
771
+
772
+
773
+ <span id="build_commands=-instance_method"></span>
774
+ <span id="build_commands-instance_method"></span>
775
+ <div class="method_details first">
776
+ <p class="signature first" id="build_commands-instance_method">
777
+
778
+ - (<tt>Object</tt>) <strong>build_commands</strong>
779
+
780
+
781
+
782
+ </p><div class="docstring">
783
+ <div class="discussion">
784
+ <p>
785
+ Returns the value of attribute build_commands
786
+ </p>
787
+
788
+
789
+ </div>
790
+ </div>
791
+ <div class="tags">
792
+
793
+
794
+ </div><table class="source_code">
795
+ <tr>
796
+ <td>
797
+ <pre class="lines">
798
+
799
+
800
+ 13
801
+ 14
802
+ 15</pre>
803
+ </td>
804
+ <td>
805
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 13</span>
806
+
807
+ <span class='kw'>def</span> <span class='id identifier rubyid_build_commands'>build_commands</span>
808
+ <span class='ivar'>@build_commands</span>
809
+ <span class='kw'>end</span></pre>
810
+ </td>
811
+ </tr>
812
+ </table>
813
+ </div>
814
+
815
+
816
+ <span id="build_environment=-instance_method"></span>
817
+ <span id="build_environment-instance_method"></span>
818
+ <div class="method_details ">
819
+ <p class="signature " id="build_environment-instance_method">
820
+
821
+ - (<tt>Object</tt>) <strong>build_environment</strong>
822
+
823
+
824
+
825
+ </p><div class="docstring">
826
+ <div class="discussion">
827
+ <p>
828
+ Returns the value of attribute build_environment
829
+ </p>
830
+
831
+
832
+ </div>
833
+ </div>
834
+ <div class="tags">
835
+
836
+
837
+ </div><table class="source_code">
838
+ <tr>
839
+ <td>
840
+ <pre class="lines">
841
+
842
+
843
+ 14
844
+ 15
845
+ 16</pre>
846
+ </td>
847
+ <td>
848
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 14</span>
849
+
850
+ <span class='kw'>def</span> <span class='id identifier rubyid_build_environment'>build_environment</span>
851
+ <span class='ivar'>@build_environment</span>
852
+ <span class='kw'>end</span></pre>
853
+ </td>
854
+ </tr>
855
+ </table>
856
+ </div>
857
+
858
+
859
+ <span id="download_commands=-instance_method"></span>
860
+ <span id="download_commands-instance_method"></span>
861
+ <div class="method_details ">
862
+ <p class="signature " id="download_commands-instance_method">
863
+
864
+ - (<tt>Object</tt>) <strong>download_commands</strong>
865
+
866
+
867
+
868
+ </p><div class="docstring">
869
+ <div class="discussion">
870
+ <p>
871
+ Returns the value of attribute download_commands
872
+ </p>
873
+
874
+
875
+ </div>
876
+ </div>
877
+ <div class="tags">
878
+
879
+
880
+ </div><table class="source_code">
881
+ <tr>
882
+ <td>
883
+ <pre class="lines">
884
+
885
+
886
+ 13
887
+ 14
888
+ 15</pre>
889
+ </td>
890
+ <td>
891
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 13</span>
892
+
893
+ <span class='kw'>def</span> <span class='id identifier rubyid_download_commands'>download_commands</span>
894
+ <span class='ivar'>@download_commands</span>
895
+ <span class='kw'>end</span></pre>
896
+ </td>
897
+ </tr>
898
+ </table>
899
+ </div>
900
+
901
+
902
+ <span id="download_environment=-instance_method"></span>
903
+ <span id="download_environment-instance_method"></span>
904
+ <div class="method_details ">
905
+ <p class="signature " id="download_environment-instance_method">
906
+
907
+ - (<tt>Object</tt>) <strong>download_environment</strong>
908
+
909
+
910
+
911
+ </p><div class="docstring">
912
+ <div class="discussion">
913
+ <p>
914
+ Returns the value of attribute download_environment
915
+ </p>
916
+
917
+
918
+ </div>
919
+ </div>
920
+ <div class="tags">
921
+
922
+
923
+ </div><table class="source_code">
924
+ <tr>
925
+ <td>
926
+ <pre class="lines">
927
+
928
+
929
+ 14
930
+ 15
931
+ 16</pre>
932
+ </td>
933
+ <td>
934
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 14</span>
935
+
936
+ <span class='kw'>def</span> <span class='id identifier rubyid_download_environment'>download_environment</span>
937
+ <span class='ivar'>@download_environment</span>
938
+ <span class='kw'>end</span></pre>
939
+ </td>
940
+ </tr>
941
+ </table>
942
+ </div>
943
+
944
+
945
+ <span id="install_commands=-instance_method"></span>
946
+ <span id="install_commands-instance_method"></span>
947
+ <div class="method_details ">
948
+ <p class="signature " id="install_commands-instance_method">
949
+
950
+ - (<tt>Object</tt>) <strong>install_commands</strong>
951
+
952
+
953
+
954
+ </p><div class="docstring">
955
+ <div class="discussion">
956
+ <p>
957
+ Returns the value of attribute install_commands
958
+ </p>
959
+
960
+
961
+ </div>
962
+ </div>
963
+ <div class="tags">
964
+
965
+
966
+ </div><table class="source_code">
967
+ <tr>
968
+ <td>
969
+ <pre class="lines">
970
+
971
+
972
+ 13
973
+ 14
974
+ 15</pre>
975
+ </td>
976
+ <td>
977
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 13</span>
978
+
979
+ <span class='kw'>def</span> <span class='id identifier rubyid_install_commands'>install_commands</span>
980
+ <span class='ivar'>@install_commands</span>
981
+ <span class='kw'>end</span></pre>
982
+ </td>
983
+ </tr>
984
+ </table>
985
+ </div>
986
+
987
+
988
+ <span id="install_environment=-instance_method"></span>
989
+ <span id="install_environment-instance_method"></span>
990
+ <div class="method_details ">
991
+ <p class="signature " id="install_environment-instance_method">
992
+
993
+ - (<tt>Object</tt>) <strong>install_environment</strong>
994
+
995
+
996
+
997
+ </p><div class="docstring">
998
+ <div class="discussion">
999
+ <p>
1000
+ Returns the value of attribute install_environment
1001
+ </p>
1002
+
1003
+
1004
+ </div>
1005
+ </div>
1006
+ <div class="tags">
1007
+
1008
+
1009
+ </div><table class="source_code">
1010
+ <tr>
1011
+ <td>
1012
+ <pre class="lines">
1013
+
1014
+
1015
+ 14
1016
+ 15
1017
+ 16</pre>
1018
+ </td>
1019
+ <td>
1020
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 14</span>
1021
+
1022
+ <span class='kw'>def</span> <span class='id identifier rubyid_install_environment'>install_environment</span>
1023
+ <span class='ivar'>@install_environment</span>
1024
+ <span class='kw'>end</span></pre>
1025
+ </td>
1026
+ </tr>
1027
+ </table>
1028
+ </div>
1029
+
1030
+
1031
+ <span id="name=-instance_method"></span>
1032
+ <span id="name-instance_method"></span>
1033
+ <div class="method_details ">
1034
+ <p class="signature " id="name-instance_method">
1035
+
1036
+ - (<tt>Object</tt>) <strong>name</strong>
1037
+
1038
+
1039
+
1040
+ </p><div class="docstring">
1041
+ <div class="discussion">
1042
+ <p>
1043
+ Returns the value of attribute name
1044
+ </p>
1045
+
1046
+
1047
+ </div>
1048
+ </div>
1049
+ <div class="tags">
1050
+
1051
+
1052
+ </div><table class="source_code">
1053
+ <tr>
1054
+ <td>
1055
+ <pre class="lines">
1056
+
1057
+
1058
+ 12
1059
+ 13
1060
+ 14</pre>
1061
+ </td>
1062
+ <td>
1063
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 12</span>
1064
+
1065
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
1066
+ <span class='ivar'>@name</span>
1067
+ <span class='kw'>end</span></pre>
1068
+ </td>
1069
+ </tr>
1070
+ </table>
1071
+ </div>
1072
+
1073
+
1074
+ <span id="version=-instance_method"></span>
1075
+ <span id="version-instance_method"></span>
1076
+ <div class="method_details ">
1077
+ <p class="signature " id="version-instance_method">
1078
+
1079
+ - (<tt>Object</tt>) <strong>version</strong>
1080
+
1081
+
1082
+
1083
+ </p><div class="docstring">
1084
+ <div class="discussion">
1085
+ <p>
1086
+ Returns the value of attribute version
1087
+ </p>
1088
+
1089
+
1090
+ </div>
1091
+ </div>
1092
+ <div class="tags">
1093
+
1094
+
1095
+ </div><table class="source_code">
1096
+ <tr>
1097
+ <td>
1098
+ <pre class="lines">
1099
+
1100
+
1101
+ 12
1102
+ 13
1103
+ 14</pre>
1104
+ </td>
1105
+ <td>
1106
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 12</span>
1107
+
1108
+ <span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span>
1109
+ <span class='ivar'>@version</span>
1110
+ <span class='kw'>end</span></pre>
1111
+ </td>
1112
+ </tr>
1113
+ </table>
1114
+ </div>
1115
+
1116
+ </div>
1117
+
1118
+
1119
+ <div id="instance_method_details" class="method_details_list">
1120
+ <h2>Instance Method Details</h2>
1121
+
1122
+
1123
+ <div class="method_details first">
1124
+ <p class="signature first" id="build-instance_method">
1125
+
1126
+ - (<tt>Object</tt>) <strong>build</strong>
1127
+
1128
+
1129
+
1130
+ </p><div class="docstring">
1131
+ <div class="discussion">
1132
+ <p>
1133
+ Execute all the build commands
1134
+ </p>
1135
+
1136
+
1137
+ </div>
1138
+ </div>
1139
+ <div class="tags">
1140
+
1141
+
1142
+ </div><table class="source_code">
1143
+ <tr>
1144
+ <td>
1145
+ <pre class="lines">
1146
+
1147
+
1148
+ 133
1149
+ 134
1150
+ 135
1151
+ 136
1152
+ 137</pre>
1153
+ </td>
1154
+ <td>
1155
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 133</span>
1156
+
1157
+ <span class='kw'>def</span> <span class='id identifier rubyid_build'>build</span>
1158
+ <span class='id identifier rubyid_build_commands'>build_commands</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_cmd'>cmd</span><span class='op'>|</span>
1159
+ <span class='id identifier rubyid_sh'>sh</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_build_environment'>build_environment</span><span class='comma'>,</span> <span class='id identifier rubyid_work_dir'>work_dir</span><span class='rparen'>)</span>
1160
+ <span class='kw'>end</span>
1161
+ <span class='kw'>end</span></pre>
1162
+ </td>
1163
+ </tr>
1164
+ </table>
1165
+ </div>
1166
+
1167
+ <div class="method_details ">
1168
+ <p class="signature " id="define-instance_method">
1169
+
1170
+ - (<tt>Object</tt>) <strong>define</strong>
1171
+
1172
+
1173
+
1174
+ </p><div class="docstring">
1175
+ <div class="discussion">
1176
+ <p>
1177
+ Define all the tasks in the namespace of the <tt>name</tt> of this task.
1178
+ </p>
1179
+ <p>
1180
+ The dependency chain is:
1181
+ </p>
1182
+ <pre class="code ruby"><code>
1183
+ :install =&gt; :build =&gt; :download</code></pre>
1184
+
1185
+
1186
+ </div>
1187
+ </div>
1188
+ <div class="tags">
1189
+
1190
+
1191
+ </div><table class="source_code">
1192
+ <tr>
1193
+ <td>
1194
+ <pre class="lines">
1195
+
1196
+
1197
+ 54
1198
+ 55
1199
+ 56
1200
+ 57
1201
+ 58
1202
+ 59
1203
+ 60
1204
+ 61
1205
+ 62
1206
+ 63
1207
+ 64
1208
+ 65
1209
+ 66
1210
+ 67
1211
+ 68
1212
+ 69
1213
+ 70
1214
+ 71</pre>
1215
+ </td>
1216
+ <td>
1217
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 54</span>
1218
+
1219
+ <span class='kw'>def</span> <span class='id identifier rubyid_define'>define</span>
1220
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Defining tasks for software:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1221
+
1222
+ <span class='id identifier rubyid_namespace'>namespace</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>software</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span>
1223
+ <span class='id identifier rubyid_namespace'>namespace</span> <span class='id identifier rubyid_name'>name</span> <span class='kw'>do</span>
1224
+ <span class='id identifier rubyid_define_download'>define_download</span>
1225
+ <span class='id identifier rubyid_define_build'>define_build</span>
1226
+ <span class='id identifier rubyid_define_install'>define_install</span>
1227
+
1228
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:done</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>software:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>:install</span><span class='tstring_end'>&quot;</span></span>
1229
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:default</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>software:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>:done</span><span class='tstring_end'>&quot;</span></span>
1230
+ <span class='kw'>end</span>
1231
+
1232
+ <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Download, build, and install </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1233
+ <span class='id identifier rubyid_task'>task</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>:default</span><span class='tstring_end'>&quot;</span></span>
1234
+ <span class='kw'>end</span>
1235
+
1236
+ <span class='kw'>end</span></pre>
1237
+ </td>
1238
+ </tr>
1239
+ </table>
1240
+ </div>
1241
+
1242
+ <div class="method_details ">
1243
+ <p class="signature " id="define_build-instance_method">
1244
+
1245
+ - (<tt>Object</tt>) <strong>define_build</strong>
1246
+
1247
+
1248
+
1249
+ </p><table class="source_code">
1250
+ <tr>
1251
+ <td>
1252
+ <pre class="lines">
1253
+
1254
+
1255
+ 92
1256
+ 93
1257
+ 94
1258
+ 95
1259
+ 96
1260
+ 97
1261
+ 98
1262
+ 99
1263
+ 100
1264
+ 101
1265
+ 102
1266
+ 103
1267
+ 104
1268
+ 105
1269
+ 106</pre>
1270
+ </td>
1271
+ <td>
1272
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 92</span>
1273
+
1274
+ <span class='kw'>def</span> <span class='id identifier rubyid_define_build'>define_build</span>
1275
+ <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Build </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1276
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:build</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>build</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
1277
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_content'> built</span><span class='tstring_end'>&quot;</span></span>
1278
+ <span class='kw'>end</span>
1279
+
1280
+ <span class='id identifier rubyid_file'>file</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>build</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>software:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>:download</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>do</span>
1281
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Bulding </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1282
+ <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_chdir'>chdir</span><span class='lparen'>(</span><span class='id identifier rubyid_work_dir'>work_dir</span><span class='rparen'>)</span> <span class='kw'>do</span>
1283
+ <span class='id identifier rubyid_build'>build</span>
1284
+ <span class='kw'>end</span>
1285
+ <span class='id identifier rubyid_dotfile!'>dotfile!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>build</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1286
+ <span class='kw'>end</span>
1287
+ <span class='op'>::</span><span class='const'>CLEAN</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>build</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1288
+ <span class='kw'>end</span></pre>
1289
+ </td>
1290
+ </tr>
1291
+ </table>
1292
+ </div>
1293
+
1294
+ <div class="method_details ">
1295
+ <p class="signature " id="define_download-instance_method">
1296
+
1297
+ - (<tt>Object</tt>) <strong>define_download</strong>
1298
+
1299
+
1300
+
1301
+ </p><table class="source_code">
1302
+ <tr>
1303
+ <td>
1304
+ <pre class="lines">
1305
+
1306
+
1307
+ 73
1308
+ 74
1309
+ 75
1310
+ 76
1311
+ 77
1312
+ 78
1313
+ 79
1314
+ 80
1315
+ 81
1316
+ 82
1317
+ 83
1318
+ 84
1319
+ 85
1320
+ 86
1321
+ 87
1322
+ 88
1323
+ 89
1324
+ 90</pre>
1325
+ </td>
1326
+ <td>
1327
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 73</span>
1328
+
1329
+ <span class='kw'>def</span> <span class='id identifier rubyid_define_download'>define_download</span>
1330
+ <span class='id identifier rubyid_directory'>directory</span> <span class='id identifier rubyid_download_dir'>download_dir</span>
1331
+
1332
+ <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Download </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1333
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:download</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>download</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
1334
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_content'> downloaded</span><span class='tstring_end'>&quot;</span></span>
1335
+ <span class='kw'>end</span>
1336
+
1337
+ <span class='id identifier rubyid_file'>file</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>download</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_download_dir'>download_dir</span> <span class='kw'>do</span>
1338
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Downloading </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1339
+ <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_chdir'>chdir</span><span class='lparen'>(</span><span class='id identifier rubyid_download_dir'>download_dir</span><span class='rparen'>)</span> <span class='kw'>do</span>
1340
+ <span class='id identifier rubyid_download'>download</span>
1341
+ <span class='kw'>end</span>
1342
+ <span class='id identifier rubyid_dotfile!'>dotfile!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>download</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1343
+ <span class='kw'>end</span>
1344
+ <span class='op'>::</span><span class='const'>CLEAN</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>download</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1345
+ <span class='op'>::</span><span class='const'>CLEAN</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_download_dir'>download_dir</span>
1346
+ <span class='kw'>end</span></pre>
1347
+ </td>
1348
+ </tr>
1349
+ </table>
1350
+ </div>
1351
+
1352
+ <div class="method_details ">
1353
+ <p class="signature " id="define_install-instance_method">
1354
+
1355
+ - (<tt>Object</tt>) <strong>define_install</strong>
1356
+
1357
+
1358
+
1359
+ </p><table class="source_code">
1360
+ <tr>
1361
+ <td>
1362
+ <pre class="lines">
1363
+
1364
+
1365
+ 108
1366
+ 109
1367
+ 110
1368
+ 111
1369
+ 112
1370
+ 113
1371
+ 114
1372
+ 115
1373
+ 116
1374
+ 117
1375
+ 118
1376
+ 119
1377
+ 120
1378
+ 121
1379
+ 122
1380
+ 123</pre>
1381
+ </td>
1382
+ <td>
1383
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 108</span>
1384
+
1385
+ <span class='kw'>def</span> <span class='id identifier rubyid_define_install'>define_install</span>
1386
+ <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Install </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1387
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:install</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>install</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
1388
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_content'> is installed</span><span class='tstring_end'>&quot;</span></span>
1389
+ <span class='kw'>end</span>
1390
+
1391
+ <span class='id identifier rubyid_file'>file</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>install</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>software:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'>:build</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>do</span>
1392
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Installing </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1393
+ <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_chdir'>chdir</span><span class='lparen'>(</span><span class='id identifier rubyid_work_dir'>work_dir</span><span class='rparen'>)</span> <span class='kw'>do</span>
1394
+ <span class='id identifier rubyid_install'>install</span>
1395
+ <span class='kw'>end</span>
1396
+ <span class='id identifier rubyid_dotfile!'>dotfile!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>install</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1397
+ <span class='kw'>end</span>
1398
+ <span class='op'>::</span><span class='const'>CLEAN</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>install</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
1399
+
1400
+ <span class='kw'>end</span></pre>
1401
+ </td>
1402
+ </tr>
1403
+ </table>
1404
+ </div>
1405
+
1406
+ <div class="method_details ">
1407
+ <p class="signature " id="depends_on-instance_method">
1408
+
1409
+ - (<tt>Object</tt>) <strong>depends_on</strong>(dependency)
1410
+
1411
+
1412
+
1413
+ </p><div class="docstring">
1414
+ <div class="discussion">
1415
+ <p>
1416
+ depend on a <span class='object_link'><a href="" title="Bunchr::Software (class)">Bunchr::Software</a></span> object to be built and installed
1417
+ </p>
1418
+
1419
+
1420
+ </div>
1421
+ </div>
1422
+ <div class="tags">
1423
+
1424
+
1425
+ </div><table class="source_code">
1426
+ <tr>
1427
+ <td>
1428
+ <pre class="lines">
1429
+
1430
+
1431
+ 147
1432
+ 148
1433
+ 149
1434
+ 150
1435
+ 151
1436
+ 152
1437
+ 153</pre>
1438
+ </td>
1439
+ <td>
1440
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 147</span>
1441
+
1442
+ <span class='kw'>def</span> <span class='id identifier rubyid_depends_on'>depends_on</span><span class='lparen'>(</span><span class='id identifier rubyid_dependency'>dependency</span><span class='rparen'>)</span>
1443
+ <span class='id identifier rubyid_namespace'>namespace</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>software</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span>
1444
+ <span class='id identifier rubyid_namespace'>namespace</span> <span class='id identifier rubyid_name'>name</span> <span class='kw'>do</span>
1445
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:build</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>software:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dependency'>dependency</span><span class='rbrace'>}</span><span class='tstring_content'>:done</span><span class='tstring_end'>&quot;</span></span>
1446
+ <span class='kw'>end</span>
1447
+ <span class='kw'>end</span>
1448
+ <span class='kw'>end</span></pre>
1449
+ </td>
1450
+ </tr>
1451
+ </table>
1452
+ </div>
1453
+
1454
+ <div class="method_details ">
1455
+ <p class="signature " id="dotfile-instance_method">
1456
+
1457
+ - (<tt>Object</tt>) <strong>dotfile</strong>(name)
1458
+
1459
+
1460
+
1461
+ </p><table class="source_code">
1462
+ <tr>
1463
+ <td>
1464
+ <pre class="lines">
1465
+
1466
+
1467
+ 155
1468
+ 156
1469
+ 157</pre>
1470
+ </td>
1471
+ <td>
1472
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 155</span>
1473
+
1474
+ <span class='kw'>def</span> <span class='id identifier rubyid_dotfile'>dotfile</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1475
+ <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_download_dir'>download_dir</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1476
+ <span class='kw'>end</span></pre>
1477
+ </td>
1478
+ </tr>
1479
+ </table>
1480
+ </div>
1481
+
1482
+ <div class="method_details ">
1483
+ <p class="signature " id="dotfile!-instance_method">
1484
+
1485
+ - (<tt>Object</tt>) <strong>dotfile!</strong>(name)
1486
+
1487
+
1488
+
1489
+ </p><table class="source_code">
1490
+ <tr>
1491
+ <td>
1492
+ <pre class="lines">
1493
+
1494
+
1495
+ 159
1496
+ 160
1497
+ 161</pre>
1498
+ </td>
1499
+ <td>
1500
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 159</span>
1501
+
1502
+ <span class='kw'>def</span> <span class='id identifier rubyid_dotfile!'>dotfile!</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1503
+ <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_dotfile'>dotfile</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_puts'>puts</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='rbrace'>}</span>
1504
+ <span class='kw'>end</span></pre>
1505
+ </td>
1506
+ </tr>
1507
+ </table>
1508
+ </div>
1509
+
1510
+ <div class="method_details ">
1511
+ <p class="signature " id="download-instance_method">
1512
+
1513
+ - (<tt>Object</tt>) <strong>download</strong>
1514
+
1515
+
1516
+
1517
+ </p><div class="docstring">
1518
+ <div class="discussion">
1519
+ <p>
1520
+ Execute all the build commands
1521
+ </p>
1522
+
1523
+
1524
+ </div>
1525
+ </div>
1526
+ <div class="tags">
1527
+
1528
+
1529
+ </div><table class="source_code">
1530
+ <tr>
1531
+ <td>
1532
+ <pre class="lines">
1533
+
1534
+
1535
+ 126
1536
+ 127
1537
+ 128
1538
+ 129
1539
+ 130</pre>
1540
+ </td>
1541
+ <td>
1542
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 126</span>
1543
+
1544
+ <span class='kw'>def</span> <span class='id identifier rubyid_download'>download</span>
1545
+ <span class='id identifier rubyid_download_commands'>download_commands</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_cmd'>cmd</span><span class='op'>|</span>
1546
+ <span class='id identifier rubyid_sh'>sh</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_download_environment'>download_environment</span><span class='comma'>,</span> <span class='id identifier rubyid_download_dir'>download_dir</span><span class='rparen'>)</span>
1547
+ <span class='kw'>end</span>
1548
+ <span class='kw'>end</span></pre>
1549
+ </td>
1550
+ </tr>
1551
+ </table>
1552
+ </div>
1553
+
1554
+ <div class="method_details ">
1555
+ <p class="signature " id="download_dir-instance_method">
1556
+
1557
+ - (<tt>Object</tt>) <strong>download_dir</strong>
1558
+
1559
+
1560
+
1561
+ </p><table class="source_code">
1562
+ <tr>
1563
+ <td>
1564
+ <pre class="lines">
1565
+
1566
+
1567
+ 29
1568
+ 30
1569
+ 31</pre>
1570
+ </td>
1571
+ <td>
1572
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 29</span>
1573
+
1574
+ <span class='kw'>def</span> <span class='id identifier rubyid_download_dir'>download_dir</span>
1575
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='const'>Bunchr</span><span class='period'>.</span><span class='id identifier rubyid_build_dir'>build_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1576
+ <span class='kw'>end</span></pre>
1577
+ </td>
1578
+ </tr>
1579
+ </table>
1580
+ </div>
1581
+
1582
+ <div class="method_details ">
1583
+ <p class="signature " id="install-instance_method">
1584
+
1585
+ - (<tt>Object</tt>) <strong>install</strong>
1586
+
1587
+
1588
+
1589
+ </p><div class="docstring">
1590
+ <div class="discussion">
1591
+ <p>
1592
+ Execute all the install commands
1593
+ </p>
1594
+
1595
+
1596
+ </div>
1597
+ </div>
1598
+ <div class="tags">
1599
+
1600
+
1601
+ </div><table class="source_code">
1602
+ <tr>
1603
+ <td>
1604
+ <pre class="lines">
1605
+
1606
+
1607
+ 140
1608
+ 141
1609
+ 142
1610
+ 143
1611
+ 144</pre>
1612
+ </td>
1613
+ <td>
1614
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 140</span>
1615
+
1616
+ <span class='kw'>def</span> <span class='id identifier rubyid_install'>install</span>
1617
+ <span class='id identifier rubyid_install_commands'>install_commands</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_cmd'>cmd</span><span class='op'>|</span>
1618
+ <span class='id identifier rubyid_sh'>sh</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_install_environment'>install_environment</span><span class='comma'>,</span> <span class='id identifier rubyid_work_dir'>work_dir</span><span class='rparen'>)</span>
1619
+ <span class='kw'>end</span>
1620
+ <span class='kw'>end</span></pre>
1621
+ </td>
1622
+ </tr>
1623
+ </table>
1624
+ </div>
1625
+
1626
+ <div class="method_details ">
1627
+ <p class="signature " id="work_dir-instance_method">
1628
+
1629
+ - (<tt>Object</tt>) <strong>work_dir</strong>
1630
+
1631
+
1632
+
1633
+ </p><div class="docstring">
1634
+ <div class="discussion">
1635
+ <p>
1636
+ The directory this task unpacks into
1637
+ </p>
1638
+
1639
+
1640
+ </div>
1641
+ </div>
1642
+ <div class="tags">
1643
+
1644
+
1645
+ </div><table class="source_code">
1646
+ <tr>
1647
+ <td>
1648
+ <pre class="lines">
1649
+
1650
+
1651
+ 34
1652
+ 35
1653
+ 36</pre>
1654
+ </td>
1655
+ <td>
1656
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 34</span>
1657
+
1658
+ <span class='kw'>def</span> <span class='id identifier rubyid_work_dir'>work_dir</span>
1659
+ <span class='ivar'>@work_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_download_dir'>download_dir</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='id identifier rubyid_version'>version</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_version'>version</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1660
+ <span class='kw'>end</span></pre>
1661
+ </td>
1662
+ </tr>
1663
+ </table>
1664
+ </div>
1665
+
1666
+ <div class="method_details ">
1667
+ <p class="signature " id="work_dir=-instance_method">
1668
+
1669
+ - (<tt>Object</tt>) <strong>work_dir=</strong>(pd)
1670
+
1671
+
1672
+
1673
+ </p><div class="docstring">
1674
+ <div class="discussion">
1675
+ <p>
1676
+ override the directory that the local source unpacks into if it is not
1677
+ <tt>name-version</tt>. If pd is an absolute path, use it. Otherwise,
1678
+ prepend with @download_dir.
1679
+ </p>
1680
+
1681
+
1682
+ </div>
1683
+ </div>
1684
+ <div class="tags">
1685
+
1686
+
1687
+ </div><table class="source_code">
1688
+ <tr>
1689
+ <td>
1690
+ <pre class="lines">
1691
+
1692
+
1693
+ 41
1694
+ 42
1695
+ 43
1696
+ 44
1697
+ 45
1698
+ 46
1699
+ 47</pre>
1700
+ </td>
1701
+ <td>
1702
+ <pre class="code"><span class="info file"># File 'lib/bunchr/software.rb', line 41</span>
1703
+
1704
+ <span class='kw'>def</span> <span class='id identifier rubyid_work_dir='>work_dir=</span><span class='lparen'>(</span><span class='id identifier rubyid_pd'>pd</span><span class='rparen'>)</span>
1705
+ <span class='kw'>if</span> <span class='id identifier rubyid_pd'>pd</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^\/</span><span class='regexp_end'>/</span></span>
1706
+ <span class='ivar'>@work_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_pd'>pd</span>
1707
+ <span class='kw'>else</span>
1708
+ <span class='ivar'>@work_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_download_dir'>download_dir</span><span class='comma'>,</span> <span class='id identifier rubyid_pd'>pd</span><span class='rparen'>)</span>
1709
+ <span class='kw'>end</span>
1710
+ <span class='kw'>end</span></pre>
1711
+ </td>
1712
+ </tr>
1713
+ </table>
1714
+ </div>
1715
+
1716
+ </div>
1717
+
1718
+ </div>
1719
+
1720
+ <div id="footer">
1721
+ Generated on Wed Apr 18 17:18:48 2012 by
1722
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1723
+ 0.7.5 (ruby-1.9.2).
1724
+ </div>
1725
+
1726
+ </body>
1727
+ </html>