devdnsd 3.0.8 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis-gemfile +7 -1
- data/.travis.yml +2 -2
- data/CHANGELOG.md +6 -0
- data/README.md +9 -0
- data/bin/devdnsd +23 -0
- data/doc/DevDNSd.html +1 -1
- data/doc/DevDNSd/Application.html +273 -209
- data/doc/DevDNSd/ApplicationMethods.html +1 -1
- data/doc/DevDNSd/ApplicationMethods/Aliases.html +61 -61
- data/doc/DevDNSd/ApplicationMethods/Server.html +46 -44
- data/doc/DevDNSd/ApplicationMethods/System.html +199 -17
- data/doc/DevDNSd/ApplicationMethods/System/ClassMethods.html +1 -1
- data/doc/DevDNSd/Configuration.html +1 -1
- data/doc/DevDNSd/Errors.html +1 -1
- data/doc/DevDNSd/Errors/InvalidRule.html +1 -1
- data/doc/DevDNSd/Rule.html +1 -1
- data/doc/DevDNSd/Version.html +3 -3
- data/doc/_index.html +1 -1
- data/doc/file.README.html +10 -1
- data/doc/index.html +10 -1
- data/doc/method_list.html +12 -0
- data/doc/top-level-namespace.html +1 -1
- data/lib/devdnsd/application.rb +48 -7
- data/lib/devdnsd/configuration.rb +2 -2
- data/lib/devdnsd/version.rb +2 -2
- data/locales/en.yml +8 -1
- data/locales/it.yml +8 -1
- data/spec/devdnsd/application_spec.rb +44 -2
- data/spec/devdnsd/configuration_spec.rb +1 -1
- metadata +2 -2
| @@ -116,7 +116,7 @@ | |
| 116 116 | 
             
            </div>
         | 
| 117 117 |  | 
| 118 118 | 
             
                <div id="footer">
         | 
| 119 | 
            -
              Generated on  | 
| 119 | 
            +
              Generated on Sun Mar  9 19:54:07 2014 by
         | 
| 120 120 | 
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 121 121 | 
             
              0.8.7.3 (ruby-2.1.0).
         | 
| 122 122 | 
             
            </div>
         | 
| @@ -305,13 +305,13 @@ | |
| 305 305 | 
             
                  <pre class="lines">
         | 
| 306 306 |  | 
| 307 307 |  | 
| 308 | 
            -
             | 
| 309 | 
            -
             | 
| 310 | 
            -
             | 
| 311 | 
            -
             | 
| 308 | 
            +
            406
         | 
| 309 | 
            +
            407
         | 
| 310 | 
            +
            408
         | 
| 311 | 
            +
            409</pre>
         | 
| 312 312 | 
             
                </td>
         | 
| 313 313 | 
             
                <td>
         | 
| 314 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 314 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 406</span>
         | 
| 315 315 |  | 
| 316 316 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_compute_addresses'>compute_addresses</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='symbol'>:all</span><span class='rparen'>)</span>
         | 
| 317 317 | 
             
              <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
         | 
| @@ -383,15 +383,15 @@ | |
| 383 383 | 
             
                  <pre class="lines">
         | 
| 384 384 |  | 
| 385 385 |  | 
| 386 | 
            -
             | 
| 387 | 
            -
             | 
| 388 | 
            -
             | 
| 389 | 
            -
             | 
| 390 | 
            -
             | 
| 391 | 
            -
             | 
| 386 | 
            +
            415
         | 
| 387 | 
            +
            416
         | 
| 388 | 
            +
            417
         | 
| 389 | 
            +
            418
         | 
| 390 | 
            +
            419
         | 
| 391 | 
            +
            420</pre>
         | 
| 392 392 | 
             
                </td>
         | 
| 393 393 | 
             
                <td>
         | 
| 394 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 394 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 415</span>
         | 
| 395 395 |  | 
| 396 396 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_is_ipv4?'>is_ipv4?</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
         | 
| 397 397 | 
             
              <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
         | 
| @@ -465,25 +465,25 @@ | |
| 465 465 | 
             
                  <pre class="lines">
         | 
| 466 466 |  | 
| 467 467 |  | 
| 468 | 
            -
             | 
| 469 | 
            -
             | 
| 470 | 
            -
             | 
