devdnsd 3.1.2 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/.rubocop.yml +82 -0
  4. data/.travis-gemfile +4 -10
  5. data/.travis.yml +11 -5
  6. data/CHANGELOG.md +11 -0
  7. data/Gemfile +9 -8
  8. data/README.md +4 -5
  9. data/Rakefile +22 -6
  10. data/bin/devdnsd +42 -36
  11. data/config/devdnsd_config.sample +11 -11
  12. data/devdnsd.gemspec +7 -6
  13. data/doc/DevDNSd.html +6 -6
  14. data/doc/DevDNSd/{ApplicationMethods/Aliases.html → Aliases.html} +96 -100
  15. data/doc/DevDNSd/Application.html +2170 -1084
  16. data/doc/DevDNSd/Configuration.html +63 -33
  17. data/doc/DevDNSd/Errors.html +3 -3
  18. data/doc/DevDNSd/Errors/InvalidRule.html +3 -3
  19. data/doc/DevDNSd/{ApplicationMethods/System.html → OSX.html} +116 -489
  20. data/doc/DevDNSd/Rule.html +448 -749
  21. data/doc/DevDNSd/{ApplicationMethods/Server.html → Server.html} +77 -73
  22. data/doc/DevDNSd/System.html +895 -0
  23. data/doc/DevDNSd/Version.html +6 -6
  24. data/doc/_index.html +28 -27
  25. data/doc/class_list.html +6 -2
  26. data/doc/file.README.html +8 -9
  27. data/doc/file_list.html +5 -1
  28. data/doc/frames.html +1 -1
  29. data/doc/index.html +8 -9
  30. data/doc/js/full_list.js +4 -1
  31. data/doc/method_list.html +106 -84
  32. data/doc/top-level-namespace.html +3 -3
  33. data/lib/devdnsd.rb +10 -8
  34. data/lib/devdnsd/aliases.rb +171 -0
  35. data/lib/devdnsd/application.rb +93 -704
  36. data/lib/devdnsd/configuration.rb +20 -11
  37. data/lib/devdnsd/errors.rb +1 -1
  38. data/lib/devdnsd/osx.rb +217 -0
  39. data/lib/devdnsd/rule.rb +65 -94
  40. data/lib/devdnsd/server.rb +118 -0
  41. data/lib/devdnsd/system.rb +102 -0
  42. data/lib/devdnsd/version.rb +3 -3
  43. data/locales/en.yml +17 -16
  44. data/locales/it.yml +17 -16
  45. data/spec/devdnsd/application_spec.rb +188 -184
  46. data/spec/devdnsd/configuration_spec.rb +2 -2
  47. data/spec/devdnsd/rule_spec.rb +33 -34
  48. data/spec/resolver_helper.rb +10 -27
  49. data/spec/spec_helper.rb +21 -7
  50. metadata +36 -21
  51. data/doc/DevDNSd/ApplicationMethods.html +0 -125
  52. data/doc/DevDNSd/ApplicationMethods/System/ClassMethods.html +0 -538
  53. data/spec/coverage_helper.rb +0 -20
@@ -4,26 +4,26 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>
7
- Module: DevDNSd::ApplicationMethods::Server
7
+ Module: DevDNSd::Server
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.4
9
+ &mdash; Documentation by YARD 0.8.7.6
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!DevDNSd/ApplicationMethods/Server.html";
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!DevDNSd/Server.html";
21
21
  </script>
22
22
 
23
23
 
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
25
 
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
27
 
28
28
 
29
29
  </head>
@@ -31,8 +31,8 @@
31
31
  <div id="header">
32
32
  <div id="menu">
33
33
 
34
- <a href="../../_index.html">Index (S)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../DevDNSd.html" title="DevDNSd (module)">DevDNSd</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../ApplicationMethods.html" title="DevDNSd::ApplicationMethods (module)">ApplicationMethods</a></span></span>
34
+ <a href="../_index.html">Index (S)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../DevDNSd.html" title="DevDNSd (module)">DevDNSd</a></span></span>
36
36
  &raquo;
37
37
  <span class="title">Server</span>
38
38
 
@@ -43,17 +43,17 @@
43
43
  <div id="search">
44
44
 
45
45
  <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
46
+ href="../class_list.html">
47
47
  Class List
48
48
  </a>
49
49
 
50
50
  <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
51
+ href="../method_list.html">
52
52
  Method List
53
53
  </a>
54
54
 
55
55
  <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
56
+ href="../file_list.html">
57
57
  File List
58
58
  </a>
59
59
 
@@ -63,7 +63,7 @@
63
63
 
64
64
  <iframe id="search_frame"></iframe>
