/usr/share/doc/mcollective-doc/Object.html is in mcollective-doc 2.6.0+dfsg-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 | <!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>class Object - mcollective version 2.6.0</title>
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
<script type="text/javascript">
var rdoc_rel_prefix = "./";
</script>
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
<body id="top" class="class">
<nav id="metadata">
<nav id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./table_of_contents.html#classes">Classes</a>
<a href="./table_of_contents.html#methods">Methods</a>
</h3>
</nav>
<nav id="search-section" class="section project-section" class="initially-hidden">
<form action="#" method="get" accept-charset="utf-8">
<h3 class="section-header">
<input type="text" name="search" placeholder="Search" id="search-field"
title="Type to search, Up and Down to navigate, Enter to load">
</h3>
</form>
<ul id="search-results" class="initially-hidden"></ul>
</nav>
<div id="file-metadata">
<nav id="file-list-section" class="section">
<h3 class="section-header">Defined In</h3>
<ul>
<li>bin/mco
<li>install.rb
<li>lib/mcollective/monkey_patches.rb
</ul>
</nav>
</div>
<div id="class-metadata">
<nav id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">BasicObject
</nav>
<!-- Included Modules -->
<nav id="includes-section" class="section">
<h3 class="section-header">Included Modules</h3>
<ul class="link-list">
<li><span class="include">FileUtils</span>
</ul>
</nav>
<!-- Method Quickref -->
<nav id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li ><a href="#method-i-build_rdoc">#build_rdoc</a>
<li ><a href="#method-i-check_prereqs">#check_prereqs</a>
<li ><a href="#method-i-do_bins">#do_bins</a>
<li ><a href="#method-i-do_configs">#do_configs</a>
<li ><a href="#method-i-do_libs">#do_libs</a>
<li ><a href="#method-i-glob">#glob</a>
<li ><a href="#method-i-install_binfile">#install_binfile</a>
<li ><a href="#method-i-prepare_installation">#prepare_installation</a>
</ul>
</nav>
</div>
<div id="project-metadata">
<nav id="fileindex-section" class="section project-section">
<h3 class="section-header">Pages</h3>
<ul>
<li class="file"><a href="./COPYING.html">COPYING</a>
<li class="file"><a href="./Gemfile.html">Gemfile</a>
<li class="file"><a href="./README.html">README</a>
<li class="file"><a href="./Rakefile.html">Rakefile</a>
<li class="file"><a href="./doc/created_rid.html">created.rid</a>
<li class="file"><a href="./etc/client_cfg_dist.html">client.cfg.dist</a>
<li class="file"><a href="./etc/facts_yaml_dist.html">facts.yaml.dist</a>
<li class="file"><a href="./etc/server_cfg_dist.html">server.cfg.dist</a>
<li class="file"><a href="./etc/ssl/PLACEHOLDER.html">PLACEHOLDER</a>
<li class="file"><a href="./etc/ssl/clients/PLACEHOLDER.html">PLACEHOLDER</a>
<li class="file"><a href="./mcollective_init.html">mcollective.init</a>
</ul>
</nav>
<nav id="classindex-section" class="section project-section">
<h3 class="section-header">Class and Module Index</h3>
<ul class="link-list">
<li><a href="./Array.html">Array</a>
<li><a href="./Dir.html">Dir</a>
<li><a href="./GetoptLong.html">GetoptLong</a>
<li><a href="./MCollective.html">MCollective</a>
<li><a href="./MCollective/Agent.html">MCollective::Agent</a>
<li><a href="./MCollective/Agents.html">MCollective::Agents</a>
<li><a href="./MCollective/Aggregate.html">MCollective::Aggregate</a>
<li><a href="./MCollective/Aggregate/Base.html">MCollective::Aggregate::Base</a>
<li><a href="./MCollective/Aggregate/Result.html">MCollective::Aggregate::Result</a>
<li><a href="./MCollective/Aggregate/Result/Base.html">MCollective::Aggregate::Result::Base</a>
<li><a href="./MCollective/Aggregate/Result/CollectionResult.html">MCollective::Aggregate::Result::CollectionResult</a>
<li><a href="./MCollective/Aggregate/Result/NumericResult.html">MCollective::Aggregate::Result::NumericResult</a>
<li><a href="./MCollective/Application.html">MCollective::Application</a>
<li><a href="./MCollective/Applications.html">MCollective::Applications</a>
<li><a href="./MCollective/BackoffSuggestion.html">MCollective::BackoffSuggestion</a>
<li><a href="./MCollective/Cache.html">MCollective::Cache</a>
<li><a href="./MCollective/Client.html">MCollective::Client</a>
<li><a href="./MCollective/Config.html">MCollective::Config</a>
<li><a href="./MCollective/Connector.html">MCollective::Connector</a>
<li><a href="./MCollective/Connector/Base.html">MCollective::Connector::Base</a>
<li><a href="./MCollective/DDL.html">MCollective::DDL</a>
<li><a href="./MCollective/DDL/AgentDDL.html">MCollective::DDL::AgentDDL</a>
<li><a href="./MCollective/DDL/Base.html">MCollective::DDL::Base</a>
<li><a href="./MCollective/DDL/DataDDL.html">MCollective::DDL::DataDDL</a>
<li><a href="./MCollective/DDL/DiscoveryDDL.html">MCollective::DDL::DiscoveryDDL</a>
<li><a href="./MCollective/DDL/ValidatorDDL.html">MCollective::DDL::ValidatorDDL</a>
<li><a href="./MCollective/DDLValidationError.html">MCollective::DDLValidationError</a>
<li><a href="./MCollective/Data.html">MCollective::Data</a>
<li><a href="./MCollective/Data/Base.html">MCollective::Data::Base</a>
<li><a href="./MCollective/Data/Result.html">MCollective::Data::Result</a>
<li><a href="./MCollective/Discovery.html">MCollective::Discovery</a>
<li><a href="./MCollective/Facts.html">MCollective::Facts</a>
<li><a href="./MCollective/Facts/Base.html">MCollective::Facts::Base</a>
<li><a href="./MCollective/Generators.html">MCollective::Generators</a>
<li><a href="./MCollective/Generators/AgentGenerator.html">MCollective::Generators::AgentGenerator</a>
<li><a href="./MCollective/Generators/Base.html">MCollective::Generators::Base</a>
<li><a href="./MCollective/Generators/DataGenerator.html">MCollective::Generators::DataGenerator</a>
<li><a href="./MCollective/InvalidRPCData.html">MCollective::InvalidRPCData</a>
<li><a href="./MCollective/Log.html">MCollective::Log</a>
<li><a href="./MCollective/Logger.html">MCollective::Logger</a>
<li><a href="./MCollective/Logger/Base.html">MCollective::Logger::Base</a>
<li><a href="./MCollective/Logger/Console_logger.html">MCollective::Logger::Console_logger</a>
<li><a href="./MCollective/Logger/File_logger.html">MCollective::Logger::File_logger</a>
<li><a href="./MCollective/Logger/Syslog_logger.html">MCollective::Logger::Syslog_logger</a>
<li><a href="./MCollective/Matcher.html">MCollective::Matcher</a>
<li><a href="./MCollective/Matcher/Parser.html">MCollective::Matcher::Parser</a>
<li><a href="./MCollective/Matcher/Scanner.html">MCollective::Matcher::Scanner</a>
<li><a href="./MCollective/Message.html">MCollective::Message</a>
<li><a href="./MCollective/MessageNotReceived.html">MCollective::MessageNotReceived</a>
<li><a href="./MCollective/MissingRPCData.html">MCollective::MissingRPCData</a>
<li><a href="./MCollective/MsgDoesNotMatchRequestID.html">MCollective::MsgDoesNotMatchRequestID</a>
<li><a href="./MCollective/MsgTTLExpired.html">MCollective::MsgTTLExpired</a>
<li><a href="./MCollective/NotTargettedAtUs.html">MCollective::NotTargettedAtUs</a>
<li><a href="./MCollective/Optionparser.html">MCollective::Optionparser</a>
<li><a href="./MCollective/PluginManager.html">MCollective::PluginManager</a>
<li><a href="./MCollective/PluginPackager.html">MCollective::PluginPackager</a>
<li><a href="./MCollective/PluginPackager/AgentDefinition.html">MCollective::PluginPackager::AgentDefinition</a>
<li><a href="./MCollective/PluginPackager/StandardDefinition.html">MCollective::PluginPackager::StandardDefinition</a>
<li><a href="./MCollective/RPC.html">MCollective::RPC</a>
<li><a href="./MCollective/RPC/ActionRunner.html">MCollective::RPC::ActionRunner</a>
<li><a href="./MCollective/RPC/Agent.html">MCollective::RPC::Agent</a>
<li><a href="./MCollective/RPC/Audit.html">MCollective::RPC::Audit</a>
<li><a href="./MCollective/RPC/Client.html">MCollective::RPC::Client</a>
<li><a href="./MCollective/RPC/Helpers.html">MCollective::RPC::Helpers</a>
<li><a href="./MCollective/RPC/Progress.html">MCollective::RPC::Progress</a>
<li><a href="./MCollective/RPC/Reply.html">MCollective::RPC::Reply</a>
<li><a href="./MCollective/RPC/Request.html">MCollective::RPC::Request</a>
<li><a href="./MCollective/RPC/Result.html">MCollective::RPC::Result</a>
<li><a href="./MCollective/RPC/Stats.html">MCollective::RPC::Stats</a>
<li><a href="./MCollective/RPCAborted.html">MCollective::RPCAborted</a>
<li><a href="./MCollective/RPCError.html">MCollective::RPCError</a>
<li><a href="./MCollective/Registration.html">MCollective::Registration</a>
<li><a href="./MCollective/Registration/Base.html">MCollective::Registration::Base</a>
<li><a href="./MCollective/Runner.html">MCollective::Runner</a>
<li><a href="./MCollective/RunnerStats.html">MCollective::RunnerStats</a>
<li><a href="./MCollective/SSL.html">MCollective::SSL</a>
<li><a href="./MCollective/Security.html">MCollective::Security</a>
<li><a href="./MCollective/Security/Base.html">MCollective::Security::Base</a>
<li><a href="./MCollective/SecurityValidationFailed.html">MCollective::SecurityValidationFailed</a>
<li><a href="./MCollective/Shell.html">MCollective::Shell</a>
<li><a href="./MCollective/UnexpectedMessageType.html">MCollective::UnexpectedMessageType</a>
<li><a href="./MCollective/UnixDaemon.html">MCollective::UnixDaemon</a>
<li><a href="./MCollective/UnknownRPCAction.html">MCollective::UnknownRPCAction</a>
<li><a href="./MCollective/UnknownRPCError.html">MCollective::UnknownRPCError</a>
<li><a href="./MCollective/Util.html">MCollective::Util</a>
<li><a href="./MCollective/Validator.html">MCollective::Validator</a>
<li><a href="./MCollective/ValidatorError.html">MCollective::ValidatorError</a>
<li><a href="./MCollective/WindowsDaemon.html">MCollective::WindowsDaemon</a>
<li><a href="./Object.html">Object</a>
<li><a href="./String.html">String</a>
<li><a href="./Symbol.html">Symbol</a>
</ul>
</nav>
</div>
</nav>
<div id="documentation">
<h1 class="class">class Object</h1>
<div id="description" class="description">
</div><!-- description -->
<section id="5Buntitled-5D" class="documentation-section">
<!-- Constants -->
<section id="constants-list" class="section">
<h3 class="section-header">Constants</h3>
<dl>
<dt id="InstallOptions">InstallOptions
<dd class="description">
<dt id="PREREQS">PREREQS
<dd class="description">
<dt id="RbConfig">RbConfig
<dd class="description">
<dt id="Version">Version
<dd class="description">
</dl>
</section>
<!-- Methods -->
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="method-i-build_rdoc" class="method-detail ">
<div class="method-heading">
<span class="method-name">build_rdoc</span><span
class="method-args">(files)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Build the rdoc documentation.</p>
<div class="method-source-code" id="build_rdoc-source">
<pre><span class="ruby-comment"># File install.rb, line 248</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_rdoc</span>(<span class="ruby-identifier">files</span>)
<span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">$haverdoc</span>
<span class="ruby-keyword">begin</span>
<span class="ruby-identifier">r</span> = <span class="ruby-constant">RDoc</span><span class="ruby-operator">::</span><span class="ruby-constant">RDoc</span>.<span class="ruby-identifier">new</span>
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">document</span>([<span class="ruby-string">"--main"</span>, <span class="ruby-string">"MCollective"</span>, <span class="ruby-string">"--line-numbers"</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">files</span>)
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">RDoc</span><span class="ruby-operator">::</span><span class="ruby-constant">RDocError</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
<span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
<span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"Couldn't build RDoc documentation\n#{e.message}"</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- build_rdoc-source -->
</div>
</div><!-- build_rdoc-method -->
<div id="method-i-check_prereqs" class="method-detail ">
<div class="method-heading">
<span class="method-name">check_prereqs</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="check_prereqs-source">
<pre><span class="ruby-comment"># File install.rb, line 65</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">check_prereqs</span>
<span class="ruby-constant">PREREQS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">pre</span><span class="ruby-operator">|</span>
<span class="ruby-keyword">begin</span>
<span class="ruby-identifier">require</span> <span class="ruby-identifier">pre</span>
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">LoadError</span>
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Could not load #{pre} Ruby library; cannot install"</span>
<span class="ruby-identifier">exit</span>(<span class="ruby-value">-1</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- check_prereqs-source -->
</div>
</div><!-- check_prereqs-method -->
<div id="method-i-do_bins" class="method-detail ">
<div class="method-heading">
<span class="method-name">do_bins</span><span
class="method-args">(bins, target, strip = 's?bin/')</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="do_bins-source">
<pre><span class="ruby-comment"># File install.rb, line 86</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">do_bins</span>(<span class="ruby-identifier">bins</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">strip</span> = <span class="ruby-string">'s?bin/'</span>)
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">target</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span> <span class="ruby-identifier">target</span>
<span class="ruby-identifier">bins</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">bf</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">obf</span> = <span class="ruby-identifier">bf</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-node">/#{strip}/</span>, <span class="ruby-string">''</span>)
<span class="ruby-identifier">install_binfile</span>(<span class="ruby-identifier">bf</span>, <span class="ruby-identifier">obf</span>, <span class="ruby-identifier">target</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- do_bins-source -->
</div>
</div><!-- do_bins-method -->
<div id="method-i-do_configs" class="method-detail ">
<div class="method-heading">
<span class="method-name">do_configs</span><span
class="method-args">(configs, target, strip = 'etc/')</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="do_configs-source">
<pre><span class="ruby-comment"># File install.rb, line 76</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">do_configs</span>(<span class="ruby-identifier">configs</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">strip</span> = <span class="ruby-string">'etc/'</span>)
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">target</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span> <span class="ruby-identifier">target</span>
<span class="ruby-identifier">configs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">cf</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">ocf</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">cf</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">strip</span>), <span class="ruby-string">''</span>))
<span class="ruby-identifier">oc</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">ocf</span>)
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">oc</span>, {<span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-value">0755</span>, <span class="ruby-value">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>})
<span class="ruby-identifier">install</span>(<span class="ruby-identifier">cf</span>, <span class="ruby-identifier">ocf</span>, {<span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-value">0644</span>, <span class="ruby-value">:preserve</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>})
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- do_configs-source -->
</div>
</div><!-- do_configs-method -->
<div id="method-i-do_libs" class="method-detail ">
<div class="method-heading">
<span class="method-name">do_libs</span><span
class="method-args">(libs, target, strip = 'lib/')</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="do_libs-source">
<pre><span class="ruby-comment"># File install.rb, line 94</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">do_libs</span>(<span class="ruby-identifier">libs</span>, <span class="ruby-identifier">target</span>, <span class="ruby-identifier">strip</span> = <span class="ruby-string">'lib/'</span>)
<span class="ruby-identifier">libs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">lf</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">olf</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">lf</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-node">/^#{strip}/</span>, <span class="ruby-string">''</span>))
<span class="ruby-identifier">op</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">olf</span>)
<span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">lf</span>)
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">olf</span>, {<span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-value">0755</span>, <span class="ruby-value">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>})
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">op</span>, {<span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-value">0755</span>, <span class="ruby-value">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>})
<span class="ruby-identifier">install</span>(<span class="ruby-identifier">lf</span>, <span class="ruby-identifier">olf</span>, {<span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-value">0644</span>, <span class="ruby-value">:preserve</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>})
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- do_libs-source -->
</div>
</div><!-- do_libs-method -->
<div id="method-i-glob" class="method-detail ">
<div class="method-heading">
<span class="method-name">glob</span><span
class="method-args">(list)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="glob-source">
<pre><span class="ruby-comment"># File install.rb, line 57</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">glob</span>(<span class="ruby-identifier">list</span>)
<span class="ruby-identifier">g</span> = <span class="ruby-identifier">list</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">i</span>) }
<span class="ruby-identifier">g</span>.<span class="ruby-identifier">flatten!</span>
<span class="ruby-identifier">g</span>.<span class="ruby-identifier">compact!</span>
<span class="ruby-identifier">g</span>.<span class="ruby-identifier">uniq!</span>
<span class="ruby-identifier">g</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- glob-source -->
</div>
</div><!-- glob-method -->
<div id="method-i-install_binfile" class="method-detail ">
<div class="method-heading">
<span class="method-name">install_binfile</span><span
class="method-args">(from, op_file, target)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Install file(s) from ./bin to <a
href="http://'bindir'">RbConfig::CONFIG</a>. Patch it on the way to insert
a #! line; on a Unix install, the command is named as expected</p>
<div class="method-source-code" id="install_binfile-source">
<pre><span class="ruby-comment"># File install.rb, line 263</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">install_binfile</span>(<span class="ruby-identifier">from</span>, <span class="ruby-identifier">op_file</span>, <span class="ruby-identifier">target</span>)
<span class="ruby-identifier">tmp_file</span> = <span class="ruby-constant">Tempfile</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'mcollective-binfile'</span>)
<span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">ruby</span>
<span class="ruby-identifier">ruby</span> = <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">ruby</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">ruby</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">'bindir'</span>], <span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">'ruby_install_name'</span>])
<span class="ruby-keyword">end</span>
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">from</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ip</span><span class="ruby-operator">|</span>
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">tmp_file</span>.<span class="ruby-identifier">path</span>, <span class="ruby-string">"w"</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">op</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">op</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#!#{ruby}"</span>
<span class="ruby-identifier">contents</span> = <span class="ruby-identifier">ip</span>.<span class="ruby-identifier">readlines</span>
<span class="ruby-identifier">contents</span>.<span class="ruby-identifier">shift</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">contents</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">=~</span> <span class="ruby-node">/^#!/</span>
<span class="ruby-identifier">op</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">contents</span>.<span class="ruby-identifier">join</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">install</span>(<span class="ruby-identifier">tmp_file</span>.<span class="ruby-identifier">path</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">op_file</span>), <span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-value">0755</span>, <span class="ruby-value">:preserve</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>)
<span class="ruby-identifier">tmp_file</span>.<span class="ruby-identifier">unlink</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- install_binfile-source -->
</div>
</div><!-- install_binfile-method -->
<div id="method-i-prepare_installation" class="method-detail ">
<div class="method-heading">
<span class="method-name">prepare_installation</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Prepare the file installation.</p>
<div class="method-source-code" id="prepare_installation-source">
<pre><span class="ruby-comment"># File install.rb, line 110</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">prepare_installation</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configs</span> = <span class="ruby-keyword">true</span>
<span class="ruby-comment"># Only try to do docs if we're sure they have rdoc</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">$haverdoc</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">rdoc</span> = <span class="ruby-keyword">true</span>
<span class="ruby-keyword">else</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">rdoc</span> = <span class="ruby-keyword">false</span>
<span class="ruby-keyword">end</span>
<span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">options</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">opts</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">banner</span> = <span class="ruby-node">"Usage: #{File.basename($0)} [options]"</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">separator</span> <span class="ruby-string">""</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--[no-]rdoc'</span>, <span class="ruby-string">'Creation of RDoc output.'</span>, <span class="ruby-string">'Default is create rdoc.'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">onrdoc</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">rdoc</span> = <span class="ruby-identifier">onrdoc</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--[no-]configs'</span>, <span class="ruby-string">'Installation of config files'</span>, <span class="ruby-string">'Default is install configs.'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">onconfigs</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configs</span> = <span class="ruby-identifier">onconfigs</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--destdir[=OPTIONAL]'</span>, <span class="ruby-string">'Installation prefix for all targets'</span>, <span class="ruby-string">'Default essentially /'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">destdir</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">destdir</span> = <span class="ruby-identifier">destdir</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--configdir[=OPTIONAL]'</span>, <span class="ruby-string">'Installation directory for config files'</span>, <span class="ruby-string">'Default /etc/mcollective'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">configdir</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configdir</span> = <span class="ruby-identifier">configdir</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--bindir[=OPTIONAL]'</span>, <span class="ruby-string">'Installation directory for binaries'</span>, <span class="ruby-string">'overrides RbConfig::CONFIG["bindir"]'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">bindir</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">bindir</span> = <span class="ruby-identifier">bindir</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--sbindir[=OPTIONAL]'</span>, <span class="ruby-string">'Installation directory for system binaries'</span>, <span class="ruby-string">'overrides RbConfig::CONFIG["sbindir"]'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sbindir</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sbindir</span> = <span class="ruby-identifier">sbindir</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--ruby[=OPTIONAL]'</span>, <span class="ruby-string">'Ruby interpreter to use with installation'</span>, <span class="ruby-string">'overrides ruby used to call install.rb'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ruby</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">ruby</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--sitelibdir[=OPTIONAL]'</span>, <span class="ruby-string">'Installation directory for libraries'</span>, <span class="ruby-string">'overrides RbConfig::CONFIG["sitelibdir"]'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sitelibdir</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-identifier">sitelibdir</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--plugindir[=OPTIONAL]'</span>, <span class="ruby-string">'Installation directory for plugins'</span>, <span class="ruby-string">'Default /usr/libexec/mcollective'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">plugindir</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">plugindir</span> = <span class="ruby-identifier">plugindir</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--quick'</span>, <span class="ruby-string">'Performs a quick installation. Only the'</span>, <span class="ruby-string">'installation is done.'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">quick</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">rdoc</span> = <span class="ruby-keyword">false</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">ri</span> = <span class="ruby-keyword">false</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configs</span> = <span class="ruby-keyword">true</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-string">'--full'</span>, <span class="ruby-string">'Performs a full installation. All'</span>, <span class="ruby-string">'optional installation steps are run.'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">full</span><span class="ruby-operator">|</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">rdoc</span> = <span class="ruby-keyword">true</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">ri</span> = <span class="ruby-keyword">true</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configs</span> = <span class="ruby-keyword">true</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">separator</span>(<span class="ruby-string">""</span>)
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on_tail</span>(<span class="ruby-string">'--help'</span>, <span class="ruby-string">"Shows this help text."</span>) <span class="ruby-keyword">do</span>
<span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">opts</span>
<span class="ruby-identifier">exit</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">parse!</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">version</span> = [<span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">"MAJOR"</span>], <span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">"MINOR"</span>]].<span class="ruby-identifier">join</span>(<span class="ruby-string">"."</span>)
<span class="ruby-identifier">libdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">"libdir"</span>], <span class="ruby-string">"ruby"</span>, <span class="ruby-identifier">version</span>)
<span class="ruby-comment"># Mac OS X 10.5 and higher declare bindir</span>
<span class="ruby-comment"># /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin</span>
<span class="ruby-comment"># which is not generally where people expect executables to be installed</span>
<span class="ruby-comment"># These settings are appropriate defaults for all OS X versions.</span>
<span class="ruby-keyword">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^universal-darwin[\d\.]+$/</span>
<span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">'bindir'</span>] = <span class="ruby-string">"/usr/bin"</span>
<span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">'sbindir'</span>] = <span class="ruby-string">"/usr/sbin"</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configdir</span>
<span class="ruby-identifier">configdir</span> = <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configdir</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">configdir</span> = <span class="ruby-string">"/etc/mcollective"</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">bindir</span>
<span class="ruby-identifier">bindir</span> = <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">bindir</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">bindir</span> = <span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">'bindir'</span>]
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sbindir</span>
<span class="ruby-identifier">sbindir</span> = <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sbindir</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">sbindir</span> = <span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">'sbindir'</span>]
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sitelibdir</span>
<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sitelibdir</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">"sitelibdir"</span>]
<span class="ruby-keyword">if</span> <span class="ruby-identifier">sitelibdir</span>.<span class="ruby-identifier">nil?</span>
<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-identifier">$LOAD_PATH</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/site_ruby/</span> }
<span class="ruby-keyword">if</span> <span class="ruby-identifier">sitelibdir</span>.<span class="ruby-identifier">nil?</span>
<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">libdir</span>, <span class="ruby-string">"site_ruby"</span>)
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">sitelibdir</span> <span class="ruby-operator">!~</span> <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">quote</span>(<span class="ruby-identifier">version</span>)
<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">sitelibdir</span>, <span class="ruby-identifier">version</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">plugindir</span>
<span class="ruby-identifier">plugindir</span> = <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">plugindir</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">plugindir</span> = <span class="ruby-string">"/usr/libexec/mcollective"</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">destdir</span>
<span class="ruby-identifier">destdir</span> = <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">destdir</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">destdir</span> = <span class="ruby-string">''</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">configdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">destdir</span>, <span class="ruby-identifier">configdir</span>)
<span class="ruby-identifier">bindir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">destdir</span>, <span class="ruby-identifier">bindir</span>)
<span class="ruby-identifier">sbindir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">destdir</span>, <span class="ruby-identifier">sbindir</span>)
<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">destdir</span>, <span class="ruby-identifier">sitelibdir</span>)
<span class="ruby-identifier">plugindir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">destdir</span>, <span class="ruby-identifier">plugindir</span>)
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">configdir</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configs</span>
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">bindir</span>)
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">sbindir</span>)
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">sitelibdir</span>)
<span class="ruby-identifier">makedirs</span>(<span class="ruby-identifier">plugindir</span>)
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sitelibdir</span> = <span class="ruby-identifier">sitelibdir</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">configdir</span> = <span class="ruby-identifier">configdir</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">bindir</span> = <span class="ruby-identifier">bindir</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">sbindir</span> = <span class="ruby-identifier">sbindir</span>
<span class="ruby-constant">InstallOptions</span>.<span class="ruby-identifier">plugindir</span> = <span class="ruby-identifier">plugindir</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- prepare_installation-source -->
</div>
</div><!-- prepare_installation-method -->
</section><!-- public-instance-method-details -->
</section><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<footer id="validator-badges">
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
</footer>
|