| 471 | 
            -
             | 
| 472 | 
            -
             | 
| 473 | 
            -
             | 
| 474 | 
            -
             | 
| 475 | 
            -
             | 
| 476 | 
            -
             | 
| 477 | 
            -
             | 
| 478 | 
            -
             | 
| 479 | 
            -
             | 
| 480 | 
            -
             | 
| 481 | 
            -
             | 
| 482 | 
            -
             | 
| 483 | 
            -
             | 
| 468 | 
            +
            426
         | 
| 469 | 
            +
            427
         | 
| 470 | 
            +
            428
         | 
| 471 | 
            +
            429
         | 
| 472 | 
            +
            430
         | 
| 473 | 
            +
            431
         | 
| 474 | 
            +
            432
         | 
| 475 | 
            +
            433
         | 
| 476 | 
            +
            434
         | 
| 477 | 
            +
            435
         | 
| 478 | 
            +
            436
         | 
| 479 | 
            +
            437
         | 
| 480 | 
            +
            438
         | 
| 481 | 
            +
            439
         | 
| 482 | 
            +
            440
         | 
| 483 | 
            +
            441</pre>
         | 
| 484 484 | 
             
                </td>
         | 
| 485 485 | 
             
                <td>
         | 
| 486 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 486 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 426</span>
         | 
| 487 487 |  | 
| 488 488 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_is_ipv6?'>is_ipv6?</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
         | 
| 489 489 | 
             
              <span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
         | 
| @@ -599,24 +599,24 @@ | |
| 599 599 | 
             
                  <pre class="lines">
         | 
| 600 600 |  | 
| 601 601 |  | 
| 602 | 
            -
             | 
| 603 | 
            -
             | 
| 604 | 
            -
             | 
| 605 | 
            -
             | 
| 606 | 
            -
             | 
| 607 | 
            -
             | 
| 608 | 
            -
             | 
| 609 | 
            -
             | 
| 610 | 
            -
             | 
| 611 | 
            -
             | 
| 612 | 
            -
             | 
| 613 | 
            -
             | 
| 614 | 
            -
             | 
| 615 | 
            -
             | 
| 616 | 
            -
             | 
| 602 | 
            +
            386
         | 
| 603 | 
            +
            387
         | 
| 604 | 
            +
            388
         | 
| 605 | 
            +
            389
         | 
| 606 | 
            +
            390
         | 
| 607 | 
            +
            391
         | 
| 608 | 
            +
            392
         | 
| 609 | 
            +
            393
         | 
| 610 | 
            +
            394
         | 
| 611 | 
            +
            395
         | 
| 612 | 
            +
            396
         | 
| 613 | 
            +
            397
         | 
| 614 | 
            +
            398
         | 
| 615 | 
            +
            399
         | 
| 616 | 
            +
            400</pre>
         | 
| 617 617 | 
             
                </td>
         | 
| 618 618 | 
             
                <td>
         | 
| 619 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 619 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 386</span>
         | 
| 620 620 |  | 
| 621 621 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_manage_address'>manage_address</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_dry_run'>dry_run</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
         | 
| 622 622 | 
             
              <span class='id identifier rubyid_locale'>locale</span> <span class='op'>=</span> <span class='id identifier rubyid_i18n'>i18n</span>
         | 
| @@ -729,23 +729,23 @@ | |
| 729 729 | 
             
                  <pre class="lines">
         | 
| 730 730 |  | 
| 731 731 |  | 
| 732 | 
            -
             | 
| 733 | 
            -
             | 
| 734 | 
            -
             | 
| 735 | 
            -
             | 
| 736 | 
            -
             | 
| 737 | 
            -
             | 
| 738 | 
            -
             | 
| 739 | 
            -
             | 
| 740 | 
            -
             | 
| 741 | 
            -
             | 
| 742 | 
            -
             | 
| 743 | 
            -
             | 
| 744 | 
            -
             | 
| 745 | 
            -
             | 
| 732 | 
            +
            365
         | 
| 733 | 
            +
            366
         | 
| 734 | 
            +
            367
         | 
| 735 | 
            +
            368
         | 
| 736 | 
            +
            369
         | 
| 737 | 
            +
            370
         | 
| 738 | 
            +
            371
         | 