65
65
 
66
- <div id="content"><h1>Module: DevDNSd::ApplicationMethods::Server
66
+ <div id="content"><h1>Module: DevDNSd::Server
67
67
 
68
68
 
69
69
 
@@ -78,12 +78,12 @@
78
78
 
79
79
 
80
80
  <dt class="r1">Included in:</dt>
81
- <dd class="r1"><span class='object_link'><a href="../Application.html" title="DevDNSd::Application (class)">DevDNSd::Application</a></span></dd>
81
+ <dd class="r1"><span class='object_link'><a href="Application.html" title="DevDNSd::Application (class)">Application</a></span></dd>
82
82
 
83
83
 
84
84
 
85
85
  <dt class="r2 last">Defined in:</dt>
86
- <dd class="r2 last">lib/devdnsd/application.rb</dd>
86
+ <dd class="r2 last">lib/devdnsd/server.rb</dd>
87
87
 
88
88
  </dl>
89
89
  <div class="clear"></div>
@@ -120,6 +120,8 @@
120
120
 
121
121
 
122
122
 
123
+ (also: #startup)
124
+
123
125
  </span>
124
126
 
125
127
 
@@ -198,6 +200,10 @@
198
200
 
199
201
 
200
202
 
203
+ <span class="aliases">Also known as:
204
+ <span class="names"><span id='startup-instance_method'>startup</span></span>
205
+ </span>
206
+
201
207
 
202
208
 
203
209
  </h3><div class="docstring">
@@ -233,35 +239,37 @@
233
239
  <pre class="lines">
234
240
 
235
241
 
236
- 537
237
- 538
238
- 539
239
- 540
240
- 541
241
- 542
242
- 543
243
- 544
244
- 545
245
- 546
246
- 547
247
- 548
248
- 549
249
- 550
250
- 551
251
- 552</pre>
242
+ 14
243
+ 15
244
+ 16
245
+ 17
246
+ 18
247
+ 19
248
+ 20
249
+ 21
250
+ 22
251
+ 23
252
+ 24
253
+ 25
254
+ 26
255
+ 27
256
+ 28
257
+ 29
258
+ 30</pre>
252
259
  </td>
253
260
  <td>
254
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 537</span>
261
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/server.rb', line 14</span>
255
262
 
256
263
  <span class='kw'>def</span> <span class='id identifier rubyid_perform_server'>perform_server</span>
257
264
  <span class='id identifier rubyid_application'>application</span> <span class='op'>=</span> <span class='kw'>self</span>
258
265
 
259
- <span class='const'>RubyDNS</span><span class='op'>::</span><span class='id identifier rubyid_run_server'>run_server</span><span class='lparen'>(</span><span class='label'>listen:</span> <span class='id identifier rubyid_build_listen_interfaces'>build_listen_interfaces</span><span class='rparen'>)</span> <span class='kw'>do</span>
266
+ <span class='ivar'>@server</span> <span class='op'>=</span> <span class='const'>RubyDNS</span><span class='period'>.</span><span class='id identifier rubyid_run_server'>run_server</span><span class='lparen'>(</span><span class='id identifier rubyid_server_options'>server_options</span><span class='rparen'>)</span> <span class='kw'>do</span>
260
267
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='op'>=</span> <span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span>
261
268
 
262
269
  <span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>.+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='const'>DevDNSd</span><span class='op'>::</span><span class='const'>Application</span><span class='op'>::</span><span class='const'>ANY_CLASSES</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_transaction'>transaction</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='op'>|</span>
263
- <span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_rule'>rule</span><span class='op'>|</span> <span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_process_rule_in_classes'>process_rule_in_classes</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='comment'># During debugging, wrap the inside of the block with a begin rescue and PRINT the exception because RubyDNS hides it.
264
- </span> <span class='kw'>end</span>
270
+ <span class='comment'># During debugging, wrap the inside of the block with a begin rescue and PRINT the exception because RubyDNS hides it.
271
+ </span> <span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_rule'>rule</span><span class='op'>|</span> <span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_process_rule_in_classes'>process_rule_in_classes</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
272
+ <span class='kw'>end</span>
265
273
 
266
274
  <span class='comment'># Default DNS handler and event handlers
267
275
  </span> <span class='id identifier rubyid_otherwise'>otherwise</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_transaction'>transaction</span><span class='op'>|</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='period'>.</span><span class='id identifier rubyid_failure!'>failure!</span><span class='lparen'>(</span><span class='symbol'>:NXDomain</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
@@ -299,7 +307,7 @@
299
307
  <span class='name'>rule</span>
300
308
 
301
309
 
302
- <span class='type'>(<tt><span class='object_link'><a href="../Rule.html" title="DevDNSd::Rule (class)">Rule</a></span></tt>)</span>
310
+ <span class='type'>(<tt><span class='object_link'><a href="Rule.html" title="DevDNSd::Rule (class)">Rule</a></span></tt>)</span>
303
311
 
304
312
 
305
313
 
@@ -363,32 +371,28 @@
363
371
  <pre class="lines">
364
372
 
365
373
 
366
- 560
367
- 561
368
- 562
369
- 563
370
- 564
371
- 565
372
- 566
373
- 567
374
- 568
375
- 569
376
- 570
377
- 571</pre>
374
+ 40
375
+ 41
376
+ 42
377
+ 43
378
+ 44
379
+ 45
380
+ 46
381
+ 47
382
+ 48
383
+ 49</pre>
378
384
  </td>
379
385
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 560</span>
386
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/server.rb', line 40</span>
381
387
 
382
388
  <span class='kw'>def</span> <span class='id identifier rubyid_process_rule'>process_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span>
383
389
  <span class='id identifier rubyid_reply'>reply</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='id identifier rubyid_perform_process_rule'>perform_process_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span>
384
390
  <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span><span class='lparen'>(</span><span class='id identifier rubyid_reply'>reply</span> <span class='op'>?</span> <span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_reply'>reply</span><span class='lparen'>(</span><span class='id identifier rubyid_reply'>reply</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_no_reply'>no_reply</span><span class='rparen'>)</span>
385
391
 
386
- <span class='kw'>if</span> <span class='id identifier rubyid_reply'>reply</span> <span class='kw'>then</span>
392
+ <span class='kw'>if</span> <span class='id identifier rubyid_reply'>reply</span>
387
393
  <span class='id identifier rubyid_transaction'>transaction</span><span class='period'>.</span><span class='id identifier rubyid_respond!'>respond!</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_finalize_reply'>finalize_reply</span><span class='lparen'>(</span><span class='id identifier rubyid_reply'>reply</span><span class='comma'>,</span> <span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span><span class='rparen'>)</span>
388
- <span class='kw'>elsif</span> <span class='id identifier rubyid_reply'>reply</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>FalseClass</span><span class='rparen'>)</span> <span class='kw'>then</span>
389
- <span class='kw'>false</span>
390
394
  <span class='kw'>else</span>
