linux-tools 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.buildpath +5 -0
  2. data/.document +5 -0
  3. data/.project +17 -0
  4. data/.yardoc/checksums +1 -0
  5. data/.yardoc/objects/root.dat +0 -0
  6. data/.yardoc/proxy_types +2 -0
  7. data/Gemfile +13 -0
  8. data/Gemfile.lock +20 -0
  9. data/LICENSE.txt +20 -0
  10. data/README.rdoc +23 -0
  11. data/Rakefile +53 -0
  12. data/VERSION +1 -0
  13. data/coverage/index.html +106 -0
  14. data/coverage/jquery-1.3.2.min.js +19 -0
  15. data/coverage/jquery.tablesorter.min.js +15 -0
  16. data/coverage/lib-linux-tools_rb.html +495 -0
  17. data/coverage/print.css +12 -0
  18. data/coverage/rcov.js +42 -0
  19. data/coverage/screen.css +270 -0
  20. data/doc/Lt.html +1009 -0
  21. data/doc/_index.html +98 -0
  22. data/doc/class_list.html +36 -0
  23. data/doc/css/common.css +1 -0
  24. data/doc/css/full_list.css +53 -0
  25. data/doc/css/style.css +318 -0
  26. data/doc/file.LICENSE.html +73 -0
  27. data/doc/file.README.html +90 -0
  28. data/doc/file_list.html +41 -0
  29. data/doc/frames.html +13 -0
  30. data/doc/index.html +90 -0
  31. data/doc/js/app.js +203 -0
  32. data/doc/js/full_list.js +149 -0
  33. data/doc/js/jquery.js +16 -0
  34. data/doc/method_list.html +179 -0
  35. data/doc/top-level-namespace.html +88 -0
  36. data/lib/build +3 -0
  37. data/lib/linux-tools.rb +81 -0
  38. data/linux-tools.gemspec +104 -0
  39. data/pkg/linux-tools-0.0.0.gem +0 -0
  40. data/pkg/linux-tools-0.1.0.gem +0 -0
  41. data/pkg/lt-0.0.0.gem +0 -0
  42. data/rdoc/classes/Lt.html +553 -0
  43. data/rdoc/created.rid +1 -0
  44. data/rdoc/files/README_rdoc.html +141 -0
  45. data/rdoc/files/lib/linux-tools_rb.html +101 -0
  46. data/rdoc/fr_class_index.html +27 -0
  47. data/rdoc/fr_file_index.html +28 -0
  48. data/rdoc/fr_method_index.html +44 -0
  49. data/rdoc/index.html +24 -0
  50. data/rdoc/rdoc-style.css +208 -0
  51. data/test/helper.rb +18 -0
  52. data/test/test_linux-tools.rb +7 -0
  53. metadata +177 -0