| 739 | 
            +
            372
         | 
| 740 | 
            +
            373
         | 
| 741 | 
            +
            374
         | 
| 742 | 
            +
            375
         | 
| 743 | 
            +
            376
         | 
| 744 | 
            +
            377
         | 
| 745 | 
            +
            378</pre>
         | 
| 746 746 | 
             
                </td>
         | 
| 747 747 | 
             
                <td>
         | 
| 748 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 748 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 365</span>
         | 
| 749 749 |  | 
| 750 750 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_manage_aliases'>manage_aliases</span><span class='lparen'>(</span><span class='id identifier rubyid_operation'>operation</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
         | 
| 751 751 | 
             
              <span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
         | 
| @@ -771,7 +771,7 @@ | |
| 771 771 | 
             
            </div>
         | 
| 772 772 |  | 
| 773 773 | 
             
                <div id="footer">
         | 
| 774 | 
            -
              Generated on  | 
| 774 | 
            +
              Generated on Sun Mar  9 19:54:07 2014 by
         | 
| 775 775 | 
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 776 776 | 
             
              0.8.7.3 (ruby-2.1.0).
         | 
| 777 777 | 
             
            </div>
         | 
| @@ -233,28 +233,30 @@ | |
| 233 233 | 
             
                  <pre class="lines">
         | 
| 234 234 |  | 
| 235 235 |  | 
| 236 | 
            -
             | 
| 237 | 
            -
             | 
| 238 | 
            -
             | 
| 239 | 
            -
             | 
| 240 | 
            -
             | 
| 241 | 
            -
             | 
| 242 | 
            -
             | 
| 243 | 
            -
             | 
| 244 | 
            -
             | 
| 245 | 
            -
             | 
| 246 | 
            -
             | 
| 247 | 
            -
             | 
| 248 | 
            -
             | 
| 249 | 
            -
             | 
| 250 | 
            -
             | 
| 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>
         | 
| 251 252 | 
             
                </td>
         | 
| 252 253 | 
             
                <td>
         | 
| 253 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 254 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 537</span>
         | 
| 254 255 |  | 
| 255 256 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_perform_server'>perform_server</span>
         | 
| 256 257 | 
             
              <span class='id identifier rubyid_application'>application</span> <span class='op'>=</span> <span class='kw'>self</span>
         | 
| 257 | 
            -
             | 
| 258 | 
            +
             | 
| 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>
         | 
| 258 260 | 
             
                <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>
         | 
| 259 261 |  | 
| 260 262 | 
             
                <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>
         | 
| @@ -361,21 +363,21 @@ | |
| 361 363 | 
             
                  <pre class="lines">
         | 
| 362 364 |  | 
| 363 365 |  | 
| 364 | 
            -
             | 
| 365 | 
            -
             | 
| 366 | 
            -
             | 
| 367 | 
            -
             | 
| 368 | 
            -
             | 
| 369 | 
            -
             | 
| 370 | 
            -
             | 
| 371 | 
            -
             | 
| 372 | 
            -
             | 
| 373 | 
            -
             | 
| 374 | 
            -
             | 
| 375 | 
            -
             | 
| 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>
         | 
| 376 378 | 
             
                </td>
         | 
| 377 379 | 
             
                <td>
         | 
| 378 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 380 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 560</span>
         | 
| 379 381 |  | 
| 380 382 | 
             
            <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>
         | 
| 381 383 | 
             
              <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>
         | 
| @@ -468,21 +470,21 @@ | |
| 468 470 | 
             
                  <pre class="lines">
         | 
| 469 471 |  | 
| 470 472 |  | 
| 471 | 
            -
             | 
| 472 | 
            -
             | 
| 473 | 
            -
             | 
| 474 | 
            -
             | 
| 475 | 
            -
             | 
| 476 | 
            -
             | 
| 477 | 
            -
             | 
| 478 | 
            -
             | 
| 479 | 
            -
             | 
| 480 | 
            -
             | 
| 481 | 
            -
             | 
| 482 | 
            -
             | 
| 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>
         | 
| 483 485 | 
             
                </td>
         | 
| 484 486 | 
             
                <td>
         | 
| 485 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 487 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 578</span>
         | 
| 486 488 |  | 
| 487 489 | 
             
            <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>
         | 