391
- <span class='kw'>nil</span>
395
+ <span class='id identifier rubyid_reply'>reply</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>FalseClass</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>false</span> <span class='op'>:</span> <span class='kw'>nil</span>
392
396
  <span class='kw'>end</span>
393
397
  <span class='kw'>end</span></pre>
394
398
  </td>
@@ -421,7 +425,7 @@
421
425
  <span class='name'>rule</span>
422
426
 
423
427
 
424
- <span class='type'>(<tt><span class='object_link'><a href="../Rule.html" title="DevDNSd::Rule (class)">Rule</a></span></tt>)</span>
428
+ <span class='type'>(<tt><span class='object_link'><a href="Rule.html" title="DevDNSd::Rule (class)">Rule</a></span></tt>)</span>
425
429
 
426
430
 
427
431
 
@@ -470,31 +474,31 @@
470
474
  <pre class="lines">
471
475
 
472
476
 
473
- 578
474
- 579
475
- 580
476
- 581
477
- 582
478
- 583
479
- 584
480
- 585
481
- 586
482
- 587
483
- 588
484
- 589</pre>
477
+ 56
478
+ 57
479
+ 58
480
+ 59
481
+ 60
482
+ 61
483
+ 62
484
+ 63
485
+ 64
486
+ 65
487
+ 66
488
+ 67</pre>
485
489
  </td>
486
490
  <td>
487
- <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 578</span>
491
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/server.rb', line 56</span>
488
492
 
489
493
  <span class='kw'>def</span> <span class='id identifier rubyid_process_rule_in_classes'>process_rule_in_classes</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_match_data'>match_data</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span>
490
494
  <span class='comment'># Get the subset of handled class that is valid for the rule
491
495
  </span> <span class='id identifier rubyid_resource_classes'>resource_classes</span> <span class='op'>=</span> <span class='const'>DevDNSd</span><span class='op'>::</span><span class='const'>Application</span><span class='op'>::</span><span class='const'>ANY_CLASSES</span> <span class='op'>&amp;</span> <span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_resource_class'>resource_class</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span>