@@ -0,0 +1,12 @@
1
+ /* Hide controls */
2
+
3
+ body {
4
+ color: #000000;
5
+ background-color: #ffffff;
6
+ }
7
+
8
+ /* Hide controls */
9
+
10
+ div.filters {
11
+ display: none;
12
+ }
data/coverage/rcov.js ADDED
@@ -0,0 +1,42 @@
1
+ function toggleCode( id ) {
2
+ if ( document.getElementById ) {
3
+ elem = document.getElementById( id );
4
+ } else if ( document.all ) {
5
+ elem = eval( "document.all." + id );
6
+ } else {
7
+ return false;
8
+ }
9
+
10
+ elemStyle = elem.style;
11
+
12
+ if ( elemStyle.display != "block" ) {
13
+ elemStyle.display = "block";
14
+ } else {
15
+ elemStyle.display = "none";
16
+ }
17
+
18
+ return true;
19
+ }
20
+
21
+ function restripe() {
22
+ i = 0;
23
+ $('table#report_table tbody tr').each(function(){
24
+ if (this.style.display != "none") {
25
+ i += 1;
26
+ classes = this.className.split(" ");
27
+ if ($.inArray("even",classes) != -1) {
28
+ classes.splice($.inArray("even",classes),1);
29
+ } else if ($.inArray("odd",classes) != -1) {
30
+ classes.splice($.inArray("odd",classes),1);
31
+ }
32
+ if (i % 2 === 0) {
33
+ this.className = classes.join(" ") + " odd";
34
+ } else {
35
+ this.className = classes.join(" ") + " even";
36
+ }
37
+ }
38
+ });
39
+ }
40
+
41
+ // Fix IE's lack of support for indexOf (!)
42
+ if (!Array.indexOf) { Array.prototype.indexOf = function(obj){ for(var i=0; i<this.length; i++){ if(this[i]==obj){return i;} } return -1; }}
@@ -0,0 +1,270 @@
1
+ /* @group General */
2
+
3
+ body {
4
+ font-family: Verdana, Helvetica, Arial, Sans-Serif;
5
+ font-size: 12px;
6
+ color: #4C4C4C;
7
+ background-color: #F4F2ED;
8
+ padding: 1em;
9
+ }
10
+
11
+ a:link {
12
+ color: #191919;
13
+ }
14
+
15
+ a:visited {
16
+ color: #191919;
17
+ }
18
+
19
+ pre, code {
20
+ color: #000000;
21
+ font-family: "Bitstream Vera Sans Mono","Monaco","Courier New",monospace;
22
+ font-size: 95%;
23
+ line-height: 1.3em;
24
+ margin-top: 0;
25
+ margin-bottom: 0;
26
+ padding: 0;
27
+ word-wrap: break-word;
28
+ }
29
+
30
+ h1, h2, h3, h4, h5, h6 {
31
+ margin: 0em 0em 1em 0em;
32
+ color: #666666;
33
+ }
34
+
35
+ h1 {
36
+ display: block;
37
+ font-size: 2em;
38
+ letter-spacing: -1px;
39
+ }
40
+
41
+ h2 {
42
+ margin-top: -1em;
43
+ }
44
+
45
+ fieldset {
46
+ display: inline;
47
+ border: 0px;
48
+ padding: 0px;
49
+ margin-right: 1em;
50
+ }
51
+
52
+ div.filters {
53
+ margin-bottom: 1em;
54
+ }
55
+
56
+ .hidden {
57
+ display: none;
58
+ }
59
+
60
+ /* @end */
61
+
62
+ /* @group Cross-References */
63
+
64
+ span.cross-ref-title {
65
+ font-size: 140%;
66
+ }
67
+
68
+ span.cross-ref a {
69
+ text-decoration: none;
70
+ }
71
+
72
+ span.cross-ref {
73
+ background-color:#f3f7fa;
74
+ border: 1px dashed #333;
75
+ margin: 1em;
76
+ padding: 0.5em;
77
+ overflow: hidden;
78
+ }
79
+
80
+ a.crossref-toggle {
81
+ text-decoration: none;
82
+ }
83
+
84
+ /* @end */
85
+
86
+ /* @group Report Table */
87
+
88
+ div.report_table_wrapper {
89
+ min-width: 900px;
90
+ }
91
+
92
+ table.report {
93
+ border-collapse: collapse;
94
+ border: 1px solid #666666;
95
+ width: 100%;
96
+ margin-bottom: 1em;
97
+ }
98
+
99
+ table.report tr {
100
+ line-height: 1.75em;
101
+ }
102
+
103
+ table.report th {
104
+ background: #666666;
105
+ color: #ffffff;
106
+ text-align: right;
107
+ text-transform: uppercase;
108
+ font-size: .8em;
109
+ font-weight: bold;
110
+ padding: 0em .5em;
111
+ border: 1px solid #666666;
112
+ }
113
+
114
+ table.report tfoot tr {
115
+ background: #dddddd;
116
+ font-weight: bold;
117
+ padding: .5em;
118
+ border: 1px solid #666666;
119
+ }
120
+
121
+ th.left_align, td.left_align {
122
+ text-align: left !important;
123
+ }
124
+
125
+ th.right_align, td.right_align {
126
+ text-align: right;
127
+ padding-right: 2em !important;
128
+ }
129
+
130
+ table.report th.header:hover {
131
+ cursor: pointer;
132
+ text-decoration: underline;
133
+ }
134
+
135
+ table.report th.headerSortUp:after{
136
+ content: "\25BC";
137
+ margin-left: 1em;
138
+ }
139
+
140
+ table.report th.headerSortDown:after {
141
+ content: "\25B2";
142
+ margin-left: 1em;
143
+ }
144
+
145
+ table.report tr.summary_row {
146
+ background: #cccccc;
147
+ border: 1px solid #cccccc;
148
+ }
149
+
150
+ table.report tr.summary_row td {
151
+ padding-left: .2em !important;
152
+ color: #333333;
153
+ font-weight: bold;
154
+ }
155
+
156
+ table.report td {
157
+ padding: .2em .5em .2em .5em;
158
+ }
159
+
160
+ table.report td a {
161
+ text-decoration: none;
162
+ }
163
+
164
+ table.report tbody tr:hover {
165
+ background: #cccccc !important;
166
+ }
167
+
168
+ table.report tr.summary_row td {
169
+ border-bottom: 1px solid #aaaaaa;
170
+ }
171
+
172
+ table.report tr {
173
+ background-color: #eeeeee;
174
+ }
175
+
176
+ table.report tr.odd {
177
+ background-color: #dddddd;
178
+ }
179
+
180
+ /* @end */
181
+
182
+ /* @group Percentage Graphs */
183
+
184
+ div.percent_graph_legend {
185
+ width: 5.5em;
186
+ float: left;
187
+ margin: .5em 1em .5em 0em;
188
+ height: 1em;
189
+ line-height: 1em;
190
+ }
191
+
192
+ div.percent_graph {
193
+ height: 1em;
194
+ border: #333333 1px solid;
195
+ empty-cells: show;
196
+ padding: 0px;
197
+ border-collapse: collapse;
198
+ width: 100px !important;
199
+ float: left;
200
+ margin: .5em 1em .5em 0em;
201
+ }
202
+
203
+ div.percent_graph div {
204
+ float: left;
205
+ height: 1em;
206
+ padding: 0px !important;
207
+ }
208
+
209
+ div.percent_graph div.covered {
210
+ background: #649632;
211
+ }
212
+
213
+ div.percent_graph div.uncovered {
214
+ background: #a92730;
215
+ }
216
+
217
+ div.percent_graph div.NA {
218
+ background: #eaeaea;
219
+ }
220
+
221
+ /* @end */
222
+
223
+ /* @group Details page */
224
+
225
+ table.details {
226
+ margin-top: 1em;
227
+ border-collapse: collapse;
228
+ width: 100%;
229
+ border: 1px solid #666666;
230
+ }
231
+
232
+ table.details tr {
233
+ line-height: 1.75em;
234
+ }
235
+
236
+ table.details td {
237
+ padding: .25em;
238
+ }
239
+
240
+ span.inferred, span.inferred1, span.marked, span.marked1, span.uncovered, span.uncovered1 {
241
+ display: block;
242
+ padding: .25em;
243
+ }
244
+
245
+ tr.inferred td, span.inferred {
246
+ background-color: #e0dedb;
247
+ }
248
+
249
+ tr.inferred1 td, span.inferred1 {
250
+ background-color: #e0dedb;
251
+ }
252
+
253
+ tr.marked td, span.marked, span.marked1 {
254
+ background-color: #bed2be;
255
+ }
256
+
257
+ tr.uncovered td, span.uncovered {
258
+ background-color: #ce8b8c;
259
+ }
260
+
261
+ tr.uncovered1 td, span.uncovered1 {
262
+ background-color: #ce8b8c;
263
+ }
264
+
265
+ div.key {
266
+ border: 1px solid #666666;
267
+ margin: 1em 0em;
268
+ }
269
+
270
+ /* @end */
data/doc/Lt.html ADDED
@@ -0,0 +1,1009 @@
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=en_in" />
6
+ <title>Class: Lt</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="_index.html">Index (L)</a> &raquo;
27
+
28
+
29
+ <span class="title">Lt</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Class: Lt
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName">Object</span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">Lt</li>
62
+
63
+ </ul>
64
+ <a href="#" class="inheritanceTree">show all</a>
65
+
66
+ </dd>
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r2 last">Defined in:</dt>
77
+ <dd class="r2 last">lib/linux-tools.rb</dd>
78
+
79
+ </dl>
80
+ <div class="clear"></div>
81
+
82
+
83
+
84
+
85
+
86
+ <h2>
87
+ Class Method Summary
88
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
89
+ </h2>
90
+
91
+ <ul class="summary">
92
+
93
+ <li class="public ">
94
+ <span class="summary_signature">
95
+
96
+ <a href="#cat-class_method" title="cat (class method)">+ (Object) <strong>cat</strong> </a>
97
+
98
+
99
+
100
+ </span>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <span class="summary_desc"><div class='inline'></div></span>
110
+
111
+ </li>
112
+
113
+
114
+ <li class="public ">
115
+ <span class="summary_signature">
116
+
117
+ <a href="#cd-class_method" title="cd (class method)">+ (Object) <strong>cd</strong> </a>
118
+
119
+
120
+
121
+ </span>
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+ <span class="summary_desc"><div class='inline'></div></span>
131
+
132
+ </li>
133
+
134
+
135
+ <li class="public ">
136
+ <span class="summary_signature">
137
+
138
+ <a href="#chmod-class_method" title="chmod (class method)">+ (Object) <strong>chmod</strong> </a>
139
+
140
+
141
+
142
+ </span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+ <span class="summary_desc"><div class='inline'></div></span>
152
+
153
+ </li>
154
+
155
+
156
+ <li class="public ">
157
+ <span class="summary_signature">
158
+
159
+ <a href="#cp-class_method" title="cp (class method)">+ (Object) <strong>cp</strong> </a>
160
+
161
+
162
+
163
+ </span>
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+ <span class="summary_desc"><div class='inline'></div></span>
173
+
174
+ </li>
175
+
176
+
177
+ <li class="public ">
178
+ <span class="summary_signature">
179
+
180
+ <a href="#date-class_method" title="date (class method)">+ (Object) <strong>date</strong> </a>
181
+
182
+
183
+
184
+ </span>
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="summary_desc"><div class='inline'></div></span>
194
+
195
+ </li>
196
+
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#df-class_method" title="df (class method)">+ (Object) <strong>df</strong> </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+ <span class="summary_desc"><div class='inline'></div></span>
215
+
216
+ </li>
217
+
218
+
219
+ <li class="public ">
220
+ <span class="summary_signature">
221
+
222
+ <a href="#du-class_method" title="du (class method)">+ (Object) <strong>du</strong> </a>
223
+
224
+
225
+
226
+ </span>
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+ <span class="summary_desc"><div class='inline'></div></span>
236
+
237
+ </li>
238
+
239
+
240
+ <li class="public ">
241
+ <span class="summary_signature">
242
+
243
+ <a href="#kill-class_method" title="kill (class method)">+ (Object) <strong>kill</strong> </a>
244
+
245
+
246
+
247
+ </span>
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+ <span class="summary_desc"><div class='inline'></div></span>
257
+
258
+ </li>
259
+
260
+
261
+ <li class="public ">
262
+ <span class="summary_signature">
263
+
264
+ <a href="#ls-class_method" title="ls (class method)">+ (Object) <strong>ls</strong> </a>
265
+
266
+
267
+
268
+ </span>
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+ <span class="summary_desc"><div class='inline'></div></span>
278
+
279
+ </li>
280
+
281
+
282
+ <li class="public ">
283
+ <span class="summary_signature">
284
+
285
+ <a href="#mkdir-class_method" title="mkdir (class method)">+ (Object) <strong>mkdir</strong> </a>
286
+
287
+
288
+
289
+ </span>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+ <span class="summary_desc"><div class='inline'></div></span>
299
+
300
+ </li>
301
+
302
+
303
+ <li class="public ">
304
+ <span class="summary_signature">
305
+
306
+ <a href="#mv-class_method" title="mv (class method)">+ (Object) <strong>mv</strong> </a>
307
+
308
+
309
+
310
+ </span>
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+ <span class="summary_desc"><div class='inline'></div></span>
320
+
321
+ </li>
322
+
323
+
324
+ <li class="public ">
325
+ <span class="summary_signature">
326
+
327
+ <a href="#passwd-class_method" title="passwd (class method)">+ (Object) <strong>passwd</strong> </a>
328
+
329
+
330
+
331
+ </span>
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+ <span class="summary_desc"><div class='inline'></div></span>
341
+
342
+ </li>
343
+
344
+
345
+ <li class="public ">
346
+ <span class="summary_signature">
347
+
348
+ <a href="#ps-class_method" title="ps (class method)">+ (Object) <strong>ps</strong> </a>
349
+
350
+
351
+
352
+ </span>
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+ <span class="summary_desc"><div class='inline'></div></span>
362
+
363
+ </li>
364
+
365
+
366
+ <li class="public ">
367
+ <span class="summary_signature">
368
+
369
+ <a href="#pwd-class_method" title="pwd (class method)">+ (Object) <strong>pwd</strong> </a>
370
+
371
+
372
+
373
+ </span>
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+ <span class="summary_desc"><div class='inline'></div></span>
383
+
384
+ </li>
385
+
386
+
387
+ <li class="public ">
388
+ <span class="summary_signature">
389
+
390
+ <a href="#rm-class_method" title="rm (class method)">+ (Object) <strong>rm</strong> </a>
391
+
392
+
393
+
394
+ </span>
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+ <span class="summary_desc"><div class='inline'></div></span>
404
+
405
+ </li>
406
+
407
+
408
+ <li class="public ">
409
+ <span class="summary_signature">
410
+
411
+ <a href="#rmdir-class_method" title="rmdir (class method)">+ (Object) <strong>rmdir</strong> </a>
412
+
413
+
414
+
415
+ </span>
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+ <span class="summary_desc"><div class='inline'></div></span>
425
+
426
+ </li>
427
+
428
+
429
+ <li class="public ">
430
+ <span class="summary_signature">
431
+
432
+ <a href="#who-class_method" title="who (class method)">+ (Object) <strong>who</strong> </a>
433
+
434
+
435
+
436
+ </span>
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+ <span class="summary_desc"><div class='inline'></div></span>
446
+
447
+ </li>
448
+
449
+
450
+ <li class="public ">
451
+ <span class="summary_signature">
452
+
453
+ <a href="#whoami-class_method" title="whoami (class method)">+ (Object) <strong>whoami</strong> </a>
454
+
455
+
456
+
457
+ </span>
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+ <span class="summary_desc"><div class='inline'></div></span>
467
+
468
+ </li>
469
+
470
+
471
+ </ul>
472
+
473
+
474
+
475
+
476
+ <div id="class_method_details" class="method_details_list">
477
+ <h2>Class Method Details</h2>
478
+
479
+
480
+ <div class="method_details first">
481
+ <p class="signature first" id="cat-class_method">
482
+
483
+ + (<tt>Object</tt>) <strong>cat</strong>
484
+
485
+
486
+
487
+ </p><table class="source_code">
488
+ <tr>
489
+ <td>
490
+ <pre class="lines">
491
+
492
+
493
+ 12
494
+ 13
495
+ 14
496
+ 15
497
+ 16</pre>
498
+ </td>
499
+ <td>
500
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 12</span>
501
+
502
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='cat identifier id'>cat</span>
503
+ <span class='puts identifier id'>puts</span> <span class='string val'>&quot;please enter the filename&quot;</span>
504
+ <span class='file identifier id'>file</span> <span class='assign token'>=</span> <span class='gets identifier id'>gets</span>
505
+ <span class='system identifier id'>system</span><span class='lparen token'>(</span><span class='string val'>&quot;cat &quot;</span><span class='plus op'>+</span><span class='file identifier id'>file</span><span class='rparen token'>)</span>
506
+ <span class='end end kw'>end</span>
507
+ </pre>
508
+ </td>
509
+ </tr>
510
+ </table>
511
+ </div>
512
+
513
+ <div class="method_details ">
514
+ <p class="signature " id="cd-class_method">
515
+
516
+ + (<tt>Object</tt>) <strong>cd</strong>
517
+
518
+
519
+
520
+ </p><table class="source_code">
521
+ <tr>
522
+ <td>
523
+ <pre class="lines">
524
+
525
+
526
+ 6
527
+ 7
528
+ 8
529
+ 9
530
+ 10</pre>
531
+ </td>
532
+ <td>
533
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 6</span>
534
+
535
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='cd identifier id'>cd</span>
536
+ <span class='puts identifier id'>puts</span> <span class='string val'>&quot;this function is currently not operational&quot;</span>
537
+ <span class='dir identifier id'>dir</span> <span class='assign token'>=</span> <span class='gets identifier id'>gets</span>
538
+ <span class='system identifier id'>system</span><span class='lparen token'>(</span><span class='string val'>&quot;cd &quot;</span><span class='plus op'>+</span><span class='dir identifier id'>dir</span><span class='rparen token'>)</span>
539
+ <span class='end end kw'>end</span>
540
+ </pre>
541
+ </td>
542
+ </tr>
543
+ </table>
544
+ </div>
545
+
546
+ <div class="method_details ">
547
+ <p class="signature " id="chmod-class_method">
548
+
549
+ + (<tt>Object</tt>) <strong>chmod</strong>
550
+
551
+
552
+
553
+ </p><table class="source_code">
554
+ <tr>
555
+ <td>
556
+ <pre class="lines">
557
+
558
+
559
+ 18
560
+ 19
561
+ 20
562
+ 21
563
+ 22
564
+ 23</pre>
565
+ </td>
566
+ <td>
567
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 18</span>
568
+
569
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='chmod identifier id'>chmod</span>
570
+ <span class='puts identifier id'>puts</span> <span class='string val'>&quot;Please enter the mode and the file/directory name(777 /some/directory)&quot;</span>
571
+ <span class='file identifier id'>file</span> <span class='assign token'>=</span> <span class='gets identifier id'>gets</span>
572
+
573
+ <span class='system identifier id'>system</span><span class='lparen token'>(</span><span class='string val'>&quot;chmod &quot;</span><span class='plus op'>+</span><span class='mode identifier id'>mode</span><span class='plus op'>+</span><span class='string val'>&quot; &quot;</span><span class='plus op'>+</span><span class='file identifier id'>file</span><span class='rparen token'>)</span>
574
+ <span class='end end kw'>end</span>
575
+ </pre>
576
+ </td>
577
+ </tr>
578
+ </table>
579
+ </div>
580
+
581
+ <div class="method_details ">
582
+ <p class="signature " id="cp-class_method">
583
+
584
+ + (<tt>Object</tt>) <strong>cp</strong>
585
+
586
+
587
+
588
+ </p><table class="source_code">
589
+ <tr>
590
+ <td>
591
+ <pre class="lines">
592
+
593
+
594
+ 25
595
+ 26
596
+ 27
597
+ 28
598
+ 29</pre>
599
+ </td>
600
+ <td>
601
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 25</span>
602
+
603
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='cp identifier id'>cp</span>
604
+ <span class='puts identifier id'>puts</span> <span class='string val'>&quot;please enter the source and destination&quot;</span>
605
+ <span class='file identifier id'>file</span> <span class='assign token'>=</span> <span class='gets identifier id'>gets</span>
606
+ <span class='system identifier id'>system</span><span class='lparen token'>(</span><span class='string val'>&quot;cp &quot;</span><span class='plus op'>+</span><span class='file identifier id'>file</span><span class='rparen token'>)</span>
607
+ <span class='end end kw'>end</span>
608
+ </pre>
609
+ </td>
610
+ </tr>
611
+ </table>
612
+ </div>
613
+
614
+ <div class="method_details ">
615
+ <p class="signature " id="date-class_method">
616
+
617
+ + (<tt>Object</tt>) <strong>date</strong>
618
+
619
+
620
+
621
+ </p><table class="source_code">
622
+ <tr>
623
+ <td>
624
+ <pre class="lines">
625
+
626
+
627
+ 31
628
+ 32</pre>
629
+ </td>
630
+ <td>
631
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 31</span>
632
+
633
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='date identifier id'>date</span>
634
+ <span class='end end kw'>end</span>
635
+ </pre>
636
+ </td>
637
+ </tr>
638
+ </table>
639
+ </div>
640
+
641
+ <div class="method_details ">
642
+ <p class="signature " id="df-class_method">
643
+
644
+ + (<tt>Object</tt>) <strong>df</strong>
645
+
646
+
647
+
648
+ </p><table class="source_code">
649
+ <tr>
650
+ <td>
651
+ <pre class="lines">
652
+
653
+
654
+ 34
655
+ 35
656
+ 36</pre>
657
+ </td>
658
+ <td>
659
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 34</span>
660
+
661
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='df identifier id'>df</span>
662
+
663
+ <span class='end end kw'>end</span>
664
+ </pre>
665
+ </td>
666
+ </tr>
667
+ </table>
668
+ </div>
669
+
670
+ <div class="method_details ">
671
+ <p class="signature " id="du-class_method">
672
+
673
+ + (<tt>Object</tt>) <strong>du</strong>
674
+
675
+
676
+
677
+ </p><table class="source_code">
678
+ <tr>
679
+ <td>
680
+ <pre class="lines">
681
+
682
+
683
+ 38
684
+ 39
685
+ 40</pre>
686
+ </td>
687
+ <td>
688
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 38</span>
689
+
690
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='du identifier id'>du</span>
691
+
692
+ <span class='end end kw'>end</span>
693
+ </pre>
694
+ </td>
695
+ </tr>
696
+ </table>
697
+ </div>
698
+
699
+ <div class="method_details ">
700
+ <p class="signature " id="kill-class_method">
701
+
702
+ + (<tt>Object</tt>) <strong>kill</strong>
703
+
704
+
705
+
706
+ </p><table class="source_code">
707
+ <tr>
708
+ <td>
709
+ <pre class="lines">
710
+
711
+
712
+ 42
713
+ 43</pre>
714
+ </td>
715
+ <td>
716
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 42</span>
717
+
718
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='kill identifier id'>kill</span>
719
+ <span class='end end kw'>end</span>
720
+ </pre>
721
+ </td>
722
+ </tr>
723
+ </table>
724
+ </div>
725
+
726
+ <div class="method_details ">
727
+ <p class="signature " id="ls-class_method">
728
+
729
+ + (<tt>Object</tt>) <strong>ls</strong>
730
+
731
+
732
+
733
+ </p><table class="source_code">
734
+ <tr>
735
+ <td>
736
+ <pre class="lines">
737
+
738
+
739
+ 2
740
+ 3
741
+ 4</pre>
742
+ </td>
743
+ <td>
744
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 2</span>
745
+
746
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='ls identifier id'>ls</span>
747
+ <span class='system identifier id'>system</span><span class='lparen token'>(</span><span class='string val'>&quot;ls&quot;</span><span class='rparen token'>)</span>
748
+ <span class='end end kw'>end</span>
749
+ </pre>
750
+ </td>
751
+ </tr>
752
+ </table>
753
+ </div>
754
+
755
+ <div class="method_details ">
756
+ <p class="signature " id="mkdir-class_method">
757
+
758
+ + (<tt>Object</tt>) <strong>mkdir</strong>
759
+
760
+
761
+
762
+ </p><table class="source_code">
763
+ <tr>
764
+ <td>
765
+ <pre class="lines">
766
+
767
+
768
+ 45
769
+ 46</pre>
770
+ </td>
771
+ <td>
772
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 45</span>
773
+
774
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='mkdir identifier id'>mkdir</span>
775
+ <span class='end end kw'>end</span>
776
+ </pre>
777
+ </td>
778
+ </tr>
779
+ </table>
780
+ </div>
781
+
782
+ <div class="method_details ">
783
+ <p class="signature " id="mv-class_method">
784
+
785
+ + (<tt>Object</tt>) <strong>mv</strong>
786
+
787
+
788
+
789
+ </p><table class="source_code">
790
+ <tr>
791
+ <td>
792
+ <pre class="lines">
793
+
794
+
795
+ 48
796
+ 49</pre>
797
+ </td>
798
+ <td>
799
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 48</span>
800
+
801
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='mv identifier id'>mv</span>
802
+ <span class='end end kw'>end</span>
803
+ </pre>
804
+ </td>
805
+ </tr>
806
+ </table>
807
+ </div>
808
+
809
+ <div class="method_details ">
810
+ <p class="signature " id="passwd-class_method">
811
+
812
+ + (<tt>Object</tt>) <strong>passwd</strong>
813
+
814
+
815
+
816
+ </p><table class="source_code">
817
+ <tr>
818
+ <td>
819
+ <pre class="lines">
820
+
821
+
822
+ 51
823
+ 52</pre>
824
+ </td>
825
+ <td>
826
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 51</span>
827
+
828
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='passwd identifier id'>passwd</span>
829
+ <span class='end end kw'>end</span>
830
+ </pre>
831
+ </td>
832
+ </tr>
833
+ </table>
834
+ </div>
835
+
836
+ <div class="method_details ">
837
+ <p class="signature " id="ps-class_method">
838
+
839
+ + (<tt>Object</tt>) <strong>ps</strong>
840
+
841
+
842
+
843
+ </p><table class="source_code">
844
+ <tr>
845
+ <td>
846
+ <pre class="lines">
847
+
848
+
849
+ 54
850
+ 55</pre>
851
+ </td>
852
+ <td>
853
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 54</span>
854
+
855
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='ps identifier id'>ps</span>
856
+ <span class='end end kw'>end</span>
857
+ </pre>
858
+ </td>
859
+ </tr>
860
+ </table>
861
+ </div>
862
+
863
+ <div class="method_details ">
864
+ <p class="signature " id="pwd-class_method">
865
+
866
+ + (<tt>Object</tt>) <strong>pwd</strong>
867
+
868
+
869
+
870
+ </p><table class="source_code">
871
+ <tr>
872
+ <td>
873
+ <pre class="lines">
874
+
875
+
876
+ 57
877
+ 58</pre>
878
+ </td>
879
+ <td>
880
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 57</span>
881
+
882
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='pwd identifier id'>pwd</span>
883
+ <span class='end end kw'>end</span>
884
+ </pre>
885
+ </td>
886
+ </tr>
887
+ </table>
888
+ </div>
889
+
890
+ <div class="method_details ">
891
+ <p class="signature " id="rm-class_method">
892
+
893
+ + (<tt>Object</tt>) <strong>rm</strong>
894
+
895
+
896
+
897
+ </p><table class="source_code">
898
+ <tr>
899
+ <td>
900
+ <pre class="lines">
901
+
902
+
903
+ 60
904
+ 61</pre>
905
+ </td>
906
+ <td>
907
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 60</span>
908
+
909
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='rm identifier id'>rm</span>
910
+ <span class='end end kw'>end</span>
911
+ </pre>
912
+ </td>
913
+ </tr>
914
+ </table>
915
+ </div>
916
+
917
+ <div class="method_details ">
918
+ <p class="signature " id="rmdir-class_method">
919
+
920
+ + (<tt>Object</tt>) <strong>rmdir</strong>
921
+
922
+
923
+
924
+ </p><table class="source_code">
925
+ <tr>
926
+ <td>
927
+ <pre class="lines">
928
+
929
+
930
+ 63
931
+ 64</pre>
932
+ </td>
933
+ <td>
934
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 63</span>
935
+
936
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='rmdir identifier id'>rmdir</span>
937
+ <span class='end end kw'>end</span>
938
+ </pre>
939
+ </td>
940
+ </tr>
941
+ </table>
942
+ </div>
943
+
944
+ <div class="method_details ">
945
+ <p class="signature " id="who-class_method">
946
+
947
+ + (<tt>Object</tt>) <strong>who</strong>
948
+
949
+
950
+
951
+ </p><table class="source_code">
952
+ <tr>
953
+ <td>
954
+ <pre class="lines">
955
+
956
+
957
+ 66
958
+ 67</pre>
959
+ </td>
960
+ <td>
961
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 66</span>
962
+
963
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='who identifier id'>who</span>
964
+ <span class='end end kw'>end</span>
965
+ </pre>
966
+ </td>
967
+ </tr>
968
+ </table>
969
+ </div>
970
+
971
+ <div class="method_details ">
972
+ <p class="signature " id="whoami-class_method">
973
+
974
+ + (<tt>Object</tt>) <strong>whoami</strong>
975
+
976
+
977
+
978
+ </p><table class="source_code">
979
+ <tr>
980
+ <td>
981
+ <pre class="lines">
982
+
983
+
984
+ 69
985
+ 70</pre>
986
+ </td>
987
+ <td>
988
+ <pre class="code"><span class="info file"># File 'lib/linux-tools.rb', line 69</span>
989
+
990
+ <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='whoami identifier id'>whoami</span>
991
+ <span class='end end kw'>end</span>
992
+ </pre>
993
+ </td>
994
+ </tr>
995
+ </table>
996
+ </div>
997
+
998
+ </div>
999
+
1000
+ </div>
1001
+
1002
+ <div id="footer">
1003
+ Generated on Fri Apr 29 14:56:50 2011 by
1004
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1005
+ 0.6.8 (ruby-1.8.7).
1006
+ </div>
1007
+
1008
+ </body>
1009
+ </html>