| 488 490 | 
             
              <span class='comment'># Get the subset of handled class that is valid for the rule
         | 
| @@ -506,7 +508,7 @@ | |
| 506 508 | 
             
            </div>
         | 
| 507 509 |  | 
| 508 510 | 
             
                <div id="footer">
         | 
| 509 | 
            -
              Generated on  | 
| 511 | 
            +
              Generated on Sun Mar  9 19:54:07 2014 by
         | 
| 510 512 | 
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 511 513 | 
             
              0.8.7.3 (ruby-2.1.0).
         | 
| 512 514 | 
             
            </div>
         | 
| @@ -193,6 +193,29 @@ | |
| 193 193 | 
             
                <span class="summary_desc"><div class='inline'><p>Removes aliases from an interface.</p>
         | 
| 194 194 | 
             
            </div></span>
         | 
| 195 195 |  | 
| 196 | 
            +
            </li>
         | 
| 197 | 
            +
             | 
| 198 | 
            +
                  
         | 
| 199 | 
            +
                    <li class="public ">
         | 
| 200 | 
            +
              <span class="summary_signature">
         | 
| 201 | 
            +
                
         | 
| 202 | 
            +
                  <a href="#action_restart-instance_method" title="#action_restart (instance method)">- (Boolean) <strong>action_restart</strong> </a>
         | 
| 203 | 
            +
                
         | 
| 204 | 
            +
             | 
| 205 | 
            +
                
         | 
| 206 | 
            +
              </span>
         | 
| 207 | 
            +
              
         | 
| 208 | 
            +
              
         | 
| 209 | 
            +
              
         | 
| 210 | 
            +
              
         | 
| 211 | 
            +
              
         | 
| 212 | 
            +
              
         | 
| 213 | 
            +
              
         | 
| 214 | 
            +
             | 
| 215 | 
            +
              
         | 
| 216 | 
            +
                <span class="summary_desc"><div class='inline'><p>Restarts the server in background.</p>
         | 
| 217 | 
            +
            </div></span>
         | 
| 218 | 
            +
              
         | 
| 196 219 | 
             
            </li>
         | 
| 197 220 |  | 
| 198 221 |  | 
| @@ -216,6 +239,29 @@ | |
| 216 239 | 
             
                <span class="summary_desc"><div class='inline'><p>Starts the server in background.</p>
         | 
| 217 240 | 
             
            </div></span>
         | 
| 218 241 |  | 
| 242 | 
            +
            </li>
         | 
| 243 | 
            +
             | 
| 244 | 
            +
                  
         | 
| 245 | 
            +
                    <li class="public ">
         | 
| 246 | 
            +
              <span class="summary_signature">
         | 
| 247 | 
            +
                
         | 
| 248 | 
            +
                  <a href="#action_status-instance_method" title="#action_status (instance method)">- (Boolean) <strong>action_status</strong> </a>
         | 
| 249 | 
            +
                
         | 
| 250 | 
            +
             | 
| 251 | 
            +
                
         | 
| 252 | 
            +
              </span>
         | 
| 253 | 
            +
              
         | 
| 254 | 
            +
              
         | 
| 255 | 
            +
              
         | 
| 256 | 
            +
              
         | 
| 257 | 
            +
              
         | 
| 258 | 
            +
              
         | 
| 259 | 
            +
              
         | 
| 260 | 
            +
             | 
| 261 | 
            +
              
         | 
| 262 | 
            +
                <span class="summary_desc"><div class='inline'><p>Shows the status of the server.</p>
         | 
| 263 | 
            +
            </div></span>
         | 
| 264 | 
            +
              
         | 
| 219 265 | 
             
            </li>
         | 
| 220 266 |  | 
| 221 267 |  | 
| @@ -451,12 +497,12 @@ | |
| 451 497 | 
             
                  <pre class="lines">
         | 
| 452 498 |  | 
| 453 499 |  | 
| 454 | 
            -
             | 
| 455 | 
            -
             | 
| 456 | 
            -
             | 
| 500 | 
            +
            158
         | 
| 501 | 
            +
            159
         | 
| 502 | 
            +
            160</pre>
         | 
| 457 503 | 
             
                </td>
         | 
| 458 504 | 
             
                <td>
         | 
