corl 0.5.2 → 0.5.3
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 +7 -7
- data/.gitignore +51 -0
- data/Gemfile +6 -11
- data/Gemfile.lock +122 -147
- data/Rakefile +22 -21
- data/TODO.rdoc +12 -0
- data/VERSION +1 -1
- data/bin/corl +15 -21
- data/bootstrap/bootstrap.sh +50 -16
- data/bootstrap/lib/shell/os.sh +2 -2
- data/bootstrap/os/ubuntu/00_base.sh +11 -4
- data/bootstrap/os/ubuntu/01_git.sh +6 -3
- data/bootstrap/os/ubuntu/{02-editor.sh → 02_editor.sh} +8 -2
- data/bootstrap/os/ubuntu/05_ruby.sh +63 -15
- data/bootstrap/os/ubuntu/06_puppet.sh +9 -4
- data/bootstrap/os/ubuntu/09_nucleon.sh +25 -9
- data/bootstrap/os/ubuntu/10_corl.sh +24 -10
- data/corl.gemspec +27 -502
- data/lib/CORL/configuration/file.rb +112 -112
- data/lib/CORL/machine/rackspace.rb +18 -17
- data/lib/core/facade.rb +1 -1
- data/lib/core/plugin/agent.rb +141 -0
- data/lib/core/plugin/cloud_action.rb +67 -62
- data/lib/core/plugin/configuration.rb +71 -70
- data/lib/core/plugin/network.rb +163 -151
- data/lib/core/plugin/node.rb +457 -422
- data/lib/core/vagrant/commands/launcher.rb +13 -13
- data/lib/core/vagrant/provisioner/config.rb +1 -3
- data/lib/nucleon/action/node/bootstrap.rb +21 -16
- data/lib/nucleon/action/node/destroy.rb +13 -13
- data/lib/nucleon/action/node/seed.rb +62 -64
- data/lib/nucleon/action/node/status.rb +39 -32
- data/locales/en.yml +121 -116
- data/spec/spec_helper.rb +1 -4
- metadata +111 -641
- data/.document +0 -5
- data/lib/core/mod/fog_rackspace_server.rb +0 -29
- data/lib/core/vagrant/Vagrantfile +0 -10
- data/lib/nucleon/action/plugin/template/nucleon.action.erb +0 -56
- data/rdoc/site/0.4.29/CORL/Action/Authorize.html +0 -485
- data/rdoc/site/0.4.29/CORL/Action/Bootstrap.html +0 -546
- data/rdoc/site/0.4.29/CORL/Action/Build.html +0 -396
- data/rdoc/site/0.4.29/CORL/Action/Destroy.html +0 -515
- data/rdoc/site/0.4.29/CORL/Action/Exec.html +0 -472
- data/rdoc/site/0.4.29/CORL/Action/Facts.html +0 -398
- data/rdoc/site/0.4.29/CORL/Action/Image.html +0 -515
- data/rdoc/site/0.4.29/CORL/Action/Images.html +0 -514
- data/rdoc/site/0.4.29/CORL/Action/Ip.html +0 -395
- data/rdoc/site/0.4.29/CORL/Action/Keypair.html +0 -494
- data/rdoc/site/0.4.29/CORL/Action/Lookup.html +0 -474
- data/rdoc/site/0.4.29/CORL/Action/Machines.html +0 -509
- data/rdoc/site/0.4.29/CORL/Action/Provision.html +0 -456
- data/rdoc/site/0.4.29/CORL/Action/Reboot.html +0 -515
- data/rdoc/site/0.4.29/CORL/Action/Regions.html +0 -509
- data/rdoc/site/0.4.29/CORL/Action/Revoke.html +0 -483
- data/rdoc/site/0.4.29/CORL/Action/Seed.html +0 -544
- data/rdoc/site/0.4.29/CORL/Action/Spawn.html +0 -616
- data/rdoc/site/0.4.29/CORL/Action/Ssh.html +0 -526
- data/rdoc/site/0.4.29/CORL/Action/Start.html +0 -515
- data/rdoc/site/0.4.29/CORL/Action/Stop.html +0 -515
- data/rdoc/site/0.4.29/CORL/Action/Vagrantfile.html +0 -457
- data/rdoc/site/0.4.29/CORL/Action.html +0 -360
- data/rdoc/site/0.4.29/CORL/Configuration/File.html +0 -1128
- data/rdoc/site/0.4.29/CORL/Configuration.html +0 -339
- data/rdoc/site/0.4.29/CORL/Errors.html +0 -339
- data/rdoc/site/0.4.29/CORL/Event/Puppet.html +0 -673
- data/rdoc/site/0.4.29/CORL/Event.html +0 -339
- data/rdoc/site/0.4.29/CORL/Facade.html +0 -742
- data/rdoc/site/0.4.29/CORL/Machine/Aws.html +0 -733
- data/rdoc/site/0.4.29/CORL/Machine/Fog.html +0 -1269
- data/rdoc/site/0.4.29/CORL/Machine/Physical.html +0 -1039
- data/rdoc/site/0.4.29/CORL/Machine/Rackspace.html +0 -514
- data/rdoc/site/0.4.29/CORL/Machine/Vagrant.html +0 -1300
- data/rdoc/site/0.4.29/CORL/Machine.html +0 -343
- data/rdoc/site/0.4.29/CORL/Mixin/Action/Keypair.html +0 -572
- data/rdoc/site/0.4.29/CORL/Mixin/Action.html +0 -339
- data/rdoc/site/0.4.29/CORL/Mixin/Lookup.html +0 -954
- data/rdoc/site/0.4.29/CORL/Mixin/Machine/SSH.html +0 -643
- data/rdoc/site/0.4.29/CORL/Mixin/Machine.html +0 -339
- data/rdoc/site/0.4.29/CORL/Mixin/Macro/NetworkSettings.html +0 -464
- data/rdoc/site/0.4.29/CORL/Mixin/Macro.html +0 -339
- data/rdoc/site/0.4.29/CORL/Mixin.html +0 -342
- data/rdoc/site/0.4.29/CORL/Network/Default.html +0 -391
- data/rdoc/site/0.4.29/CORL/Network.html +0 -339
- data/rdoc/site/0.4.29/CORL/Node/Aws.html +0 -716
- data/rdoc/site/0.4.29/CORL/Node/Fog.html +0 -1192
- data/rdoc/site/0.4.29/CORL/Node/Local.html +0 -424
- data/rdoc/site/0.4.29/CORL/Node/Rackspace.html +0 -709
- data/rdoc/site/0.4.29/CORL/Node/Vagrant.html +0 -1451
- data/rdoc/site/0.4.29/CORL/Node.html +0 -343
- data/rdoc/site/0.4.29/CORL/Plugin/CloudAction.html +0 -810
- data/rdoc/site/0.4.29/CORL/Plugin.html +0 -339
- data/rdoc/site/0.4.29/CORL/Provisioner/Puppetnode.html +0 -1095
- data/rdoc/site/0.4.29/CORL/Provisioner.html +0 -339
- data/rdoc/site/0.4.29/CORL/Template/Environment.html +0 -528
- data/rdoc/site/0.4.29/CORL/Template.html +0 -339
- data/rdoc/site/0.4.29/CORL/Util/Puppet/Resource.html +0 -1038
- data/rdoc/site/0.4.29/CORL/Util/Puppet/ResourceGroup.html +0 -920
- data/rdoc/site/0.4.29/CORL/Util/Puppet.html +0 -1087
- data/rdoc/site/0.4.29/CORL/Util.html +0 -341
- data/rdoc/site/0.4.29/CORL/Vagrant/Config.html +0 -896
- data/rdoc/site/0.4.29/CORL/Vagrant.html +0 -418
- data/rdoc/site/0.4.29/CORL.html +0 -465
- data/rdoc/site/0.4.29/Facter/Util/Loader.html +0 -396
- data/rdoc/site/0.4.29/Facter/Util.html +0 -339
- data/rdoc/site/0.4.29/Facter.html +0 -339
- data/rdoc/site/0.4.29/Fog/Compute/AWS/Server.html +0 -423
- data/rdoc/site/0.4.29/Fog/Compute/AWS.html +0 -345
- data/rdoc/site/0.4.29/Fog/Compute/RackspaceV2/Server.html +0 -408
- data/rdoc/site/0.4.29/Fog/Compute/RackspaceV2.html +0 -345
- data/rdoc/site/0.4.29/Fog/Compute.html +0 -340
- data/rdoc/site/0.4.29/Fog.html +0 -340
- data/rdoc/site/0.4.29/Hiera/Backend.html +0 -422
- data/rdoc/site/0.4.29/Hiera/Corl_logger.html +0 -449
- data/rdoc/site/0.4.29/Hiera.html +0 -346
- data/rdoc/site/0.4.29/Nucleon/Config.html +0 -357
- data/rdoc/site/0.4.29/Nucleon/Plugin/Base.html +0 -345
- data/rdoc/site/0.4.29/Nucleon/Plugin/Configuration.html +0 -1213
- data/rdoc/site/0.4.29/Nucleon/Plugin/Machine.html +0 -1279
- data/rdoc/site/0.4.29/Nucleon/Plugin/Network.html +0 -1425
- data/rdoc/site/0.4.29/Nucleon/Plugin/Node.html +0 -3715
- data/rdoc/site/0.4.29/Nucleon/Plugin/Provisioner.html +0 -1297
- data/rdoc/site/0.4.29/Nucleon/Plugin.html +0 -344
- data/rdoc/site/0.4.29/Nucleon.html +0 -344
- data/rdoc/site/0.4.29/Object.html +0 -358
- data/rdoc/site/0.4.29/Puppet/DataBinding/Corl.html +0 -345
- data/rdoc/site/0.4.29/Puppet/DataBinding.html +0 -338
- data/rdoc/site/0.4.29/Puppet/Indirector/Corl.html +0 -454
- data/rdoc/site/0.4.29/Puppet/Indirector.html +0 -338
- data/rdoc/site/0.4.29/Puppet/Parser/Functions.html +0 -480
- data/rdoc/site/0.4.29/Puppet/Parser.html +0 -338
- data/rdoc/site/0.4.29/Puppet.html +0 -338
- data/rdoc/site/0.4.29/README_rdoc.html +0 -340
- data/rdoc/site/0.4.29/Vagrant/Config/Loader.html +0 -399
- data/rdoc/site/0.4.29/Vagrant/Config.html +0 -339
- data/rdoc/site/0.4.29/Vagrant/Vagrantfile.html +0 -392
- data/rdoc/site/0.4.29/Vagrant.html +0 -346
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action/DeleteCache.html +0 -396
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action/InitKeys.html +0 -408
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action/LinkNetwork.html +0 -406
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action.html +0 -341
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/BaseAction.html +0 -491
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Command/Launcher.html +0 -533
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Command.html +0 -339
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Config/CORL.html +0 -732
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Config.html +0 -339
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Plugin.html +0 -345
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Provisioner/CORL.html +0 -536
- data/rdoc/site/0.4.29/VagrantPlugins/CORL/Provisioner.html +0 -339
- data/rdoc/site/0.4.29/VagrantPlugins/CORL.html +0 -346
- data/rdoc/site/0.4.29/VagrantPlugins.html +0 -346
- data/rdoc/site/0.4.29/created.rid +0 -96
- data/rdoc/site/0.4.29/images/add.png +0 -0
- data/rdoc/site/0.4.29/images/brick.png +0 -0
- data/rdoc/site/0.4.29/images/brick_link.png +0 -0
- data/rdoc/site/0.4.29/images/bug.png +0 -0
- data/rdoc/site/0.4.29/images/bullet_black.png +0 -0
- data/rdoc/site/0.4.29/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.4.29/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.4.29/images/date.png +0 -0
- data/rdoc/site/0.4.29/images/delete.png +0 -0
- data/rdoc/site/0.4.29/images/find.png +0 -0
- data/rdoc/site/0.4.29/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.4.29/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.4.29/images/package.png +0 -0
- data/rdoc/site/0.4.29/images/page_green.png +0 -0
- data/rdoc/site/0.4.29/images/page_white_text.png +0 -0
- data/rdoc/site/0.4.29/images/page_white_width.png +0 -0
- data/rdoc/site/0.4.29/images/plugin.png +0 -0
- data/rdoc/site/0.4.29/images/ruby.png +0 -0
- data/rdoc/site/0.4.29/images/tag_blue.png +0 -0
- data/rdoc/site/0.4.29/images/tag_green.png +0 -0
- data/rdoc/site/0.4.29/images/transparent.png +0 -0
- data/rdoc/site/0.4.29/images/wrench.png +0 -0
- data/rdoc/site/0.4.29/images/wrench_orange.png +0 -0
- data/rdoc/site/0.4.29/images/zoom.png +0 -0
- data/rdoc/site/0.4.29/index.html +0 -339
- data/rdoc/site/0.4.29/js/darkfish.js +0 -155
- data/rdoc/site/0.4.29/js/jquery.js +0 -18
- data/rdoc/site/0.4.29/js/navigation.js +0 -142
- data/rdoc/site/0.4.29/js/search.js +0 -94
- data/rdoc/site/0.4.29/js/search_index.js +0 -1
- data/rdoc/site/0.4.29/js/searcher.js +0 -228
- data/rdoc/site/0.4.29/rdoc.css +0 -543
- data/rdoc/site/0.4.29/table_of_contents.html +0 -1561
- data/rdoc/site/0.5.0/CORL/Build.html +0 -757
- data/rdoc/site/0.5.0/CORL/Builder/Identity.html +0 -569
- data/rdoc/site/0.5.0/CORL/Builder/Package.html +0 -576
- data/rdoc/site/0.5.0/CORL/Builder.html +0 -360
- data/rdoc/site/0.5.0/CORL/Configuration/File.html +0 -1148
- data/rdoc/site/0.5.0/CORL/Configuration.html +0 -359
- data/rdoc/site/0.5.0/CORL/Errors.html +0 -359
- data/rdoc/site/0.5.0/CORL/Facade.html +0 -899
- data/rdoc/site/0.5.0/CORL/Machine/AWS.html +0 -753
- data/rdoc/site/0.5.0/CORL/Machine/Fog.html +0 -1289
- data/rdoc/site/0.5.0/CORL/Machine/Physical.html +0 -1059
- data/rdoc/site/0.5.0/CORL/Machine/Rackspace.html +0 -534
- data/rdoc/site/0.5.0/CORL/Machine/Vagrant.html +0 -1320
- data/rdoc/site/0.5.0/CORL/Machine.html +0 -363
- data/rdoc/site/0.5.0/CORL/Mixin/Action/Keypair.html +0 -592
- data/rdoc/site/0.5.0/CORL/Mixin/Action.html +0 -359
- data/rdoc/site/0.5.0/CORL/Mixin/Builder/Global.html +0 -604
- data/rdoc/site/0.5.0/CORL/Mixin/Builder/Instance.html +0 -696
- data/rdoc/site/0.5.0/CORL/Mixin/Builder.html +0 -359
- data/rdoc/site/0.5.0/CORL/Mixin/Lookup.html +0 -1139
- data/rdoc/site/0.5.0/CORL/Mixin/Machine/SSH.html +0 -675
- data/rdoc/site/0.5.0/CORL/Mixin/Machine.html +0 -359
- data/rdoc/site/0.5.0/CORL/Mixin/Macro/NetworkSettings.html +0 -484
- data/rdoc/site/0.5.0/CORL/Mixin/Macro.html +0 -359
- data/rdoc/site/0.5.0/CORL/Mixin.html +0 -363
- data/rdoc/site/0.5.0/CORL/Network/CORL.html +0 -411
- data/rdoc/site/0.5.0/CORL/Network.html +0 -359
- data/rdoc/site/0.5.0/CORL/Node/AWS.html +0 -736
- data/rdoc/site/0.5.0/CORL/Node/Fog.html +0 -1212
- data/rdoc/site/0.5.0/CORL/Node/Local.html +0 -444
- data/rdoc/site/0.5.0/CORL/Node/Rackspace.html +0 -729
- data/rdoc/site/0.5.0/CORL/Node/Vagrant.html +0 -1476
- data/rdoc/site/0.5.0/CORL/Node.html +0 -363
- data/rdoc/site/0.5.0/CORL/Plugin/Builder.html +0 -500
- data/rdoc/site/0.5.0/CORL/Plugin/Configuration.html +0 -1271
- data/rdoc/site/0.5.0/CORL/Plugin/Machine.html +0 -1299
- data/rdoc/site/0.5.0/CORL/Plugin/Network.html +0 -1580
- data/rdoc/site/0.5.0/CORL/Plugin/Node.html +0 -4041
- data/rdoc/site/0.5.0/CORL/Plugin/Provisioner.html +0 -1115
- data/rdoc/site/0.5.0/CORL/Plugin.html +0 -649
- data/rdoc/site/0.5.0/CORL/Provisioner/Puppetnode.html +0 -1177
- data/rdoc/site/0.5.0/CORL/Provisioner.html +0 -359
- data/rdoc/site/0.5.0/CORL/Util/Puppet/Resource.html +0 -1058
- data/rdoc/site/0.5.0/CORL/Util/Puppet/ResourceGroup.html +0 -940
- data/rdoc/site/0.5.0/CORL/Util/Puppet.html +0 -1107
- data/rdoc/site/0.5.0/CORL/Util.html +0 -361
- data/rdoc/site/0.5.0/CORL/Vagrant/Config.html +0 -943
- data/rdoc/site/0.5.0/CORL/Vagrant.html +0 -438
- data/rdoc/site/0.5.0/CORL.html +0 -471
- data/rdoc/site/0.5.0/Fog/Compute/AWS/Server.html +0 -443
- data/rdoc/site/0.5.0/Fog/Compute/AWS.html +0 -365
- data/rdoc/site/0.5.0/Fog/Compute/RackspaceV2/Server.html +0 -428
- data/rdoc/site/0.5.0/Fog/Compute/RackspaceV2.html +0 -365
- data/rdoc/site/0.5.0/Fog/Compute.html +0 -360
- data/rdoc/site/0.5.0/Fog.html +0 -360
- data/rdoc/site/0.5.0/Hiera/Backend.html +0 -442
- data/rdoc/site/0.5.0/Hiera/Corl_logger.html +0 -469
- data/rdoc/site/0.5.0/Hiera.html +0 -366
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Create.html +0 -538
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Hiera.html +0 -566
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Images.html +0 -572
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Inspect.html +0 -524
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Machines.html +0 -567
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Regions.html +0 -567
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Vagrantfile.html +0 -515
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud.html +0 -365
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Authorize.html +0 -543
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Bootstrap.html +0 -604
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Build.html +0 -526
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Destroy.html +0 -573
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Exec.html +0 -530
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Facts.html +0 -456
- data/rdoc/site/0.5.0/Nucleon/Action/Node/IP.html +0 -453
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Image.html +0 -573
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Keypair.html +0 -572
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Lookup.html +0 -532
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Provision.html +0 -553
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Reboot.html +0 -573
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Revoke.html +0 -541
- data/rdoc/site/0.5.0/Nucleon/Action/Node/SSH.html +0 -583
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Seed.html +0 -602
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Spawn.html +0 -675
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Start.html +0 -573
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Stop.html +0 -573
- data/rdoc/site/0.5.0/Nucleon/Action/Node.html +0 -376
- data/rdoc/site/0.5.0/Nucleon/Action.html +0 -383
- data/rdoc/site/0.5.0/Nucleon/Config.html +0 -377
- data/rdoc/site/0.5.0/Nucleon/Event/Puppet.html +0 -693
- data/rdoc/site/0.5.0/Nucleon/Event.html +0 -359
- data/rdoc/site/0.5.0/Nucleon/Plugin/Base.html +0 -365
- data/rdoc/site/0.5.0/Nucleon/Plugin/CloudAction.html +0 -838
- data/rdoc/site/0.5.0/Nucleon/Plugin.html +0 -360
- data/rdoc/site/0.5.0/Nucleon/Template/Environment.html +0 -548
- data/rdoc/site/0.5.0/Nucleon/Template.html +0 -359
- data/rdoc/site/0.5.0/Nucleon.html +0 -387
- data/rdoc/site/0.5.0/Object.html +0 -378
- data/rdoc/site/0.5.0/Puppet/DataBinding/Corl.html +0 -365
- data/rdoc/site/0.5.0/Puppet/DataBinding.html +0 -358
- data/rdoc/site/0.5.0/Puppet/Indirector/Corl.html +0 -477
- data/rdoc/site/0.5.0/Puppet/Indirector.html +0 -358
- data/rdoc/site/0.5.0/Puppet/Parser/Functions.html +0 -500
- data/rdoc/site/0.5.0/Puppet/Parser.html +0 -358
- data/rdoc/site/0.5.0/Puppet.html +0 -358
- data/rdoc/site/0.5.0/README_rdoc.html +0 -360
- data/rdoc/site/0.5.0/Vagrant/Config/Loader.html +0 -419
- data/rdoc/site/0.5.0/Vagrant/Config.html +0 -359
- data/rdoc/site/0.5.0/Vagrant/Vagrantfile.html +0 -412
- data/rdoc/site/0.5.0/Vagrant.html +0 -366
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action/DeleteCache.html +0 -422
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action/InitKeys.html +0 -428
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action/LinkNetwork.html +0 -426
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action.html +0 -361
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/BaseAction.html +0 -511
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Command/Launcher.html +0 -553
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Command.html +0 -359
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Config/CORL.html +0 -752
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Config.html +0 -359
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Plugin.html +0 -365
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Provisioner/CORL.html +0 -556
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Provisioner.html +0 -359
- data/rdoc/site/0.5.0/VagrantPlugins/CORL.html +0 -366
- data/rdoc/site/0.5.0/VagrantPlugins.html +0 -366
- data/rdoc/site/0.5.0/created.rid +0 -103
- data/rdoc/site/0.5.0/images/add.png +0 -0
- data/rdoc/site/0.5.0/images/brick.png +0 -0
- data/rdoc/site/0.5.0/images/brick_link.png +0 -0
- data/rdoc/site/0.5.0/images/bug.png +0 -0
- data/rdoc/site/0.5.0/images/bullet_black.png +0 -0
- data/rdoc/site/0.5.0/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.5.0/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.5.0/images/date.png +0 -0
- data/rdoc/site/0.5.0/images/delete.png +0 -0
- data/rdoc/site/0.5.0/images/find.png +0 -0
- data/rdoc/site/0.5.0/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.5.0/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.5.0/images/package.png +0 -0
- data/rdoc/site/0.5.0/images/page_green.png +0 -0
- data/rdoc/site/0.5.0/images/page_white_text.png +0 -0
- data/rdoc/site/0.5.0/images/page_white_width.png +0 -0
- data/rdoc/site/0.5.0/images/plugin.png +0 -0
- data/rdoc/site/0.5.0/images/ruby.png +0 -0
- data/rdoc/site/0.5.0/images/tag_blue.png +0 -0
- data/rdoc/site/0.5.0/images/tag_green.png +0 -0
- data/rdoc/site/0.5.0/images/transparent.png +0 -0
- data/rdoc/site/0.5.0/images/wrench.png +0 -0
- data/rdoc/site/0.5.0/images/wrench_orange.png +0 -0
- data/rdoc/site/0.5.0/images/zoom.png +0 -0
- data/rdoc/site/0.5.0/index.html +0 -359
- data/rdoc/site/0.5.0/js/darkfish.js +0 -155
- data/rdoc/site/0.5.0/js/jquery.js +0 -18
- data/rdoc/site/0.5.0/js/navigation.js +0 -142
- data/rdoc/site/0.5.0/js/search.js +0 -94
- data/rdoc/site/0.5.0/js/search_index.js +0 -1
- data/rdoc/site/0.5.0/js/searcher.js +0 -228
- data/rdoc/site/0.5.0/rdoc.css +0 -543
- data/rdoc/site/0.5.0/table_of_contents.html +0 -1797
- data/rdoc/site/0.5.1/CORL/Build.html +0 -781
- data/rdoc/site/0.5.1/CORL/Builder/Identity.html +0 -596
- data/rdoc/site/0.5.1/CORL/Builder/Package.html +0 -600
- data/rdoc/site/0.5.1/CORL/Builder.html +0 -384
- data/rdoc/site/0.5.1/CORL/Configuration/File.html +0 -1186
- data/rdoc/site/0.5.1/CORL/Configuration.html +0 -383
- data/rdoc/site/0.5.1/CORL/Errors.html +0 -383
- data/rdoc/site/0.5.1/CORL/Facade.html +0 -927
- data/rdoc/site/0.5.1/CORL/Machine/AWS.html +0 -777
- data/rdoc/site/0.5.1/CORL/Machine/Fog.html +0 -1313
- data/rdoc/site/0.5.1/CORL/Machine/Physical.html +0 -1083
- data/rdoc/site/0.5.1/CORL/Machine/Rackspace.html +0 -558
- data/rdoc/site/0.5.1/CORL/Machine/Vagrant.html +0 -1344
- data/rdoc/site/0.5.1/CORL/Machine.html +0 -387
- data/rdoc/site/0.5.1/CORL/Mixin/Action/Keypair.html +0 -616
- data/rdoc/site/0.5.1/CORL/Mixin/Action/Registration.html +0 -469
- data/rdoc/site/0.5.1/CORL/Mixin/Action.html +0 -384
- data/rdoc/site/0.5.1/CORL/Mixin/Builder/Global.html +0 -628
- data/rdoc/site/0.5.1/CORL/Mixin/Builder/Instance.html +0 -720
- data/rdoc/site/0.5.1/CORL/Mixin/Builder.html +0 -383
- data/rdoc/site/0.5.1/CORL/Mixin/Lookup.html +0 -1315
- data/rdoc/site/0.5.1/CORL/Mixin/Machine/SSH.html +0 -699
- data/rdoc/site/0.5.1/CORL/Mixin/Machine.html +0 -383
- data/rdoc/site/0.5.1/CORL/Mixin/Macro/NetworkSettings.html +0 -508
- data/rdoc/site/0.5.1/CORL/Mixin/Macro.html +0 -383
- data/rdoc/site/0.5.1/CORL/Mixin.html +0 -388
- data/rdoc/site/0.5.1/CORL/Network/CORL.html +0 -435
- data/rdoc/site/0.5.1/CORL/Network.html +0 -383
- data/rdoc/site/0.5.1/CORL/Node/AWS.html +0 -760
- data/rdoc/site/0.5.1/CORL/Node/Fog.html +0 -1268
- data/rdoc/site/0.5.1/CORL/Node/Local.html +0 -468
- data/rdoc/site/0.5.1/CORL/Node/Rackspace.html +0 -753
- data/rdoc/site/0.5.1/CORL/Node/Vagrant.html +0 -1497
- data/rdoc/site/0.5.1/CORL/Node.html +0 -387
- data/rdoc/site/0.5.1/CORL/Plugin/Builder.html +0 -524
- data/rdoc/site/0.5.1/CORL/Plugin/Configuration.html +0 -1294
- data/rdoc/site/0.5.1/CORL/Plugin/Machine.html +0 -1323
- data/rdoc/site/0.5.1/CORL/Plugin/Network.html +0 -1766
- data/rdoc/site/0.5.1/CORL/Plugin/Node.html +0 -4263
- data/rdoc/site/0.5.1/CORL/Plugin/Provisioner.html +0 -1139
- data/rdoc/site/0.5.1/CORL/Plugin.html +0 -673
- data/rdoc/site/0.5.1/CORL/Provisioner/Puppetnode.html +0 -1201
- data/rdoc/site/0.5.1/CORL/Provisioner.html +0 -383
- data/rdoc/site/0.5.1/CORL/Util/Puppet/Resource.html +0 -1082
- data/rdoc/site/0.5.1/CORL/Util/Puppet/ResourceGroup.html +0 -964
- data/rdoc/site/0.5.1/CORL/Util/Puppet.html +0 -1131
- data/rdoc/site/0.5.1/CORL/Util.html +0 -385
- data/rdoc/site/0.5.1/CORL/Vagrant/Config.html +0 -967
- data/rdoc/site/0.5.1/CORL/Vagrant.html +0 -462
- data/rdoc/site/0.5.1/CORL.html +0 -496
- data/rdoc/site/0.5.1/Fog/Compute/AWS/Server.html +0 -467
- data/rdoc/site/0.5.1/Fog/Compute/AWS.html +0 -389
- data/rdoc/site/0.5.1/Fog/Compute/RackspaceV2/Server.html +0 -452
- data/rdoc/site/0.5.1/Fog/Compute/RackspaceV2.html +0 -389
- data/rdoc/site/0.5.1/Fog/Compute.html +0 -384
- data/rdoc/site/0.5.1/Fog.html +0 -384
- data/rdoc/site/0.5.1/Hiera/Backend.html +0 -466
- data/rdoc/site/0.5.1/Hiera/Corl_logger.html +0 -493
- data/rdoc/site/0.5.1/Hiera.html +0 -390
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Config.html +0 -978
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Create.html +0 -562
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Images.html +0 -596
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Inspect.html +0 -567
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Machines.html +0 -591
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Regions.html +0 -591
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Settings.html +0 -878
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Vagrantfile.html +0 -539
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud.html +0 -390
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Authorize.html +0 -567
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Bootstrap.html +0 -628
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Build.html +0 -550
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Cache.html +0 -773
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Destroy.html +0 -597
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Exec.html +0 -554
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Fact.html +0 -733
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Facts.html +0 -505
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Group.html +0 -729
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Groups.html +0 -505
- data/rdoc/site/0.5.1/Nucleon/Action/Node/IP.html +0 -477
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Identity.html +0 -614
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Image.html +0 -597
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Keypair.html +0 -596
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Lookup.html +0 -579
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Provision.html +0 -577
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Reboot.html +0 -597
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Revoke.html +0 -565
- data/rdoc/site/0.5.1/Nucleon/Action/Node/SSH.html +0 -607
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Seed.html +0 -626
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Spawn.html +0 -699
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Start.html +0 -597
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Status.html +0 -615
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Stop.html +0 -597
- data/rdoc/site/0.5.1/Nucleon/Action/Node.html +0 -406
- data/rdoc/site/0.5.1/Nucleon/Action/Plugin/Create.html +0 -736
- data/rdoc/site/0.5.1/Nucleon/Action/Plugin/List.html +0 -570
- data/rdoc/site/0.5.1/Nucleon/Action/Plugin.html +0 -384
- data/rdoc/site/0.5.1/Nucleon/Action/Plugins.html +0 -435
- data/rdoc/site/0.5.1/Nucleon/Action.html +0 -417
- data/rdoc/site/0.5.1/Nucleon/Config.html +0 -401
- data/rdoc/site/0.5.1/Nucleon/Event/Puppet.html +0 -717
- data/rdoc/site/0.5.1/Nucleon/Event.html +0 -383
- data/rdoc/site/0.5.1/Nucleon/Plugin/Base.html +0 -389
- data/rdoc/site/0.5.1/Nucleon/Plugin/CloudAction.html +0 -894
- data/rdoc/site/0.5.1/Nucleon/Plugin.html +0 -384
- data/rdoc/site/0.5.1/Nucleon/Template/Environment.html +0 -572
- data/rdoc/site/0.5.1/Nucleon/Template.html +0 -383
- data/rdoc/site/0.5.1/Nucleon.html +0 -421
- data/rdoc/site/0.5.1/Object.html +0 -402
- data/rdoc/site/0.5.1/Puppet/DataBinding/Corl.html +0 -389
- data/rdoc/site/0.5.1/Puppet/DataBinding.html +0 -382
- data/rdoc/site/0.5.1/Puppet/Indirector/Corl.html +0 -501
- data/rdoc/site/0.5.1/Puppet/Indirector.html +0 -382
- data/rdoc/site/0.5.1/Puppet/Parser/Functions.html +0 -524
- data/rdoc/site/0.5.1/Puppet/Parser.html +0 -382
- data/rdoc/site/0.5.1/Puppet.html +0 -382
- data/rdoc/site/0.5.1/README_rdoc.html +0 -384
- data/rdoc/site/0.5.1/Vagrant/Config/Loader.html +0 -443
- data/rdoc/site/0.5.1/Vagrant/Config.html +0 -383
- data/rdoc/site/0.5.1/Vagrant/Vagrantfile.html +0 -436
- data/rdoc/site/0.5.1/Vagrant.html +0 -390
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action/DeleteCache.html +0 -446
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action/InitKeys.html +0 -452
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action/LinkNetwork.html +0 -450
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action.html +0 -385
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/BaseAction.html +0 -535
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Command/Launcher.html +0 -577
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Command.html +0 -383
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Config/CORL.html +0 -776
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Config.html +0 -383
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Plugin.html +0 -389
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Provisioner/CORL.html +0 -580
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Provisioner.html +0 -383
- data/rdoc/site/0.5.1/VagrantPlugins/CORL.html +0 -390
- data/rdoc/site/0.5.1/VagrantPlugins.html +0 -390
- data/rdoc/site/0.5.1/created.rid +0 -114
- data/rdoc/site/0.5.1/images/add.png +0 -0
- data/rdoc/site/0.5.1/images/brick.png +0 -0
- data/rdoc/site/0.5.1/images/brick_link.png +0 -0
- data/rdoc/site/0.5.1/images/bug.png +0 -0
- data/rdoc/site/0.5.1/images/bullet_black.png +0 -0
- data/rdoc/site/0.5.1/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.5.1/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.5.1/images/date.png +0 -0
- data/rdoc/site/0.5.1/images/delete.png +0 -0
- data/rdoc/site/0.5.1/images/find.png +0 -0
- data/rdoc/site/0.5.1/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.5.1/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.5.1/images/package.png +0 -0
- data/rdoc/site/0.5.1/images/page_green.png +0 -0
- data/rdoc/site/0.5.1/images/page_white_text.png +0 -0
- data/rdoc/site/0.5.1/images/page_white_width.png +0 -0
- data/rdoc/site/0.5.1/images/plugin.png +0 -0
- data/rdoc/site/0.5.1/images/ruby.png +0 -0
- data/rdoc/site/0.5.1/images/tag_blue.png +0 -0
- data/rdoc/site/0.5.1/images/tag_green.png +0 -0
- data/rdoc/site/0.5.1/images/transparent.png +0 -0
- data/rdoc/site/0.5.1/images/wrench.png +0 -0
- data/rdoc/site/0.5.1/images/wrench_orange.png +0 -0
- data/rdoc/site/0.5.1/images/zoom.png +0 -0
- data/rdoc/site/0.5.1/index.html +0 -383
- data/rdoc/site/0.5.1/js/darkfish.js +0 -155
- data/rdoc/site/0.5.1/js/jquery.js +0 -18
- data/rdoc/site/0.5.1/js/navigation.js +0 -142
- data/rdoc/site/0.5.1/js/search.js +0 -94
- data/rdoc/site/0.5.1/js/search_index.js +0 -1
- data/rdoc/site/0.5.1/js/searcher.js +0 -228
- data/rdoc/site/0.5.1/rdoc.css +0 -543
- data/rdoc/site/0.5.1/table_of_contents.html +0 -2005
- data/spec/corl_mock_input.rb +0 -29
- data/spec/corl_test_kernel.rb +0 -22
|
@@ -1,1139 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
|
|
3
|
-
<html>
|
|
4
|
-
<head>
|
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
|
-
|
|
7
|
-
<title>module CORL::Mixin::Lookup - corl 0.5.0</title>
|
|
8
|
-
|
|
9
|
-
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
|
10
|
-
|
|
11
|
-
<script type="text/javascript">
|
|
12
|
-
var rdoc_rel_prefix = "../../";
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
16
|
-
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
|
17
|
-
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
|
18
|
-
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
|
19
|
-
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
|
20
|
-
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<body id="top" class="module">
|
|
24
|
-
<nav id="metadata">
|
|
25
|
-
<nav id="home-section" class="section">
|
|
26
|
-
<h3 class="section-header">
|
|
27
|
-
<a href="../../index.html">Home</a>
|
|
28
|
-
<a href="../../table_of_contents.html#classes">Classes</a>
|
|
29
|
-
<a href="../../table_of_contents.html#methods">Methods</a>
|
|
30
|
-
</h3>
|
|
31
|
-
</nav>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
|
36
|
-
<h3 class="section-header">
|
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
|
39
|
-
</h3>
|
|
40
|
-
</form>
|
|
41
|
-
|
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
|
43
|
-
</nav>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div id="file-metadata">
|
|
47
|
-
<nav id="file-list-section" class="section">
|
|
48
|
-
<h3 class="section-header">Defined In</h3>
|
|
49
|
-
<ul>
|
|
50
|
-
<li>lib/core/mixin/lookup.rb
|
|
51
|
-
</ul>
|
|
52
|
-
</nav>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div id="class-metadata">
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<!-- Method Quickref -->
|
|
62
|
-
<nav id="method-list-section" class="section">
|
|
63
|
-
<h3 class="section-header">Methods</h3>
|
|
64
|
-
|
|
65
|
-
<ul class="link-list">
|
|
66
|
-
|
|
67
|
-
<li><a href="#method-i-config_initialized-3F">#config_initialized?</a>
|
|
68
|
-
|
|
69
|
-
<li><a href="#method-i-create_fact">#create_fact</a>
|
|
70
|
-
|
|
71
|
-
<li><a href="#method-i-debug_lookup">#debug_lookup</a>
|
|
72
|
-
|
|
73
|
-
<li><a href="#method-i-fact">#fact</a>
|
|
74
|
-
|
|
75
|
-
<li><a href="#method-i-fact_var">#fact_var</a>
|
|
76
|
-
|
|
77
|
-
<li><a href="#method-i-fact_var-3D">#fact_var=</a>
|
|
78
|
-
|
|
79
|
-
<li><a href="#method-i-facts">#facts</a>
|
|
80
|
-
|
|
81
|
-
<li><a href="#method-i-hiera">#hiera</a>
|
|
82
|
-
|
|
83
|
-
<li><a href="#method-i-hiera_configuration">#hiera_configuration</a>
|
|
84
|
-
|
|
85
|
-
<li><a href="#method-i-hiera_lookup_prefix">#hiera_lookup_prefix</a>
|
|
86
|
-
|
|
87
|
-
<li><a href="#method-i-hiera_override_dir">#hiera_override_dir</a>
|
|
88
|
-
|
|
89
|
-
<li><a href="#method-i-hiera_var">#hiera_var</a>
|
|
90
|
-
|
|
91
|
-
<li><a href="#method-i-hiera_var-3D">#hiera_var=</a>
|
|
92
|
-
|
|
93
|
-
<li><a href="#method-i-lookup">#lookup</a>
|
|
94
|
-
|
|
95
|
-
<li><a href="#method-i-lookup_array">#lookup_array</a>
|
|
96
|
-
|
|
97
|
-
<li><a href="#method-i-lookup_hash">#lookup_hash</a>
|
|
98
|
-
|
|
99
|
-
<li><a href="#method-i-normalize">#normalize</a>
|
|
100
|
-
|
|
101
|
-
</ul>
|
|
102
|
-
</nav>
|
|
103
|
-
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<div id="project-metadata">
|
|
107
|
-
<nav id="fileindex-section" class="section project-section">
|
|
108
|
-
<h3 class="section-header">Pages</h3>
|
|
109
|
-
|
|
110
|
-
<ul>
|
|
111
|
-
|
|
112
|
-
<li class="file"><a href="../../README_rdoc.html">README</a>
|
|
113
|
-
|
|
114
|
-
</ul>
|
|
115
|
-
</nav>
|
|
116
|
-
|
|
117
|
-
<nav id="classindex-section" class="section project-section">
|
|
118
|
-
<h3 class="section-header">Class and Module Index</h3>
|
|
119
|
-
|
|
120
|
-
<ul class="link-list">
|
|
121
|
-
|
|
122
|
-
<li><a href="../../CORL.html">CORL</a>
|
|
123
|
-
|
|
124
|
-
<li><a href="../../CORL/Build.html">CORL::Build</a>
|
|
125
|
-
|
|
126
|
-
<li><a href="../../CORL/Builder.html">CORL::Builder</a>
|
|
127
|
-
|
|
128
|
-
<li><a href="../../CORL/Builder/Identity.html">CORL::Builder::Identity</a>
|
|
129
|
-
|
|
130
|
-
<li><a href="../../CORL/Builder/Package.html">CORL::Builder::Package</a>
|
|
131
|
-
|
|
132
|
-
<li><a href="../../CORL/Configuration.html">CORL::Configuration</a>
|
|
133
|
-
|
|
134
|
-
<li><a href="../../CORL/Configuration/File.html">CORL::Configuration::File</a>
|
|
135
|
-
|
|
136
|
-
<li><a href="../../CORL/Errors.html">CORL::Errors</a>
|
|
137
|
-
|
|
138
|
-
<li><a href="../../CORL/Facade.html">CORL::Facade</a>
|
|
139
|
-
|
|
140
|
-
<li><a href="../../CORL/Machine.html">CORL::Machine</a>
|
|
141
|
-
|
|
142
|
-
<li><a href="../../CORL/Machine/AWS.html">CORL::Machine::AWS</a>
|
|
143
|
-
|
|
144
|
-
<li><a href="../../CORL/Machine/Fog.html">CORL::Machine::Fog</a>
|
|
145
|
-
|
|
146
|
-
<li><a href="../../CORL/Machine/Physical.html">CORL::Machine::Physical</a>
|
|
147
|
-
|
|
148
|
-
<li><a href="../../CORL/Machine/Rackspace.html">CORL::Machine::Rackspace</a>
|
|
149
|
-
|
|
150
|
-
<li><a href="../../CORL/Machine/Vagrant.html">CORL::Machine::Vagrant</a>
|
|
151
|
-
|
|
152
|
-
<li><a href="../../CORL/Mixin.html">CORL::Mixin</a>
|
|
153
|
-
|
|
154
|
-
<li><a href="../../CORL/Mixin/Action.html">CORL::Mixin::Action</a>
|
|
155
|
-
|
|
156
|
-
<li><a href="../../CORL/Mixin/Action/Keypair.html">CORL::Mixin::Action::Keypair</a>
|
|
157
|
-
|
|
158
|
-
<li><a href="../../CORL/Mixin/Builder.html">CORL::Mixin::Builder</a>
|
|
159
|
-
|
|
160
|
-
<li><a href="../../CORL/Mixin/Builder/Global.html">CORL::Mixin::Builder::Global</a>
|
|
161
|
-
|
|
162
|
-
<li><a href="../../CORL/Mixin/Builder/Instance.html">CORL::Mixin::Builder::Instance</a>
|
|
163
|
-
|
|
164
|
-
<li><a href="../../CORL/Mixin/Lookup.html">CORL::Mixin::Lookup</a>
|
|
165
|
-
|
|
166
|
-
<li><a href="../../CORL/Mixin/Machine.html">CORL::Mixin::Machine</a>
|
|
167
|
-
|
|
168
|
-
<li><a href="../../CORL/Mixin/Machine/SSH.html">CORL::Mixin::Machine::SSH</a>
|
|
169
|
-
|
|
170
|
-
<li><a href="../../CORL/Mixin/Macro.html">CORL::Mixin::Macro</a>
|
|
171
|
-
|
|
172
|
-
<li><a href="../../CORL/Mixin/Macro/NetworkSettings.html">CORL::Mixin::Macro::NetworkSettings</a>
|
|
173
|
-
|
|
174
|
-
<li><a href="../../CORL/Network.html">CORL::Network</a>
|
|
175
|
-
|
|
176
|
-
<li><a href="../../CORL/Network/CORL.html">CORL::Network::CORL</a>
|
|
177
|
-
|
|
178
|
-
<li><a href="../../CORL/Node.html">CORL::Node</a>
|
|
179
|
-
|
|
180
|
-
<li><a href="../../CORL/Node/AWS.html">CORL::Node::AWS</a>
|
|
181
|
-
|
|
182
|
-
<li><a href="../../CORL/Node/Fog.html">CORL::Node::Fog</a>
|
|
183
|
-
|
|
184
|
-
<li><a href="../../CORL/Node/Local.html">CORL::Node::Local</a>
|
|
185
|
-
|
|
186
|
-
<li><a href="../../CORL/Node/Rackspace.html">CORL::Node::Rackspace</a>
|
|
187
|
-
|
|
188
|
-
<li><a href="../../CORL/Node/Vagrant.html">CORL::Node::Vagrant</a>
|
|
189
|
-
|
|
190
|
-
<li><a href="../../CORL/Plugin.html">CORL::Plugin</a>
|
|
191
|
-
|
|
192
|
-
<li><a href="../../CORL/Plugin/Builder.html">CORL::Plugin::Builder</a>
|
|
193
|
-
|
|
194
|
-
<li><a href="../../CORL/Plugin/Configuration.html">CORL::Plugin::Configuration</a>
|
|
195
|
-
|
|
196
|
-
<li><a href="../../CORL/Plugin/Machine.html">CORL::Plugin::Machine</a>
|
|
197
|
-
|
|
198
|
-
<li><a href="../../CORL/Plugin/Network.html">CORL::Plugin::Network</a>
|
|
199
|
-
|
|
200
|
-
<li><a href="../../CORL/Plugin/Node.html">CORL::Plugin::Node</a>
|
|
201
|
-
|
|
202
|
-
<li><a href="../../CORL/Plugin/Provisioner.html">CORL::Plugin::Provisioner</a>
|
|
203
|
-
|
|
204
|
-
<li><a href="../../CORL/Provisioner.html">CORL::Provisioner</a>
|
|
205
|
-
|
|
206
|
-
<li><a href="../../CORL/Provisioner/Puppetnode.html">CORL::Provisioner::Puppetnode</a>
|
|
207
|
-
|
|
208
|
-
<li><a href="../../CORL/Util.html">CORL::Util</a>
|
|
209
|
-
|
|
210
|
-
<li><a href="../../CORL/Util/Puppet.html">CORL::Util::Puppet</a>
|
|
211
|
-
|
|
212
|
-
<li><a href="../../CORL/Util/Puppet/Resource.html">CORL::Util::Puppet::Resource</a>
|
|
213
|
-
|
|
214
|
-
<li><a href="../../CORL/Util/Puppet/ResourceGroup.html">CORL::Util::Puppet::ResourceGroup</a>
|
|
215
|
-
|
|
216
|
-
<li><a href="../../CORL/Vagrant.html">CORL::Vagrant</a>
|
|
217
|
-
|
|
218
|
-
<li><a href="../../CORL/Vagrant/Config.html">CORL::Vagrant::Config</a>
|
|
219
|
-
|
|
220
|
-
<li><a href="../../Nucleon.html">Nucleon</a>
|
|
221
|
-
|
|
222
|
-
<li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
|
|
223
|
-
|
|
224
|
-
<li><a href="../../Nucleon/Action/Cloud.html">Nucleon::Action::Cloud</a>
|
|
225
|
-
|
|
226
|
-
<li><a href="../../Nucleon/Action/Cloud/Create.html">Nucleon::Action::Cloud::Create</a>
|
|
227
|
-
|
|
228
|
-
<li><a href="../../Nucleon/Action/Cloud/Hiera.html">Nucleon::Action::Cloud::Hiera</a>
|
|
229
|
-
|
|
230
|
-
<li><a href="../../Nucleon/Action/Cloud/Images.html">Nucleon::Action::Cloud::Images</a>
|
|
231
|
-
|
|
232
|
-
<li><a href="../../Nucleon/Action/Cloud/Inspect.html">Nucleon::Action::Cloud::Inspect</a>
|
|
233
|
-
|
|
234
|
-
<li><a href="../../Nucleon/Action/Cloud/Machines.html">Nucleon::Action::Cloud::Machines</a>
|
|
235
|
-
|
|
236
|
-
<li><a href="../../Nucleon/Action/Cloud/Regions.html">Nucleon::Action::Cloud::Regions</a>
|
|
237
|
-
|
|
238
|
-
<li><a href="../../Nucleon/Action/Cloud/Vagrantfile.html">Nucleon::Action::Cloud::Vagrantfile</a>
|
|
239
|
-
|
|
240
|
-
<li><a href="../../Nucleon/Action/Node.html">Nucleon::Action::Node</a>
|
|
241
|
-
|
|
242
|
-
<li><a href="../../Nucleon/Action/Node/Authorize.html">Nucleon::Action::Node::Authorize</a>
|
|
243
|
-
|
|
244
|
-
<li><a href="../../Nucleon/Action/Node/Bootstrap.html">Nucleon::Action::Node::Bootstrap</a>
|
|
245
|
-
|
|
246
|
-
<li><a href="../../Nucleon/Action/Node/Build.html">Nucleon::Action::Node::Build</a>
|
|
247
|
-
|
|
248
|
-
<li><a href="../../Nucleon/Action/Node/Destroy.html">Nucleon::Action::Node::Destroy</a>
|
|
249
|
-
|
|
250
|
-
<li><a href="../../Nucleon/Action/Node/Exec.html">Nucleon::Action::Node::Exec</a>
|
|
251
|
-
|
|
252
|
-
<li><a href="../../Nucleon/Action/Node/Facts.html">Nucleon::Action::Node::Facts</a>
|
|
253
|
-
|
|
254
|
-
<li><a href="../../Nucleon/Action/Node/IP.html">Nucleon::Action::Node::IP</a>
|
|
255
|
-
|
|
256
|
-
<li><a href="../../Nucleon/Action/Node/Image.html">Nucleon::Action::Node::Image</a>
|
|
257
|
-
|
|
258
|
-
<li><a href="../../Nucleon/Action/Node/Keypair.html">Nucleon::Action::Node::Keypair</a>
|
|
259
|
-
|
|
260
|
-
<li><a href="../../Nucleon/Action/Node/Lookup.html">Nucleon::Action::Node::Lookup</a>
|
|
261
|
-
|
|
262
|
-
<li><a href="../../Nucleon/Action/Node/Provision.html">Nucleon::Action::Node::Provision</a>
|
|
263
|
-
|
|
264
|
-
<li><a href="../../Nucleon/Action/Node/Reboot.html">Nucleon::Action::Node::Reboot</a>
|
|
265
|
-
|
|
266
|
-
<li><a href="../../Nucleon/Action/Node/Revoke.html">Nucleon::Action::Node::Revoke</a>
|
|
267
|
-
|
|
268
|
-
<li><a href="../../Nucleon/Action/Node/SSH.html">Nucleon::Action::Node::SSH</a>
|
|
269
|
-
|
|
270
|
-
<li><a href="../../Nucleon/Action/Node/Seed.html">Nucleon::Action::Node::Seed</a>
|
|
271
|
-
|
|
272
|
-
<li><a href="../../Nucleon/Action/Node/Spawn.html">Nucleon::Action::Node::Spawn</a>
|
|
273
|
-
|
|
274
|
-
<li><a href="../../Nucleon/Action/Node/Start.html">Nucleon::Action::Node::Start</a>
|
|
275
|
-
|
|
276
|
-
<li><a href="../../Nucleon/Action/Node/Stop.html">Nucleon::Action::Node::Stop</a>
|
|
277
|
-
|
|
278
|
-
<li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
|
|
279
|
-
|
|
280
|
-
<li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
|
|
281
|
-
|
|
282
|
-
<li><a href="../../Nucleon/Event/Puppet.html">Nucleon::Event::Puppet</a>
|
|
283
|
-
|
|
284
|
-
<li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
|
285
|
-
|
|
286
|
-
<li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
|
287
|
-
|
|
288
|
-
<li><a href="../../Nucleon/Plugin/CloudAction.html">Nucleon::Plugin::CloudAction</a>
|
|
289
|
-
|
|
290
|
-
<li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
|
|
291
|
-
|
|
292
|
-
<li><a href="../../Nucleon/Template/Environment.html">Nucleon::Template::Environment</a>
|
|
293
|
-
|
|
294
|
-
<li><a href="../../VagrantPlugins.html">VagrantPlugins</a>
|
|
295
|
-
|
|
296
|
-
<li><a href="../../VagrantPlugins/CORL.html">VagrantPlugins::CORL</a>
|
|
297
|
-
|
|
298
|
-
<li><a href="../../VagrantPlugins/CORL/Action.html">VagrantPlugins::CORL::Action</a>
|
|
299
|
-
|
|
300
|
-
<li><a href="../../VagrantPlugins/CORL/Action/DeleteCache.html">VagrantPlugins::CORL::Action::DeleteCache</a>
|
|
301
|
-
|
|
302
|
-
<li><a href="../../VagrantPlugins/CORL/Action/InitKeys.html">VagrantPlugins::CORL::Action::InitKeys</a>
|
|
303
|
-
|
|
304
|
-
<li><a href="../../VagrantPlugins/CORL/Action/LinkNetwork.html">VagrantPlugins::CORL::Action::LinkNetwork</a>
|
|
305
|
-
|
|
306
|
-
<li><a href="../../VagrantPlugins/CORL/BaseAction.html">VagrantPlugins::CORL::BaseAction</a>
|
|
307
|
-
|
|
308
|
-
<li><a href="../../VagrantPlugins/CORL/Command.html">VagrantPlugins::CORL::Command</a>
|
|
309
|
-
|
|
310
|
-
<li><a href="../../VagrantPlugins/CORL/Command/Launcher.html">VagrantPlugins::CORL::Command::Launcher</a>
|
|
311
|
-
|
|
312
|
-
<li><a href="../../VagrantPlugins/CORL/Config.html">VagrantPlugins::CORL::Config</a>
|
|
313
|
-
|
|
314
|
-
<li><a href="../../VagrantPlugins/CORL/Config/CORL.html">VagrantPlugins::CORL::Config::CORL</a>
|
|
315
|
-
|
|
316
|
-
<li><a href="../../VagrantPlugins/CORL/Plugin.html">VagrantPlugins::CORL::Plugin</a>
|
|
317
|
-
|
|
318
|
-
<li><a href="../../VagrantPlugins/CORL/Provisioner.html">VagrantPlugins::CORL::Provisioner</a>
|
|
319
|
-
|
|
320
|
-
<li><a href="../../VagrantPlugins/CORL/Provisioner/CORL.html">VagrantPlugins::CORL::Provisioner::CORL</a>
|
|
321
|
-
|
|
322
|
-
<li><a href="../../Puppet.html">Puppet</a>
|
|
323
|
-
|
|
324
|
-
<li><a href="../../Puppet/DataBinding.html">Puppet::DataBinding</a>
|
|
325
|
-
|
|
326
|
-
<li><a href="../../Puppet/DataBinding/Corl.html">Puppet::DataBinding::Corl</a>
|
|
327
|
-
|
|
328
|
-
<li><a href="../../Puppet/Indirector.html">Puppet::Indirector</a>
|
|
329
|
-
|
|
330
|
-
<li><a href="../../Puppet/Indirector/Corl.html">Puppet::Indirector::Corl</a>
|
|
331
|
-
|
|
332
|
-
<li><a href="../../Puppet/Parser.html">Puppet::Parser</a>
|
|
333
|
-
|
|
334
|
-
<li><a href="../../Puppet/Parser/Functions.html">Puppet::Parser::Functions</a>
|
|
335
|
-
|
|
336
|
-
<li><a href="../../Fog.html">Fog</a>
|
|
337
|
-
|
|
338
|
-
<li><a href="../../Fog/Compute.html">Fog::Compute</a>
|
|
339
|
-
|
|
340
|
-
<li><a href="../../Fog/Compute/AWS.html">Fog::Compute::AWS</a>
|
|
341
|
-
|
|
342
|
-
<li><a href="../../Fog/Compute/AWS/Server.html">Fog::Compute::AWS::Server</a>
|
|
343
|
-
|
|
344
|
-
<li><a href="../../Fog/Compute/RackspaceV2.html">Fog::Compute::RackspaceV2</a>
|
|
345
|
-
|
|
346
|
-
<li><a href="../../Fog/Compute/RackspaceV2/Server.html">Fog::Compute::RackspaceV2::Server</a>
|
|
347
|
-
|
|
348
|
-
<li><a href="../../Vagrant.html">Vagrant</a>
|
|
349
|
-
|
|
350
|
-
<li><a href="../../Vagrant/Config.html">Vagrant::Config</a>
|
|
351
|
-
|
|
352
|
-
<li><a href="../../Vagrant/Config/Loader.html">Vagrant::Config::Loader</a>
|
|
353
|
-
|
|
354
|
-
<li><a href="../../Vagrant/Vagrantfile.html">Vagrant::Vagrantfile</a>
|
|
355
|
-
|
|
356
|
-
<li><a href="../../Hiera.html">Hiera</a>
|
|
357
|
-
|
|
358
|
-
<li><a href="../../Hiera/Backend.html">Hiera::Backend</a>
|
|
359
|
-
|
|
360
|
-
<li><a href="../../Hiera/Corl_logger.html">Hiera::Corl_logger</a>
|
|
361
|
-
|
|
362
|
-
<li><a href="../../Object.html">Object</a>
|
|
363
|
-
|
|
364
|
-
</ul>
|
|
365
|
-
</nav>
|
|
366
|
-
|
|
367
|
-
</div>
|
|
368
|
-
</nav>
|
|
369
|
-
|
|
370
|
-
<div id="documentation">
|
|
371
|
-
<h1 class="module">module CORL::Mixin::Lookup</h1>
|
|
372
|
-
|
|
373
|
-
<div id="description" class="description">
|
|
374
|
-
|
|
375
|
-
</div><!-- description -->
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
<!-- Methods -->
|
|
390
|
-
|
|
391
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
392
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
<div id="method-i-config_initialized-3F" class="method-detail ">
|
|
396
|
-
|
|
397
|
-
<div class="method-heading">
|
|
398
|
-
<span class="method-name">config_initialized?</span><span
|
|
399
|
-
class="method-args">()</span>
|
|
400
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
401
|
-
</div>
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
<div class="method-description">
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
<div class="method-source-code" id="config_initialized-3F-source">
|
|
411
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 130</span>
|
|
412
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">config_initialized?</span>
|
|
413
|
-
<span class="ruby-identifier">ready</span> = <span class="ruby-keyword">false</span>
|
|
414
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">hiera</span>
|
|
415
|
-
<span class="ruby-keyword">if</span> <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">admin?</span>
|
|
416
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">network_path</span> = <span class="ruby-identifier">fact</span>(<span class="ruby-value">:corl_network</span>)
|
|
417
|
-
<span class="ruby-identifier">ready</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">network_path</span>, <span class="ruby-string">'config'</span>))
|
|
418
|
-
<span class="ruby-keyword">end</span>
|
|
419
|
-
<span class="ruby-keyword">else</span>
|
|
420
|
-
<span class="ruby-identifier">ready</span> = <span class="ruby-identifier">hiera_override_dir</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">hiera_override_dir</span>)
|
|
421
|
-
<span class="ruby-keyword">end</span>
|
|
422
|
-
<span class="ruby-keyword">end</span>
|
|
423
|
-
<span class="ruby-identifier">ready</span>
|
|
424
|
-
<span class="ruby-keyword">end</span></pre>
|
|
425
|
-
</div><!-- config_initialized-3F-source -->
|
|
426
|
-
|
|
427
|
-
</div>
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
</div><!-- config_initialized-3F-method -->
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
<div id="method-i-create_fact" class="method-detail ">
|
|
436
|
-
|
|
437
|
-
<div class="method-heading">
|
|
438
|
-
<span class="method-name">create_fact</span><span
|
|
439
|
-
class="method-args">(name, value, reset = false)</span>
|
|
440
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
441
|
-
</div>
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
<div class="method-description">
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
<div class="method-source-code" id="create_fact-source">
|
|
451
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 29</span>
|
|
452
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create_fact</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
453
|
-
<span class="ruby-identifier">facts</span>(<span class="ruby-identifier">reset</span>, <span class="ruby-keyword">false</span>)
|
|
454
|
-
<span class="ruby-identifier">fact_var</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">value</span>
|
|
455
|
-
<span class="ruby-keyword">end</span></pre>
|
|
456
|
-
</div><!-- create_fact-source -->
|
|
457
|
-
|
|
458
|
-
</div>
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
</div><!-- create_fact-method -->
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
<div id="method-i-debug_lookup" class="method-detail ">
|
|
467
|
-
|
|
468
|
-
<div class="method-heading">
|
|
469
|
-
<span class="method-name">debug_lookup</span><span
|
|
470
|
-
class="method-args">(config, property, value, label)</span>
|
|
471
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
472
|
-
</div>
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
<div class="method-description">
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
<div class="method-source-code" id="debug_lookup-source">
|
|
482
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 319</span>
|
|
483
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">label</span>)
|
|
484
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:debug</span>, <span class="ruby-keyword">false</span>)
|
|
485
|
-
<span class="ruby-constant">CORL</span>.<span class="ruby-identifier">ui_group</span>(<span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Console</span>.<span class="ruby-identifier">cyan</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">to_s</span>)) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ui</span><span class="ruby-operator">|</span>
|
|
486
|
-
<span class="ruby-identifier">dump</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Console</span>.<span class="ruby-identifier">green</span>(<span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">value</span>, <span class="ruby-keyword">true</span>))
|
|
487
|
-
|
|
488
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">dump</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">/\n+/</span>)
|
|
489
|
-
<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span>(<span class="ruby-node">"#{label}:\n#{dump}"</span>)
|
|
490
|
-
<span class="ruby-keyword">else</span>
|
|
491
|
-
<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span>(<span class="ruby-node">"#{label}: #{dump}"</span>)
|
|
492
|
-
<span class="ruby-keyword">end</span>
|
|
493
|
-
<span class="ruby-keyword">end</span>
|
|
494
|
-
<span class="ruby-keyword">end</span>
|
|
495
|
-
<span class="ruby-keyword">end</span></pre>
|
|
496
|
-
</div><!-- debug_lookup-source -->
|
|
497
|
-
|
|
498
|
-
</div>
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
</div><!-- debug_lookup-method -->
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
<div id="method-i-fact" class="method-detail ">
|
|
507
|
-
|
|
508
|
-
<div class="method-heading">
|
|
509
|
-
<span class="method-name">fact</span><span
|
|
510
|
-
class="method-args">(name, reset = false)</span>
|
|
511
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
512
|
-
</div>
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
<div class="method-description">
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
<div class="method-source-code" id="fact-source">
|
|
522
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 36</span>
|
|
523
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fact</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
524
|
-
<span class="ruby-identifier">facts</span>(<span class="ruby-identifier">reset</span>, <span class="ruby-keyword">false</span>)
|
|
525
|
-
<span class="ruby-identifier">fact_var</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>]
|
|
526
|
-
<span class="ruby-keyword">end</span></pre>
|
|
527
|
-
</div><!-- fact-source -->
|
|
528
|
-
|
|
529
|
-
</div>
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
</div><!-- fact-method -->
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
<div id="method-i-fact_var" class="method-detail ">
|
|
538
|
-
|
|
539
|
-
<div class="method-heading">
|
|
540
|
-
<span class="method-name">fact_var</span><span
|
|
541
|
-
class="method-args">()</span>
|
|
542
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
543
|
-
</div>
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
<div class="method-description">
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
<div class="method-source-code" id="fact_var-source">
|
|
553
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 11</span>
|
|
554
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fact_var</span>
|
|
555
|
-
<span class="ruby-identifier">@@facts</span>
|
|
556
|
-
<span class="ruby-keyword">end</span></pre>
|
|
557
|
-
</div><!-- fact_var-source -->
|
|
558
|
-
|
|
559
|
-
</div>
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
</div><!-- fact_var-method -->
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
<div id="method-i-fact_var-3D" class="method-detail ">
|
|
568
|
-
|
|
569
|
-
<div class="method-heading">
|
|
570
|
-
<span class="method-name">fact_var=</span><span
|
|
571
|
-
class="method-args">(facts)</span>
|
|
572
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
573
|
-
</div>
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
<div class="method-description">
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
<div class="method-source-code" id="fact_var-3D-source">
|
|
583
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 15</span>
|
|
584
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fact_var=</span><span class="ruby-identifier">facts</span>
|
|
585
|
-
<span class="ruby-identifier">@@facts</span> = <span class="ruby-identifier">facts</span>
|
|
586
|
-
<span class="ruby-keyword">end</span></pre>
|
|
587
|
-
</div><!-- fact_var-3D-source -->
|
|
588
|
-
|
|
589
|
-
</div>
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
</div><!-- fact_var-3D-method -->
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
<div id="method-i-facts" class="method-detail ">
|
|
598
|
-
|
|
599
|
-
<div class="method-heading">
|
|
600
|
-
<span class="method-name">facts</span><span
|
|
601
|
-
class="method-args">(reset = false, clone = true)</span>
|
|
602
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
603
|
-
</div>
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
<div class="method-description">
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
<div class="method-source-code" id="facts-source">
|
|
613
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 21</span>
|
|
614
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">facts</span>(<span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>, <span class="ruby-identifier">clone</span> = <span class="ruby-keyword">true</span>) <span class="ruby-comment"># Override if needed. (See node plugin)</span>
|
|
615
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">fact_var</span> = <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">facts</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">reset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">fact_var</span>.<span class="ruby-identifier">nil?</span>
|
|
616
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">fact_var</span>.<span class="ruby-identifier">clone</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">clone</span>
|
|
617
|
-
<span class="ruby-identifier">fact_var</span>
|
|
618
|
-
<span class="ruby-keyword">end</span></pre>
|
|
619
|
-
</div><!-- facts-source -->
|
|
620
|
-
|
|
621
|
-
</div>
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
</div><!-- facts-method -->
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
<div id="method-i-hiera" class="method-detail ">
|
|
630
|
-
|
|
631
|
-
<div class="method-heading">
|
|
632
|
-
<span class="method-name">hiera</span><span
|
|
633
|
-
class="method-args">(reset = false)</span>
|
|
634
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
635
|
-
</div>
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
<div class="method-description">
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
<div class="method-source-code" id="hiera-source">
|
|
645
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 122</span>
|
|
646
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">hiera</span>(<span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
647
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">hiera_var</span> = <span class="ruby-constant">Hiera</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:config</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">hiera_configuration</span>(<span class="ruby-identifier">facts</span>(<span class="ruby-identifier">reset</span>))) <span class="ruby-keyword">if</span> <span class="ruby-identifier">reset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">hiera_var</span>.<span class="ruby-identifier">nil?</span>
|
|
648
|
-
<span class="ruby-identifier">hiera_var</span>
|
|
649
|
-
<span class="ruby-keyword">end</span></pre>
|
|
650
|
-
</div><!-- hiera-source -->
|
|
651
|
-
|
|
652
|
-
</div>
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
</div><!-- hiera-method -->
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
<div id="method-i-hiera_configuration" class="method-detail ">
|
|
661
|
-
|
|
662
|
-
<div class="method-heading">
|
|
663
|
-
<span class="method-name">hiera_configuration</span><span
|
|
664
|
-
class="method-args">(local_facts = {})</span>
|
|
665
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
666
|
-
</div>
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
<div class="method-description">
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
<div class="method-source-code" id="hiera_configuration-source">
|
|
676
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 68</span>
|
|
677
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">hiera_configuration</span>(<span class="ruby-identifier">local_facts</span> = {})
|
|
678
|
-
<span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">load</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword">__FILE__</span>), <span class="ruby-string">'..'</span>, <span class="ruby-string">'mod'</span>, <span class="ruby-string">'hiera_backend.rb'</span>)
|
|
679
|
-
|
|
680
|
-
<span class="ruby-identifier">backends</span> = <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">value</span>(<span class="ruby-value">:hiera_backends</span>, [ <span class="ruby-string">"json"</span>, <span class="ruby-string">"yaml"</span> ])
|
|
681
|
-
<span class="ruby-identifier">config_file</span> = <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">value</span>(<span class="ruby-value">:hiera_config_file</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Hiera</span><span class="ruby-operator">::</span><span class="ruby-constant">Util</span>.<span class="ruby-identifier">config_dir</span>, <span class="ruby-string">'hiera.yaml'</span>))
|
|
682
|
-
<span class="ruby-identifier">config</span> = {}
|
|
683
|
-
|
|
684
|
-
<span class="ruby-keyword">if</span> <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">admin?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">config_file</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">config_file</span>)
|
|
685
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Hiera</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">config_file</span>)
|
|
686
|
-
<span class="ruby-keyword">end</span>
|
|
687
|
-
<span class="ruby-identifier">config</span>[<span class="ruby-value">:logger</span>] = <span class="ruby-value">:corl</span>
|
|
688
|
-
|
|
689
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">config</span>[<span class="ruby-value">:merge_behavior</span>]
|
|
690
|
-
<span class="ruby-identifier">config</span>[<span class="ruby-value">:merge_behavior</span>] = <span class="ruby-string">"deeper"</span>
|
|
691
|
-
<span class="ruby-keyword">end</span>
|
|
692
|
-
|
|
693
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">config</span>[<span class="ruby-value">:backends</span>]
|
|
694
|
-
<span class="ruby-identifier">config</span>[<span class="ruby-value">:backends</span>] = <span class="ruby-identifier">backends</span>
|
|
695
|
-
<span class="ruby-keyword">end</span>
|
|
696
|
-
|
|
697
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">override_dir</span> = <span class="ruby-identifier">hiera_override_dir</span>
|
|
698
|
-
<span class="ruby-identifier">backends</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">backend</span><span class="ruby-operator">|</span>
|
|
699
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">config</span>[<span class="ruby-value">:backends</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">backend</span>)
|
|
700
|
-
<span class="ruby-identifier">backend</span> = <span class="ruby-identifier">backend</span>.<span class="ruby-identifier">to_sym</span>
|
|
701
|
-
<span class="ruby-identifier">config</span>[<span class="ruby-identifier">backend</span>] = {} <span class="ruby-keyword">unless</span> <span class="ruby-identifier">config</span>[<span class="ruby-identifier">backend</span>]
|
|
702
|
-
<span class="ruby-identifier">config</span>[<span class="ruby-identifier">backend</span>][<span class="ruby-value">:datadir</span>] = <span class="ruby-identifier">override_dir</span>
|
|
703
|
-
<span class="ruby-keyword">end</span>
|
|
704
|
-
<span class="ruby-keyword">end</span>
|
|
705
|
-
<span class="ruby-keyword">end</span>
|
|
706
|
-
|
|
707
|
-
<span class="ruby-identifier">hiera_config</span> = <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">config</span>(<span class="ruby-value">:hiera</span>, <span class="ruby-identifier">config</span>)
|
|
708
|
-
<span class="ruby-identifier">loaded_facts</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">prefix</span>(<span class="ruby-identifier">hiera_lookup_prefix</span>, <span class="ruby-identifier">local_facts</span>, <span class="ruby-string">''</span>)
|
|
709
|
-
|
|
710
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">hiera_config</span>[<span class="ruby-value">:hierarchy</span>]
|
|
711
|
-
<span class="ruby-identifier">hiera_config</span>[<span class="ruby-value">:hierarchy</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-string">'common'</span>)
|
|
712
|
-
<span class="ruby-keyword">end</span>
|
|
713
|
-
|
|
714
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">loaded_facts</span>.<span class="ruby-identifier">empty?</span>
|
|
715
|
-
<span class="ruby-identifier">hiera_config</span>[<span class="ruby-value">:hierarchy</span>].<span class="ruby-identifier">collect!</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">search</span><span class="ruby-operator">|</span>
|
|
716
|
-
<span class="ruby-constant">Hiera</span><span class="ruby-operator">::</span><span class="ruby-constant">Interpolate</span>.<span class="ruby-identifier">interpolate</span>(<span class="ruby-identifier">search</span>, <span class="ruby-identifier">loaded_facts</span>, {})
|
|
717
|
-
<span class="ruby-keyword">end</span>
|
|
718
|
-
<span class="ruby-keyword">end</span>
|
|
719
|
-
|
|
720
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">hiera_config</span>[<span class="ruby-value">:hierarchy</span>]
|
|
721
|
-
<span class="ruby-identifier">hiera_config</span>[<span class="ruby-value">:hierarchy</span>] = [ <span class="ruby-string">'common'</span> ]
|
|
722
|
-
<span class="ruby-keyword">end</span>
|
|
723
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">hiera_config</span>[<span class="ruby-value">:hierarchy</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-string">'common'</span>)
|
|
724
|
-
<span class="ruby-identifier">hiera_config</span>[<span class="ruby-value">:hierarchy</span>] <span class="ruby-operator"><<</span> <span class="ruby-string">'common'</span>
|
|
725
|
-
<span class="ruby-keyword">end</span>
|
|
726
|
-
<span class="ruby-identifier">hiera_config</span>.<span class="ruby-identifier">export</span>
|
|
727
|
-
<span class="ruby-keyword">end</span></pre>
|
|
728
|
-
</div><!-- hiera_configuration-source -->
|
|
729
|
-
|
|
730
|
-
</div>
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
</div><!-- hiera_configuration-method -->
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
<div id="method-i-hiera_lookup_prefix" class="method-detail ">
|
|
739
|
-
|
|
740
|
-
<div class="method-heading">
|
|
741
|
-
<span class="method-name">hiera_lookup_prefix</span><span
|
|
742
|
-
class="method-args">()</span>
|
|
743
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
744
|
-
</div>
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
<div class="method-description">
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
<div class="method-source-code" id="hiera_lookup_prefix-source">
|
|
754
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 62</span>
|
|
755
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">hiera_lookup_prefix</span>
|
|
756
|
-
<span class="ruby-string">'::'</span>
|
|
757
|
-
<span class="ruby-keyword">end</span></pre>
|
|
758
|
-
</div><!-- hiera_lookup_prefix-source -->
|
|
759
|
-
|
|
760
|
-
</div>
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
</div><!-- hiera_lookup_prefix-method -->
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
<div id="method-i-hiera_override_dir" class="method-detail ">
|
|
769
|
-
|
|
770
|
-
<div class="method-heading">
|
|
771
|
-
<span class="method-name">hiera_override_dir</span><span
|
|
772
|
-
class="method-args">()</span>
|
|
773
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
774
|
-
</div>
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
<div class="method-description">
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
<div class="method-source-code" id="hiera_override_dir-source">
|
|
784
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 56</span>
|
|
785
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">hiera_override_dir</span>
|
|
786
|
-
<span class="ruby-keyword">nil</span> <span class="ruby-comment"># Override if needed. (See network and node plugins)</span>
|
|
787
|
-
<span class="ruby-keyword">end</span></pre>
|
|
788
|
-
</div><!-- hiera_override_dir-source -->
|
|
789
|
-
|
|
790
|
-
</div>
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
</div><!-- hiera_override_dir-method -->
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
<div id="method-i-hiera_var" class="method-detail ">
|
|
799
|
-
|
|
800
|
-
<div class="method-heading">
|
|
801
|
-
<span class="method-name">hiera_var</span><span
|
|
802
|
-
class="method-args">()</span>
|
|
803
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
804
|
-
</div>
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
<div class="method-description">
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
<div class="method-source-code" id="hiera_var-source">
|
|
814
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 46</span>
|
|
815
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">hiera_var</span>
|
|
816
|
-
<span class="ruby-identifier">@@hiera</span>
|
|
817
|
-
<span class="ruby-keyword">end</span></pre>
|
|
818
|
-
</div><!-- hiera_var-source -->
|
|
819
|
-
|
|
820
|
-
</div>
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
</div><!-- hiera_var-method -->
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
<div id="method-i-hiera_var-3D" class="method-detail ">
|
|
829
|
-
|
|
830
|
-
<div class="method-heading">
|
|
831
|
-
<span class="method-name">hiera_var=</span><span
|
|
832
|
-
class="method-args">(hiera)</span>
|
|
833
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
834
|
-
</div>
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
<div class="method-description">
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
<div class="method-source-code" id="hiera_var-3D-source">
|
|
844
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 50</span>
|
|
845
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">hiera_var=</span><span class="ruby-identifier">hiera</span>
|
|
846
|
-
<span class="ruby-identifier">@@hiera</span> = <span class="ruby-identifier">hiera</span>
|
|
847
|
-
<span class="ruby-keyword">end</span></pre>
|
|
848
|
-
</div><!-- hiera_var-3D-source -->
|
|
849
|
-
|
|
850
|
-
</div>
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
</div><!-- hiera_var-3D-method -->
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
<div id="method-i-lookup" class="method-detail ">
|
|
859
|
-
|
|
860
|
-
<div class="method-heading">
|
|
861
|
-
<span class="method-name">lookup</span><span
|
|
862
|
-
class="method-args">(properties, default = nil, options = {})</span>
|
|
863
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
864
|
-
</div>
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
<div class="method-description">
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
<div class="method-source-code" id="lookup-source">
|
|
874
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 146</span>
|
|
875
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">default</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">options</span> = {})
|
|
876
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">export</span>)
|
|
877
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>
|
|
878
|
-
|
|
879
|
-
<span class="ruby-identifier">node</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:node</span>, <span class="ruby-keyword">nil</span>)
|
|
880
|
-
|
|
881
|
-
<span class="ruby-identifier">provisioner</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:provisioner</span>, <span class="ruby-keyword">nil</span>)
|
|
882
|
-
|
|
883
|
-
<span class="ruby-identifier">hiera_scope</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:hiera_scope</span>, {})
|
|
884
|
-
<span class="ruby-identifier">override</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:override</span>, <span class="ruby-keyword">nil</span>)
|
|
885
|
-
<span class="ruby-identifier">context</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:context</span>, <span class="ruby-value">:priority</span>)
|
|
886
|
-
<span class="ruby-identifier">debug</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:debug</span>, <span class="ruby-keyword">false</span>)
|
|
887
|
-
|
|
888
|
-
<span class="ruby-identifier">return_property</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:return_property</span>, <span class="ruby-keyword">false</span>)
|
|
889
|
-
|
|
890
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">default</span>, <span class="ruby-identifier">config</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">node</span>
|
|
891
|
-
|
|
892
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">properties</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
893
|
-
<span class="ruby-identifier">properties</span> = [ <span class="ruby-identifier">properties</span> ].<span class="ruby-identifier">flatten</span>
|
|
894
|
-
<span class="ruby-keyword">end</span>
|
|
895
|
-
|
|
896
|
-
<span class="ruby-identifier">first_property</span> = <span class="ruby-keyword">nil</span>
|
|
897
|
-
<span class="ruby-identifier">properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">property</span><span class="ruby-operator">|</span>
|
|
898
|
-
<span class="ruby-identifier">property</span> = <span class="ruby-identifier">property</span>.<span class="ruby-identifier">to_sym</span>
|
|
899
|
-
<span class="ruby-identifier">first_property</span> = <span class="ruby-identifier">property</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">first_property</span>
|
|
900
|
-
|
|
901
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">debug</span>
|
|
902
|
-
<span class="ruby-constant">CORL</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"\n"</span>, { <span class="ruby-value">:prefix</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> })
|
|
903
|
-
<span class="ruby-constant">CORL</span>.<span class="ruby-identifier">ui_group</span>(<span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Console</span>.<span class="ruby-identifier">purple</span>(<span class="ruby-identifier">property</span>)) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ui</span><span class="ruby-operator">|</span>
|
|
904
|
-
<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"-----------------------------------------------------"</span>)
|
|
905
|
-
<span class="ruby-keyword">end</span>
|
|
906
|
-
<span class="ruby-keyword">end</span>
|
|
907
|
-
|
|
908
|
-
<span class="ruby-comment"># Try to load facts first (these can not be overridden)</span>
|
|
909
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">fact</span>(<span class="ruby-identifier">property</span>)
|
|
910
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Fact lookup"</span>)
|
|
911
|
-
|
|
912
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>
|
|
913
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">config_initialized?</span>
|
|
914
|
-
<span class="ruby-comment"># Try to find in Hiera data store</span>
|
|
915
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">hiera_scope</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-string">'[]'</span>)
|
|
916
|
-
<span class="ruby-identifier">hiera_scope</span> = <span class="ruby-constant">Hiera</span><span class="ruby-operator">::</span><span class="ruby-constant">Scope</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">hiera_scope</span>)
|
|
917
|
-
<span class="ruby-keyword">end</span>
|
|
918
|
-
|
|
919
|
-
<span class="ruby-identifier">hiera_scope</span> = <span class="ruby-identifier">string_map</span>(<span class="ruby-identifier">hiera_scope</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">hiera_scope</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
|
920
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">hiera</span>.<span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">hiera_scope</span>, <span class="ruby-identifier">override</span>, <span class="ruby-identifier">context</span>)
|
|
921
|
-
|
|
922
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Hiera lookup"</span>)
|
|
923
|
-
<span class="ruby-keyword">end</span>
|
|
924
|
-
|
|
925
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">provisioner</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
|
|
926
|
-
<span class="ruby-comment"># Search the provisioner scope (only admins can provision a machine)</span>
|
|
927
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">provisioner</span>({ <span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value">:lookup</span> }, <span class="ruby-identifier">provisioner</span>).<span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">default</span>, <span class="ruby-identifier">config</span>)
|
|
928
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Provisioner lookup"</span>)
|
|
929
|
-
<span class="ruby-keyword">end</span>
|
|
930
|
-
<span class="ruby-keyword">end</span>
|
|
931
|
-
<span class="ruby-keyword">end</span>
|
|
932
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-comment"># Resort to default</span>
|
|
933
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">default</span>
|
|
934
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">first_property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Default value"</span>)
|
|
935
|
-
<span class="ruby-keyword">end</span>
|
|
936
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:undefined_value</span>, <span class="ruby-value">:undefined</span>))
|
|
937
|
-
|
|
938
|
-
<span class="ruby-keyword">if</span> <span class="ruby-constant">Config</span>.<span class="ruby-identifier">get_property</span>(<span class="ruby-identifier">first_property</span>).<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">value</span>
|
|
939
|
-
<span class="ruby-constant">Config</span>.<span class="ruby-identifier">set_property</span>(<span class="ruby-identifier">first_property</span>, <span class="ruby-identifier">value</span>)
|
|
940
|
-
<span class="ruby-keyword">end</span>
|
|
941
|
-
|
|
942
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">first_property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">'Internalized value'</span>)
|
|
943
|
-
|
|
944
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">return_property</span>
|
|
945
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">value</span>, <span class="ruby-identifier">first_property</span>
|
|
946
|
-
<span class="ruby-keyword">end</span>
|
|
947
|
-
<span class="ruby-constant">CORL</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"\n"</span>, { <span class="ruby-value">:prefix</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> }) <span class="ruby-keyword">if</span> <span class="ruby-identifier">debug</span>
|
|
948
|
-
<span class="ruby-identifier">value</span>
|
|
949
|
-
<span class="ruby-keyword">end</span></pre>
|
|
950
|
-
</div><!-- lookup-source -->
|
|
951
|
-
|
|
952
|
-
</div>
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
</div><!-- lookup-method -->
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
<div id="method-i-lookup_array" class="method-detail ">
|
|
961
|
-
|
|
962
|
-
<div class="method-heading">
|
|
963
|
-
<span class="method-name">lookup_array</span><span
|
|
964
|
-
class="method-args">(properties, default = [], options = {})</span>
|
|
965
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
966
|
-
</div>
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
<div class="method-description">
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
<div class="method-source-code" id="lookup_array-source">
|
|
976
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 224</span>
|
|
977
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">lookup_array</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">default</span> = [], <span class="ruby-identifier">options</span> = {})
|
|
978
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
|
979
|
-
<span class="ruby-identifier">value</span>, <span class="ruby-identifier">property</span> = <span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">config</span>.<span class="ruby-identifier">import</span>({ <span class="ruby-value">:return_property</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:context</span> =<span class="ruby-operator">></span> <span class="ruby-value">:array</span> }))
|
|
980
|
-
|
|
981
|
-
<span class="ruby-keyword">if</span> <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">undef?</span>(<span class="ruby-identifier">value</span>)
|
|
982
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">default</span>
|
|
983
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Array default value"</span>)
|
|
984
|
-
|
|
985
|
-
<span class="ruby-keyword">elsif</span> <span class="ruby-operator">!</span> <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">empty?</span>(<span class="ruby-identifier">default</span>)
|
|
986
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:merge</span>, <span class="ruby-keyword">false</span>)
|
|
987
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">merge</span>([<span class="ruby-identifier">default</span>, <span class="ruby-identifier">value</span>], <span class="ruby-identifier">config</span>)
|
|
988
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Merged array value with default"</span>)
|
|
989
|
-
<span class="ruby-keyword">end</span>
|
|
990
|
-
<span class="ruby-keyword">end</span>
|
|
991
|
-
|
|
992
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
993
|
-
<span class="ruby-identifier">value</span> = ( <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">empty?</span>(<span class="ruby-identifier">value</span>) <span class="ruby-operator">?</span> [] <span class="ruby-operator">:</span> [ <span class="ruby-identifier">value</span> ] )
|
|
994
|
-
<span class="ruby-keyword">end</span>
|
|
995
|
-
|
|
996
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:undefined_value</span>, <span class="ruby-value">:undefined</span>))
|
|
997
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Final array value"</span>)
|
|
998
|
-
|
|
999
|
-
<span class="ruby-constant">Config</span>.<span class="ruby-identifier">set_property</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>)
|
|
1000
|
-
<span class="ruby-constant">CORL</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"\n"</span>, { <span class="ruby-value">:prefix</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> }) <span class="ruby-keyword">if</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:debug</span>, <span class="ruby-keyword">false</span>)
|
|
1001
|
-
<span class="ruby-identifier">value</span>
|
|
1002
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1003
|
-
</div><!-- lookup_array-source -->
|
|
1004
|
-
|
|
1005
|
-
</div>
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
</div><!-- lookup_array-method -->
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
<div id="method-i-lookup_hash" class="method-detail ">
|
|
1014
|
-
|
|
1015
|
-
<div class="method-heading">
|
|
1016
|
-
<span class="method-name">lookup_hash</span><span
|
|
1017
|
-
class="method-args">(properties, default = {}, options = {})</span>
|
|
1018
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
1019
|
-
</div>
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
<div class="method-description">
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
<div class="method-source-code" id="lookup_hash-source">
|
|
1029
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 253</span>
|
|
1030
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">lookup_hash</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">default</span> = {}, <span class="ruby-identifier">options</span> = {})
|
|
1031
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
|
1032
|
-
<span class="ruby-identifier">value</span>, <span class="ruby-identifier">property</span> = <span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">config</span>.<span class="ruby-identifier">import</span>({ <span class="ruby-value">:return_property</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:context</span> =<span class="ruby-operator">></span> <span class="ruby-value">:hash</span> }))
|
|
1033
|
-
|
|
1034
|
-
<span class="ruby-keyword">if</span> <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">undef?</span>(<span class="ruby-identifier">value</span>)
|
|
1035
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">default</span>
|
|
1036
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Hash default value"</span>)
|
|
1037
|
-
|
|
1038
|
-
<span class="ruby-keyword">elsif</span> <span class="ruby-operator">!</span> <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">empty?</span>(<span class="ruby-identifier">default</span>)
|
|
1039
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:merge</span>, <span class="ruby-keyword">false</span>)
|
|
1040
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">merge</span>([<span class="ruby-identifier">default</span>, <span class="ruby-identifier">value</span>], <span class="ruby-identifier">config</span>)
|
|
1041
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Merged hash value with default"</span>)
|
|
1042
|
-
<span class="ruby-keyword">end</span>
|
|
1043
|
-
<span class="ruby-keyword">end</span>
|
|
1044
|
-
|
|
1045
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
|
1046
|
-
<span class="ruby-identifier">value</span> = ( <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">empty?</span>(<span class="ruby-identifier">value</span>) <span class="ruby-operator">?</span> {} <span class="ruby-operator">:</span> { <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">value</span> } )
|
|
1047
|
-
<span class="ruby-keyword">end</span>
|
|
1048
|
-
|
|
1049
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:undefined_value</span>, <span class="ruby-value">:undefined</span>))
|
|
1050
|
-
<span class="ruby-identifier">debug_lookup</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>, <span class="ruby-string">"Final hash value"</span>)
|
|
1051
|
-
|
|
1052
|
-
<span class="ruby-constant">Config</span>.<span class="ruby-identifier">set_property</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">value</span>)
|
|
1053
|
-
<span class="ruby-constant">CORL</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"\n"</span>, { <span class="ruby-value">:prefix</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span> }) <span class="ruby-keyword">if</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:debug</span>, <span class="ruby-keyword">false</span>)
|
|
1054
|
-
<span class="ruby-identifier">value</span>
|
|
1055
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1056
|
-
</div><!-- lookup_hash-source -->
|
|
1057
|
-
|
|
1058
|
-
</div>
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
</div><!-- lookup_hash-method -->
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
<div id="method-i-normalize" class="method-detail ">
|
|
1067
|
-
|
|
1068
|
-
<div class="method-heading">
|
|
1069
|
-
<span class="method-name">normalize</span><span
|
|
1070
|
-
class="method-args">(data, override = nil, options = {})</span>
|
|
1071
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
1072
|
-
</div>
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
<div class="method-description">
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
<div class="method-source-code" id="normalize-source">
|
|
1082
|
-
<pre><span class="ruby-comment"># File lib/core/mixin/lookup.rb, line 282</span>
|
|
1083
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">override</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">options</span> = {})
|
|
1084
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">import</span>({ <span class="ruby-value">:context</span> =<span class="ruby-operator">></span> <span class="ruby-value">:hash</span> })
|
|
1085
|
-
<span class="ruby-identifier">results</span> = {}
|
|
1086
|
-
|
|
1087
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">undef?</span>(<span class="ruby-identifier">override</span>)
|
|
1088
|
-
<span class="ruby-keyword">case</span> <span class="ruby-identifier">data</span>
|
|
1089
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>, <span class="ruby-constant">Symbol</span>
|
|
1090
|
-
<span class="ruby-identifier">data</span> = [ <span class="ruby-identifier">data</span>, <span class="ruby-identifier">override</span> ] <span class="ruby-keyword">if</span> <span class="ruby-identifier">data</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">override</span>
|
|
1091
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Array</span>
|
|
1092
|
-
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">override</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">override</span>)
|
|
1093
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Hash</span>
|
|
1094
|
-
<span class="ruby-identifier">data</span> = [ <span class="ruby-identifier">data</span>, <span class="ruby-identifier">override</span> ]
|
|
1095
|
-
<span class="ruby-keyword">end</span>
|
|
1096
|
-
<span class="ruby-keyword">end</span>
|
|
1097
|
-
|
|
1098
|
-
<span class="ruby-keyword">case</span> <span class="ruby-identifier">data</span>
|
|
1099
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>, <span class="ruby-constant">Symbol</span>
|
|
1100
|
-
<span class="ruby-identifier">results</span> = <span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">data</span>.<span class="ruby-identifier">to_s</span>, {}, <span class="ruby-identifier">config</span>)
|
|
1101
|
-
|
|
1102
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Array</span>
|
|
1103
|
-
<span class="ruby-identifier">data</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
|
|
1104
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>)
|
|
1105
|
-
<span class="ruby-identifier">item</span> = <span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">item</span>.<span class="ruby-identifier">to_s</span>, {}, <span class="ruby-identifier">config</span>)
|
|
1106
|
-
<span class="ruby-keyword">end</span>
|
|
1107
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">undef?</span>(<span class="ruby-identifier">item</span>)
|
|
1108
|
-
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">merge</span>([ <span class="ruby-identifier">results</span>, <span class="ruby-identifier">item</span> ], <span class="ruby-identifier">config</span>)
|
|
1109
|
-
<span class="ruby-keyword">end</span>
|
|
1110
|
-
<span class="ruby-keyword">end</span>
|
|
1111
|
-
|
|
1112
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Hash</span>
|
|
1113
|
-
<span class="ruby-identifier">results</span> = <span class="ruby-identifier">data</span>
|
|
1114
|
-
<span class="ruby-keyword">end</span>
|
|
1115
|
-
<span class="ruby-identifier">results</span>
|
|
1116
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1117
|
-
</div><!-- normalize-source -->
|
|
1118
|
-
|
|
1119
|
-
</div>
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
</div><!-- normalize-method -->
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
</section><!-- public-instance-method-details -->
|
|
1128
|
-
|
|
1129
|
-
</section><!-- 5Buntitled-5D -->
|
|
1130
|
-
|
|
1131
|
-
</div><!-- documentation -->
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
<footer id="validator-badges">
|
|
1135
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
1136
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
|
1137
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
1138
|
-
</footer>
|
|
1139
|
-
|