492
- <span class='id identifier rubyid_resource_classes'>resource_classes</span> <span class='op'>=</span> <span class='id identifier rubyid_resource_classes'>resource_classes</span> <span class='op'>&amp;</span> <span class='lbracket'>[</span><span class='id identifier rubyid_transaction'>transaction</span><span class='period'>.</span><span class='id identifier rubyid_resource_class'>resource_class</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='period'>.</span><span class='id identifier rubyid_resource_class'>resource_class</span> <span class='op'>!=</span> <span class='const'>DevDNSd</span><span class='op'>::</span><span class='const'>Application</span><span class='op'>::</span><span class='const'>ANY_REQUEST</span>
496
+ <span class='id identifier rubyid_resource_classes'>resource_classes</span> <span class='op'>&amp;=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_transaction'>transaction</span><span class='period'>.</span><span class='id identifier rubyid_resource_class'>resource_class</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='period'>.</span><span class='id identifier rubyid_resource_class'>resource_class</span> <span class='op'>!=</span> <span class='const'>DevDNSd</span><span class='op'>::</span><span class='const'>Application</span><span class='op'>::</span><span class='const'>ANY_REQUEST</span>
493
497
 
494
- <span class='kw'>if</span> <span class='id identifier rubyid_resource_classes'>resource_classes</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='kw'>then</span>
498
+ <span class='kw'>if</span> <span class='id identifier rubyid_resource_classes'>resource_classes</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
495
499
  <span class='id identifier rubyid_resource_classes'>resource_classes</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_resource_class'>resource_class</span><span class='op'>|</span> <span class='comment'># Now for every class
496
500
  </span> <span class='id identifier rubyid_matches'>matches</span> <span class='op'>=</span> <span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_match_host'>match_host</span><span class='lparen'>(</span><span class='id identifier rubyid_match_data'>match_data</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span>
497
- <span class='id identifier rubyid_process_rule'>process_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_resource_class'>resource_class</span><span class='comma'>,</span> <span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_is_regexp?'>is_regexp?</span> <span class='op'>?</span> <span class='id identifier rubyid_matches'>matches</span> <span class='op'>:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_matches'>matches</span>
501
+ <span class='id identifier rubyid_process_rule'>process_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_resource_class'>resource_class</span><span class='comma'>,</span> <span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_regexp?'>regexp?</span> <span class='op'>?</span> <span class='id identifier rubyid_matches'>matches</span> <span class='op'>:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_transaction'>transaction</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_matches'>matches</span>
498
502
  <span class='kw'>end</span>
499
503
  <span class='kw'>end</span>
500
504
  <span class='kw'>end</span></pre>
@@ -508,9 +512,9 @@
508
512
  </div>
509
513
 
510
514
  <div id="footer">
511
- Generated on Sat Mar 29 11:53:13 2014 by
515
+ Generated on Wed Mar 30 19:23:43 2016 by
512
516
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
513
- 0.8.7.4 (ruby-2.1.0).
517
+ 0.8.7.6 (ruby-2.3.0).
514
518
  </div>
515
519
 
516
520
  </body>
@@ -0,0 +1,895 @@
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
+ Module: DevDNSd::System
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!DevDNSd/System.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (S)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../DevDNSd.html" title="DevDNSd (module)">DevDNSd</a></span></span>
36
+ &raquo;
37
+ <span class="title">System</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: DevDNSd::System
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+ <dt class="r1">Extended by:</dt>
77
+ <dd class="r1">ActiveSupport::Concern</dd>
78
+
79
+
80
+
81
+
82
+
83
+
84
+ <dt class="r2">Included in:</dt>
85
+ <dd class="r2"><span class='object_link'><a href="Application.html" title="DevDNSd::Application (class)">Application</a></span></dd>
86
+
87
+
88
+
89
+ <dt class="r1 last">Defined in:</dt>
90
+ <dd class="r1 last">lib/devdnsd/system.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+ <p>System management methods.</p>
98
+
99
+
100
+ </div>
101
+ </div>
102
+ <div class="tags">
103
+
104
+
105
+ </div>
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <h2>
114
+ Instance Method Summary
115
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
116
+ </h2>
117
+
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#action_restart-instance_method" title="#action_restart (instance method)">- (Boolean) <strong>action_restart</strong> </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ <span class="summary_desc"><div class='inline'><p>Restarts the server in background.</p>
138
+ </div></span>
139
+
140
+ </li>
141
+
142
+
143
+ <li class="public ">
144
+ <span class="summary_signature">
145
+
146
+ <a href="#action_start-instance_method" title="#action_start (instance method)">- (Boolean) <strong>action_start</strong> </a>
147
+
148
+
149
+
150
+ </span>
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ <span class="summary_desc"><div class='inline'><p>Starts the server in background.</p>
161
+ </div></span>
162
+
163
+ </li>
164
+
165
+
166
+ <li class="public ">
167
+ <span class="summary_signature">
168
+
169
+ <a href="#action_status-instance_method" title="#action_status (instance method)">- (Boolean) <strong>action_status</strong> </a>
170
+
171
+
172
+
173
+ </span>
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <span class="summary_desc"><div class='inline'><p>Shows the status of the server.</p>
184
+ </div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#action_stop-instance_method" title="#action_stop (instance method)">- (Boolean) <strong>action_stop</strong> </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+ <span class="summary_desc"><div class='inline'><p>Stops the server in background.</p>
207
+ </div></span>
208
+
209
+ </li>
210
+
211
+
212
+ <li class="public ">
213
+ <span class="summary_signature">
214
+
215
+ <a href="#daemon_name-instance_method" title="#daemon_name (instance method)">- (String) <strong>daemon_name</strong> </a>
216
+
217
+
218
+
219
+ (also: #name)
220
+
221
+ </span>
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+ <span class="summary_desc"><div class='inline'><p>Returns the name of the daemon.</p>
232
+ </div></span>
233
+
234
+ </li>
235
+
236
+
237
+ <li class="public ">
238
+ <span class="summary_signature">
239
+
240
+ <a href="#log_directory-instance_method" title="#log_directory (instance method)">- (String) <strong>log_directory</strong> </a>
241
+
242
+
243
+
244
+ </span>
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+ <span class="summary_desc"><div class='inline'><p>Returns the standard location of the log file.</p>
255
+ </div></span>
256
+
257
+ </li>
258
+
259
+
260
+ <li class="public ">
261
+ <span class="summary_signature">
262
+
263
+ <a href="#log_file_path-instance_method" title="#log_file_path (instance method)">- (String) <strong>log_file_path</strong> </a>
264
+
265
+
266
+
267
+ </span>
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+ <span class="summary_desc"><div class='inline'><p>Returns the complete path of the log file.</p>
278
+ </div></span>
279
+
280
+ </li>
281
+
282
+
283
+ <li class="public ">
284
+ <span class="summary_signature">
285
+
286
+ <a href="#process_file_path-instance_method" title="#process_file_path (instance method)">- (String) <strong>process_file_path</strong> </a>
287
+
288
+
289
+
290
+ </span>
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+ <span class="summary_desc"><div class='inline'><p>Returns the complete path of the PID file.</p>
301
+ </div></span>
302
+
303
+ </li>
304
+
305
+
306
+ <li class="public ">
307
+ <span class="summary_signature">
308
+
309
+ <a href="#working_directory-instance_method" title="#working_directory (instance method)">- (String) <strong>working_directory</strong> </a>
310
+
311
+
312
+
313
+ (also: #runtime_directory)
314
+
315
+ </span>
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+ <span class="summary_desc"><div class='inline'><p>Returns the standard location of the PID file.</p>
326
+ </div></span>
327
+
328
+ </li>
329
+
330
+
331
+ </ul>
332
+
333
+
334
+
335
+
336
+
337
+ <div id="instance_method_details" class="method_details_list">
338
+ <h2>Instance Method Details</h2>
339
+
340
+
341
+ <div class="method_details first">
342
+ <h3 class="signature first" id="action_restart-instance_method">
343
+
344
+ - (<tt>Boolean</tt>) <strong>action_restart</strong>
345
+
346
+
347
+
348
+
349
+
350
+ </h3><div class="docstring">
351
+ <div class="discussion">
352
+ <p>Restarts the server in background.</p>
353
+
354
+
355
+ </div>
356
+ </div>
357
+ <div class="tags">
358
+
359
+ <p class="tag_title">Returns:</p>
360
+ <ul class="return">
361
+
362
+ <li>
363
+
364
+
365
+ <span class='type'>(<tt>Boolean</tt>)</span>
366
+
367
+
368
+
369
+ &mdash;
370
+ <div class='inline'><p><code>true</code> if action succeeded, <code>false</code> otherwise.</p>
371
+ </div>
372
+
373
+ </li>
374
+
375
+ </ul>
376
+
377
+ </div><table class="source_code">
378
+ <tr>
379
+ <td>
380
+ <pre class="lines">
381
+
382
+
383
+ 74
384
+ 75
385
+ 76
386
+ 77
387
+ 78</pre>
388
+ </td>
389
+ <td>
390
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 74</span>
391
+
392
+ <span class='kw'>def</span> <span class='id identifier rubyid_action_restart'>action_restart</span>
393
+ <span class='id identifier rubyid_action_stop'>action_stop</span>
394
+ <span class='id identifier rubyid_action_start'>action_start</span>
395
+ <span class='kw'>true</span>
396
+ <span class='kw'>end</span></pre>
397
+ </td>
398
+ </tr>
399
+ </table>
400
+ </div>
401
+
402
+ <div class="method_details ">
403
+ <h3 class="signature " id="action_start-instance_method">
404
+
405
+ - (<tt>Boolean</tt>) <strong>action_start</strong>
406
+
407
+
408
+
409
+
410
+
411
+ </h3><div class="docstring">
412
+ <div class="discussion">
413
+ <p>Starts the server in background.</p>
414
+
415
+
416
+ </div>
417
+ </div>
418
+ <div class="tags">
419
+
420
+ <p class="tag_title">Returns:</p>
421
+ <ul class="return">
422
+
423
+ <li>
424
+
425
+
426
+ <span class='type'>(<tt>Boolean</tt>)</span>
427
+
428
+
429
+
430
+ &mdash;
431
+ <div class='inline'><p><code>true</code> if action succeeded, <code>false</code> otherwise.</p>
432
+ </div>
433
+
434
+ </li>
435
+
436
+ </ul>
437
+
438
+ </div><table class="source_code">
439
+ <tr>
440
+ <td>
441
+ <pre class="lines">
442
+
443
+
444
+ 54
445
+ 55
446
+ 56
447
+ 57
448
+ 58
449
+ 59
450
+ 60
451
+ 61</pre>
452
+ </td>
453
+ <td>
454
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 54</span>
455
+
456
+ <span class='kw'>def</span> <span class='id identifier rubyid_action_start'>action_start</span>
457
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_starting'>starting</span><span class='rparen'>)</span>
458
+
459
+ <span class='id identifier rubyid_prepare_start'>prepare_start</span>
460
+
461
+ <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_foreground'>foreground</span> <span class='op'>?</span> <span class='id identifier rubyid_perform_server'>perform_server</span> <span class='op'>:</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_start'>start</span>
462
+ <span class='kw'>true</span>
463
+ <span class='kw'>end</span></pre>
464
+ </td>
465
+ </tr>
466
+ </table>
467
+ </div>
468
+
469
+ <div class="method_details ">
470
+ <h3 class="signature " id="action_status-instance_method">
471
+
472
+ - (<tt>Boolean</tt>) <strong>action_status</strong>
473
+
474
+
475
+
476
+
477
+
478
+ </h3><div class="docstring">
479
+ <div class="discussion">
480
+ <p>Shows the status of the server</p>
481
+
482
+
483
+ </div>
484
+ </div>
485
+ <div class="tags">
486
+
487
+ <p class="tag_title">Returns:</p>
488
+ <ul class="return">
489
+
490
+ <li>
491
+
492
+
493
+ <span class='type'>(<tt>Boolean</tt>)</span>
494
+
495
+
496
+
497
+ &mdash;
498
+ <div class='inline'><p><code>true</code> if action succeeded, <code>false</code> otherwise.</p>
499
+ </div>
500
+
501
+ </li>
502
+
503
+ </ul>
504
+
505
+ </div><table class="source_code">
506
+ <tr>
507
+ <td>
508
+ <pre class="lines">
509
+
510
+
511
+ 83
512
+ 84
513
+ 85
514
+ 86
515
+ 87
516
+ 88</pre>
517
+ </td>
518
+ <td>
519
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 83</span>
520
+
521
+ <span class='kw'>def</span> <span class='id identifier rubyid_action_status'>action_status</span>
522
+ <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span>
523
+ <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='symbol'>:crashed</span> <span class='kw'>if</span> <span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='symbol'>:unknown</span> <span class='op'>&amp;&amp;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_crashed?'>crashed?</span>
524
+
525
+ <span class='id identifier rubyid_log_status'>log_status</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_pid'>pid</span><span class='comma'>,</span> <span class='id identifier rubyid_status'>status</span><span class='rparen'>)</span>
526
+ <span class='kw'>end</span></pre>
527
+ </td>
528
+ </tr>
529
+ </table>
530
+ </div>
531
+
532
+ <div class="method_details ">
533
+ <h3 class="signature " id="action_stop-instance_method">
534
+
535
+ - (<tt>Boolean</tt>) <strong>action_stop</strong>
536
+
537
+
538
+
539
+
540
+
541
+ </h3><div class="docstring">
542
+ <div class="discussion">
543
+ <p>Stops the server in background.</p>
544
+
545
+
546
+ </div>
547
+ </div>
548
+ <div class="tags">
549
+
550
+ <p class="tag_title">Returns:</p>
551
+ <ul class="return">
552
+
553
+ <li>
554
+
555
+
556
+ <span class='type'>(<tt>Boolean</tt>)</span>
557
+
558
+
559
+
560
+ &mdash;
561
+ <div class='inline'><p><code>true</code> if action succeeded, <code>false</code> otherwise.</p>
562
+ </div>
563
+
564
+ </li>
565
+
566
+ </ul>
567
+
568
+ </div><table class="source_code">
569
+ <tr>
570
+ <td>
571
+ <pre class="lines">
572
+
573
+
574
+ 66
575
+ 67
576
+ 68
577
+ 69</pre>
578
+ </td>
579
+ <td>
580
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 66</span>
581
+
582
+ <span class='kw'>def</span> <span class='id identifier rubyid_action_stop'>action_stop</span>
583
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_stop'>stop</span>
584
+ <span class='kw'>true</span>
585
+ <span class='kw'>end</span></pre>
586
+ </td>
587
+ </tr>
588
+ </table>
589
+ </div>
590
+
591
+ <div class="method_details ">
592
+ <h3 class="signature " id="daemon_name-instance_method">
593
+
594
+ - (<tt>String</tt>) <strong>daemon_name</strong>
595
+
596
+
597
+
598
+ <span class="aliases">Also known as:
599
+ <span class="names"><span id='name-instance_method'>name</span></span>
600
+ </span>
601
+
602
+
603
+
604
+ </h3><div class="docstring">
605
+ <div class="discussion">
606
+ <p>Returns the name of the daemon.</p>
607
+
608
+
609
+ </div>
610
+ </div>
611
+ <div class="tags">
612
+
613
+ <p class="tag_title">Returns:</p>
614
+ <ul class="return">
615
+
616
+ <li>
617
+
618
+
619
+ <span class='type'>(<tt>String</tt>)</span>
620
+
621
+
622
+
623
+ &mdash;
624
+ <div class='inline'><p>The name of the daemon.</p>
625
+ </div>
626
+
627
+ </li>
628
+
629
+ </ul>
630
+
631
+ </div><table class="source_code">
632
+ <tr>
633
+ <td>
634
+ <pre class="lines">
635
+
636
+
637
+ 16
638
+ 17
639
+ 18</pre>
640
+ </td>
641
+ <td>
642
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 16</span>
643
+
644
+ <span class='kw'>def</span> <span class='id identifier rubyid_daemon_name'>daemon_name</span>
645
+ <span class='id identifier rubyid_config'>config</span> <span class='op'>?</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_pid_file'>pid_file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.pid</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>devdnsd</span><span class='tstring_end'>&quot;</span></span>
646
+ <span class='kw'>end</span></pre>
647
+ </td>
648
+ </tr>
649
+ </table>
650
+ </div>
651
+
652
+ <div class="method_details ">
653
+ <h3 class="signature " id="log_directory-instance_method">
654
+
655
+ - (<tt>String</tt>) <strong>log_directory</strong>
656
+
657
+
658
+
659
+
660
+
661
+ </h3><div class="docstring">
662
+ <div class="discussion">
663
+ <p>Returns the standard location of the log file.</p>
664
+
665
+
666
+ </div>
667
+ </div>
668
+ <div class="tags">
669
+
670
+ <p class="tag_title">Returns:</p>
671
+ <ul class="return">
672
+
673
+ <li>
674
+
675
+
676
+ <span class='type'>(<tt>String</tt>)</span>
677
+
678
+
679
+
680
+ &mdash;
681
+ <div class='inline'><p>The standard location of the log file.</p>
682
+ </div>
683
+
684
+ </li>
685
+
686
+ </ul>
687
+
688
+ </div><table class="source_code">
689
+ <tr>
690
+ <td>
691
+ <pre class="lines">
692
+
693
+
694
+ 47
695
+ 48
696
+ 49</pre>
697
+ </td>
698
+ <td>
699
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 47</span>
700
+
701
+ <span class='kw'>def</span> <span class='id identifier rubyid_log_directory'>log_directory</span>
702
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_log_file'>log_file</span><span class='rparen'>)</span>
703
+ <span class='kw'>end</span></pre>
704
+ </td>
705
+ </tr>
706
+ </table>
707
+ </div>
708
+
709
+ <div class="method_details ">
710
+ <h3 class="signature " id="log_file_path-instance_method">
711
+
712
+ - (<tt>String</tt>) <strong>log_file_path</strong>
713
+
714
+
715
+
716
+
717
+
718
+ </h3><div class="docstring">
719
+ <div class="discussion">
720
+ <p>Returns the complete path of the log file.</p>
721
+
722
+
723
+ </div>
724
+ </div>
725
+ <div class="tags">
726
+
727
+ <p class="tag_title">Returns:</p>
728
+ <ul class="return">
729
+
730
+ <li>
731
+
732
+
733
+ <span class='type'>(<tt>String</tt>)</span>
734
+
735
+
736
+
737
+ &mdash;
738
+ <div class='inline'><p>The complete path of the log file.</p>
739
+ </div>
740
+
741
+ </li>
742
+
743
+ </ul>
744
+
745
+ </div><table class="source_code">
746
+ <tr>
747
+ <td>
748
+ <pre class="lines">
749
+
750
+
751
+ 40
752
+ 41
753
+ 42</pre>
754
+ </td>
755
+ <td>
756
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 40</span>
757
+
758
+ <span class='kw'>def</span> <span class='id identifier rubyid_log_file_path'>log_file_path</span>
759
+ <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_log_file'>log_file</span>
760
+ <span class='kw'>end</span></pre>
761
+ </td>
762
+ </tr>
763
+ </table>
764
+ </div>
765
+
766
+ <div class="method_details ">
767
+ <h3 class="signature " id="process_file_path-instance_method">
768
+
769
+ - (<tt>String</tt>) <strong>process_file_path</strong>
770
+
771
+
772
+
773
+
774
+
775
+ </h3><div class="docstring">
776
+ <div class="discussion">
777
+ <p>Returns the complete path of the PID file.</p>
778
+
779
+
780
+ </div>
781
+ </div>
782
+ <div class="tags">
783
+
784
+ <p class="tag_title">Returns:</p>
785
+ <ul class="return">
786
+
787
+ <li>
788
+
789
+
790
+ <span class='type'>(<tt>String</tt>)</span>
791
+
792
+
793
+
794
+ &mdash;
795
+ <div class='inline'><p>The complete path of the PID file.</p>
796
+ </div>
797
+
798
+ </li>
799
+
800
+ </ul>
801
+
802
+ </div><table class="source_code">
803
+ <tr>
804
+ <td>
805
+ <pre class="lines">
806
+
807
+
808
+ 33
809
+ 34
810
+ 35</pre>
811
+ </td>
812
+ <td>
813
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 33</span>
814
+
815
+ <span class='kw'>def</span> <span class='id identifier rubyid_process_file_path'>process_file_path</span>
816
+ <span class='id identifier rubyid_config'>config</span> <span class='op'>?</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_pid_file'>pid_file</span> <span class='op'>:</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>devdnsd.pid</span><span class='tstring_end'>&quot;</span></span>
817
+ <span class='kw'>end</span></pre>
818
+ </td>
819
+ </tr>
820
+ </table>
821
+ </div>
822
+
823
+ <div class="method_details ">
824
+ <h3 class="signature " id="working_directory-instance_method">
825
+
826
+ - (<tt>String</tt>) <strong>working_directory</strong>
827
+
828
+
829
+
830
+ <span class="aliases">Also known as:
831
+ <span class="names"><span id='runtime_directory-instance_method'>runtime_directory</span></span>
832
+ </span>
833
+
834
+
835
+
836
+ </h3><div class="docstring">
837
+ <div class="discussion">
838
+ <p>Returns the standard location of the PID file.</p>
839
+
840
+
841
+ </div>
842
+ </div>
843
+ <div class="tags">
844
+
845
+ <p class="tag_title">Returns:</p>
846
+ <ul class="return">
847
+
848
+ <li>
849
+
850
+
851
+ <span class='type'>(<tt>String</tt>)</span>
852
+
853
+
854
+
855
+ &mdash;
856
+ <div class='inline'><p>The standard location of the PID file.</p>
857
+ </div>
858
+
859
+ </li>
860
+
861
+ </ul>
862
+
863
+ </div><table class="source_code">
864
+ <tr>
865
+ <td>
866
+ <pre class="lines">
867
+
868
+
869
+ 25
870
+ 26
871
+ 27</pre>
872
+ </td>
873
+ <td>
874
+ <pre class="code"><span class="info file"># File 'lib/devdnsd/system.rb', line 25</span>
875
+
876
+ <span class='kw'>def</span> <span class='id identifier rubyid_working_directory'>working_directory</span>
877
+ <span class='id identifier rubyid_config'>config</span> <span class='op'>?</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_pid_file'>pid_file</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span>
878
+ <span class='kw'>end</span></pre>
879
+ </td>
880
+ </tr>
881
+ </table>
882
+ </div>
883
+
884
+ </div>
885
+
886
+ </div>
887
+
888
+ <div id="footer">
889
+ Generated on Wed Mar 30 19:23:43 2016 by
890
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
891
+ 0.8.7.6 (ruby-2.3.0).
892
+ </div>
893
+
894
+ </body>
895
+ </html>