| 459 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 505 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 158</span>
         | 
| 460 506 |  | 
| 461 507 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_action_add'>action_add</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
         | 
| 462 508 | 
             
              <span class='id identifier rubyid_manage_aliases'>manage_aliases</span><span class='lparen'>(</span><span class='symbol'>:add</span><span class='comma'>,</span> <span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_add_empty'>add_empty</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
         | 
| @@ -508,12 +554,12 @@ | |
| 508 554 | 
             
                  <pre class="lines">
         | 
| 509 555 |  | 
| 510 556 |  | 
| 511 | 
            -
             | 
| 512 | 
            -
             | 
| 513 | 
            -
             | 
| 557 | 
            +
            174
         | 
| 558 | 
            +
            175
         | 
| 559 | 
            +
            176</pre>
         | 
| 514 560 | 
             
                </td>
         | 
| 515 561 | 
             
                <td>
         | 
| 516 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 562 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 174</span>
         | 
| 517 563 |  | 
| 518 564 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_action_install'>action_install</span>
         | 
| 519 565 | 
             
              <span class='id identifier rubyid_manage_installation'>manage_installation</span><span class='lparen'>(</span><span class='id identifier rubyid_launch_agent_path'>launch_agent_path</span><span class='comma'>,</span> <span class='id identifier rubyid_resolver_path'>resolver_path</span><span class='comma'>,</span> <span class='symbol'>:create_resolver</span><span class='comma'>,</span> <span class='symbol'>:create_agent</span><span class='comma'>,</span> <span class='symbol'>:load_agent</span><span class='rparen'>)</span>
         | 
| @@ -584,12 +630,12 @@ | |
| 584 630 | 
             
                  <pre class="lines">
         | 
| 585 631 |  | 
| 586 632 |  | 
| 587 | 
            -
             | 
| 588 | 
            -
             | 
| 589 | 
            -
             | 
| 633 | 
            +
            166
         | 
| 634 | 
            +
            167
         | 
| 635 | 
            +
            168</pre>
         | 
| 590 636 | 
             
                </td>
         | 
| 591 637 | 
             
                <td>
         | 
| 592 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 638 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 166</span>
         | 
| 593 639 |  | 
| 594 640 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_action_remove'>action_remove</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
         | 
| 595 641 | 
             
              <span class='id identifier rubyid_manage_aliases'>manage_aliases</span><span class='lparen'>(</span><span class='symbol'>:remove</span><span class='comma'>,</span> <span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_remove_empty'>remove_empty</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
         | 
| @@ -597,6 +643,67 @@ | |
| 597 643 | 
             
                </td>
         | 
| 598 644 | 
             
              </tr>
         | 
| 599 645 | 
             
            </table>
         | 
| 646 | 
            +
            </div>
         | 
| 647 | 
            +
                
         | 
| 648 | 
            +
                  <div class="method_details ">
         | 
| 649 | 
            +
              <h3 class="signature " id="action_restart-instance_method">
         | 
| 650 | 
            +
              
         | 
| 651 | 
            +
                - (<tt>Boolean</tt>) <strong>action_restart</strong> 
         | 
| 652 | 
            +
              
         | 
| 653 | 
            +
             | 
| 654 | 
            +
              
         | 
| 655 | 
            +
             | 
| 656 | 
            +
              
         | 
| 657 | 
            +
            </h3><div class="docstring">
         | 
| 658 | 
            +
              <div class="discussion">
         | 
| 659 | 
            +
                <p>Restarts the server in background.</p>
         | 
| 660 | 
            +
             | 
| 661 | 
            +
             | 
| 662 | 
            +
              </div>
         | 
| 663 | 
            +
            </div>
         | 
| 664 | 
            +
            <div class="tags">
         | 
| 665 | 
            +
              
         | 
| 666 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 667 | 
            +
            <ul class="return">
         | 
| 668 | 
            +
              
         | 
| 669 | 
            +
                <li>
         | 
| 670 | 
            +
                  
         | 
| 671 | 
            +
                  
         | 
| 672 | 
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         | 
| 673 | 
            +
                  
         | 
| 674 | 
            +
                  
         | 
| 675 | 
            +
                  
         | 
| 676 | 
            +
                    —
         | 
| 677 | 
            +
                    <div class='inline'><p><code>true</code> if action succeeded, <code>false</code> otherwise.</p>
         | 
| 678 | 
            +
            </div>
         | 
| 679 | 
            +
                  
         | 
| 680 | 
            +
                </li>
         | 
| 681 | 
            +
              
         | 
| 682 | 
            +
            </ul>
         | 
| 683 | 
            +
             | 
| 684 | 
            +
            </div><table class="source_code">
         | 
| 685 | 
            +
              <tr>
         | 
| 686 | 
            +
                <td>
         | 
| 687 | 
            +
                  <pre class="lines">
         | 
| 688 | 
            +
             | 
| 689 | 
            +
             | 
| 690 | 
            +
            132
         | 
| 691 | 
            +
            133
         | 
| 692 | 
            +
            134
         | 
| 693 | 
            +
            135
         | 
| 694 | 
            +
            136</pre>
         | 
| 695 | 
            +
                </td>
         | 
| 696 | 
            +
                <td>
         | 
| 697 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 132</span>
         | 
| 698 | 
            +
             | 
| 699 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_action_restart'>action_restart</span>
         | 
| 700 | 
            +
              <span class='id identifier rubyid_action_stop'>action_stop</span>
         | 
| 701 | 
            +
              <span class='id identifier rubyid_action_start'>action_start</span>
         | 
| 702 | 
            +
              <span class='kw'>true</span>
         | 
| 703 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 704 | 
            +
                </td>
         | 
| 705 | 
            +
              </tr>
         | 
| 706 | 
            +
            </table>
         | 
| 600 707 | 
             
            </div>
         | 
| 601 708 |  | 
| 602 709 | 
             
                  <div class="method_details ">
         | 
| @@ -674,6 +781,81 @@ | |
| 674 781 | 
             
                </td>
         | 
| 675 782 | 
             
              </tr>
         | 
| 676 783 | 
             
            </table>
         | 
| 784 | 
            +
            </div>
         | 
| 785 | 
            +
                
         | 
| 786 | 
            +
                  <div class="method_details ">
         | 
| 787 | 
            +
              <h3 class="signature " id="action_status-instance_method">
         | 
| 788 | 
            +
              
         | 
| 789 | 
            +
                - (<tt>Boolean</tt>) <strong>action_status</strong> 
         | 
| 790 | 
            +
              
         | 
| 791 | 
            +
             | 
| 792 | 
            +
              
         | 
| 793 | 
            +
             | 
| 794 | 
            +
              
         | 
| 795 | 
            +
            </h3><div class="docstring">
         | 
| 796 | 
            +
              <div class="discussion">
         | 
| 797 | 
            +
                <p>Shows the status of the server</p>
         | 
| 798 | 
            +
             | 
| 799 | 
            +
             | 
| 800 | 
            +
              </div>
         | 
| 801 | 
            +
            </div>
         | 
| 802 | 
            +
            <div class="tags">
         | 
| 803 | 
            +
              
         | 
| 804 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 805 | 
            +
            <ul class="return">
         | 
| 806 | 
            +
              
         | 
| 807 | 
            +
                <li>
         | 
| 808 | 
            +
                  
         | 
| 809 | 
            +
                  
         | 
| 810 | 
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         | 
| 811 | 
            +
                  
         | 
| 812 | 
            +
                  
         | 
| 813 | 
            +
                  
         | 
| 814 | 
            +
                    —
         | 
| 815 | 
            +
                    <div class='inline'><p><code>true</code> if action succeeded, <code>false</code> otherwise.</p>
         | 
| 816 | 
            +
            </div>
         | 
| 817 | 
            +
                  
         | 
| 818 | 
            +
                </li>
         | 
| 819 | 
            +
              
         | 
| 820 | 
            +
            </ul>
         | 
| 821 | 
            +
             | 
| 822 | 
            +
            </div><table class="source_code">
         | 
| 823 | 
            +
              <tr>
         | 
| 824 | 
            +
                <td>
         | 
| 825 | 
            +
                  <pre class="lines">
         | 
| 826 | 
            +
             | 
| 827 | 
            +
             | 
| 828 | 
            +
            141
         | 
| 829 | 
            +
            142
         | 
| 830 | 
            +
            143
         | 
| 831 | 
            +
            144
         | 
| 832 | 
            +
            145
         | 
| 833 | 
            +
            146
         | 
| 834 | 
            +
            147
         | 
| 835 | 
            +
            148
         | 
| 836 | 
            +
            149
         | 
| 837 | 
            +
            150
         | 
| 838 | 
            +
            151
         | 
| 839 | 
            +
            152</pre>
         | 
| 840 | 
            +
                </td>
         | 
| 841 | 
            +
                <td>
         | 
| 842 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 141</span>
         | 
| 843 | 
            +
             | 
| 844 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_action_status'>action_status</span>
         | 
| 845 | 
            +
              <span class='id identifier rubyid_daemon'>daemon</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span>
         | 
| 846 | 
            +
              <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>ProcessFile</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span><span class='lparen'>(</span><span class='id identifier rubyid_daemon'>daemon</span><span class='rparen'>)</span>
         | 
| 847 | 
            +
              <span class='id identifier rubyid_pid'>pid</span> <span class='op'>=</span> <span class='const'>RExec</span><span class='op'>::</span><span class='const'>Daemon</span><span class='op'>::</span><span class='const'>ProcessFile</span><span class='period'>.</span><span class='id identifier rubyid_recall'>recall</span><span class='lparen'>(</span><span class='id identifier rubyid_daemon'>daemon</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
         | 
| 848 | 
            +
              <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'>&&</span> <span class='id identifier rubyid_daemon'>daemon</span><span class='period'>.</span><span class='id identifier rubyid_crashed?'>crashed?</span>
         | 
| 849 | 
            +
             | 
| 850 | 
            +
              <span class='kw'>if</span> <span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='symbol'>:running</span> <span class='kw'>then</span>
         | 
| 851 | 
            +
                <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_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_status_running'>status_running</span><span class='lparen'>(</span><span class='id identifier rubyid_pid'>pid</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 852 | 
            +
              <span class='kw'>elsif</span>
         | 
| 853 | 
            +
                <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_replace_markers'>replace_markers</span><span class='lparen'>(</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>status_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status'>status</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
         | 
| 854 | 
            +
              <span class='kw'>end</span>
         | 
| 855 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 856 | 
            +
                </td>
         | 
| 857 | 
            +
              </tr>
         | 
| 858 | 
            +
            </table>
         | 
| 677 859 | 
             
            </div>
         | 
| 678 860 |  | 
| 679 861 | 
             
                  <div class="method_details ">
         | 
| @@ -777,12 +959,12 @@ | |
| 777 959 | 
             
                  <pre class="lines">
         | 
| 778 960 |  | 
| 779 961 |  | 
| 780 | 
            -
             | 
| 781 | 
            -
             | 
| 782 | 
            -
             | 
| 962 | 
            +
            181
         | 
| 963 | 
            +
            182
         | 
| 964 | 
            +
            183</pre>
         | 
| 783 965 | 
             
                </td>
         | 
| 784 966 | 
             
                <td>
         | 
| 785 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line  | 
| 967 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/devdnsd/application.rb', line 181</span>
         | 
| 786 968 |  | 
| 787 969 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_action_uninstall'>action_uninstall</span>
         | 
| 788 970 | 
             
              <span class='id identifier rubyid_manage_installation'>manage_installation</span><span class='lparen'>(</span><span class='id identifier rubyid_launch_agent_path'>launch_agent_path</span><span class='comma'>,</span> <span class='id identifier rubyid_resolver_path'>resolver_path</span><span class='comma'>,</span> <span class='symbol'>:delete_resolver</span><span class='comma'>,</span> <span class='symbol'>:unload_agent</span><span class='comma'>,</span> <span class='symbol'>:delete_agent</span><span class='rparen'>)</span>
         | 
| @@ -1165,7 +1347,7 @@ | |
| 1165 1347 | 
             
            </div>
         | 
| 1166 1348 |  | 
| 1167 1349 | 
             
                <div id="footer">
         | 
| 1168 | 
            -
              Generated on  | 
| 1350 | 
            +
              Generated on Sun Mar  9 19:54:07 2014 by
         | 
| 1169 1351 | 
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 1170 1352 | 
             
              0.8.7.3 (ruby-2.1.0).
         | 
| 1171 1353 | 
             
            </div>
         |