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,1115 +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>class CORL::Plugin::Provisioner - 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="class">
|
|
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/plugin/provisioner.rb
|
|
51
|
-
</ul>
|
|
52
|
-
</nav>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div id="class-metadata">
|
|
58
|
-
|
|
59
|
-
<nav id="parent-class-section" class="section">
|
|
60
|
-
<h3 class="section-header">Parent</h3>
|
|
61
|
-
|
|
62
|
-
<p class="link">CORL.plugin_class(:nucleon, :base)
|
|
63
|
-
|
|
64
|
-
</nav>
|
|
65
|
-
|
|
66
|
-
<!-- Included Modules -->
|
|
67
|
-
<nav id="includes-section" class="section">
|
|
68
|
-
<h3 class="section-header">Included Modules</h3>
|
|
69
|
-
|
|
70
|
-
<ul class="link-list">
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<li><span class="include">Parallel</span>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<li><a class="include" href="../Mixin/Builder/Instance.html">CORL::Mixin::Builder::Instance</a>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</ul>
|
|
81
|
-
</nav>
|
|
82
|
-
|
|
83
|
-
<!-- Method Quickref -->
|
|
84
|
-
<nav id="method-list-section" class="section">
|
|
85
|
-
<h3 class="section-header">Methods</h3>
|
|
86
|
-
|
|
87
|
-
<ul class="link-list">
|
|
88
|
-
|
|
89
|
-
<li><a href="#method-i-build">#build</a>
|
|
90
|
-
|
|
91
|
-
<li><a href="#method-i-build_dependencies">#build_dependencies</a>
|
|
92
|
-
|
|
93
|
-
<li><a href="#method-i-build_directory">#build_directory</a>
|
|
94
|
-
|
|
95
|
-
<li><a href="#method-i-build_info">#build_info</a>
|
|
96
|
-
|
|
97
|
-
<li><a href="#method-i-build_locations">#build_locations</a>
|
|
98
|
-
|
|
99
|
-
<li><a href="#method-i-build_profile">#build_profile</a>
|
|
100
|
-
|
|
101
|
-
<li><a href="#method-i-build_profiles">#build_profiles</a>
|
|
102
|
-
|
|
103
|
-
<li><a href="#method-i-build_provider">#build_provider</a>
|
|
104
|
-
|
|
105
|
-
<li><a href="#method-i-directory">#directory</a>
|
|
106
|
-
|
|
107
|
-
<li><a href="#method-i-directory-3D">#directory=</a>
|
|
108
|
-
|
|
109
|
-
<li><a href="#method-i-find_profiles">#find_profiles</a>
|
|
110
|
-
|
|
111
|
-
<li><a href="#method-i-gateway">#gateway</a>
|
|
112
|
-
|
|
113
|
-
<li><a href="#method-i-gateway-3D">#gateway=</a>
|
|
114
|
-
|
|
115
|
-
<li><a href="#method-i-initialized-3F">#initialized?</a>
|
|
116
|
-
|
|
117
|
-
<li><a href="#method-i-normalize">#normalize</a>
|
|
118
|
-
|
|
119
|
-
<li><a href="#method-i-package_gateways">#package_gateways</a>
|
|
120
|
-
|
|
121
|
-
<li><a href="#method-i-profile_dependencies">#profile_dependencies</a>
|
|
122
|
-
|
|
123
|
-
<li><a href="#method-i-register">#register</a>
|
|
124
|
-
|
|
125
|
-
<li><a href="#method-i-supported_profiles">#supported_profiles</a>
|
|
126
|
-
|
|
127
|
-
</ul>
|
|
128
|
-
</nav>
|
|
129
|
-
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
<div id="project-metadata">
|
|
133
|
-
<nav id="fileindex-section" class="section project-section">
|
|
134
|
-
<h3 class="section-header">Pages</h3>
|
|
135
|
-
|
|
136
|
-
<ul>
|
|
137
|
-
|
|
138
|
-
<li class="file"><a href="../../README_rdoc.html">README</a>
|
|
139
|
-
|
|
140
|
-
</ul>
|
|
141
|
-
</nav>
|
|
142
|
-
|
|
143
|
-
<nav id="classindex-section" class="section project-section">
|
|
144
|
-
<h3 class="section-header">Class and Module Index</h3>
|
|
145
|
-
|
|
146
|
-
<ul class="link-list">
|
|
147
|
-
|
|
148
|
-
<li><a href="../../CORL.html">CORL</a>
|
|
149
|
-
|
|
150
|
-
<li><a href="../../CORL/Build.html">CORL::Build</a>
|
|
151
|
-
|
|
152
|
-
<li><a href="../../CORL/Builder.html">CORL::Builder</a>
|
|
153
|
-
|
|
154
|
-
<li><a href="../../CORL/Builder/Identity.html">CORL::Builder::Identity</a>
|
|
155
|
-
|
|
156
|
-
<li><a href="../../CORL/Builder/Package.html">CORL::Builder::Package</a>
|
|
157
|
-
|
|
158
|
-
<li><a href="../../CORL/Configuration.html">CORL::Configuration</a>
|
|
159
|
-
|
|
160
|
-
<li><a href="../../CORL/Configuration/File.html">CORL::Configuration::File</a>
|
|
161
|
-
|
|
162
|
-
<li><a href="../../CORL/Errors.html">CORL::Errors</a>
|
|
163
|
-
|
|
164
|
-
<li><a href="../../CORL/Facade.html">CORL::Facade</a>
|
|
165
|
-
|
|
166
|
-
<li><a href="../../CORL/Machine.html">CORL::Machine</a>
|
|
167
|
-
|
|
168
|
-
<li><a href="../../CORL/Machine/AWS.html">CORL::Machine::AWS</a>
|
|
169
|
-
|
|
170
|
-
<li><a href="../../CORL/Machine/Fog.html">CORL::Machine::Fog</a>
|
|
171
|
-
|
|
172
|
-
<li><a href="../../CORL/Machine/Physical.html">CORL::Machine::Physical</a>
|
|
173
|
-
|
|
174
|
-
<li><a href="../../CORL/Machine/Rackspace.html">CORL::Machine::Rackspace</a>
|
|
175
|
-
|
|
176
|
-
<li><a href="../../CORL/Machine/Vagrant.html">CORL::Machine::Vagrant</a>
|
|
177
|
-
|
|
178
|
-
<li><a href="../../CORL/Mixin.html">CORL::Mixin</a>
|
|
179
|
-
|
|
180
|
-
<li><a href="../../CORL/Mixin/Action.html">CORL::Mixin::Action</a>
|
|
181
|
-
|
|
182
|
-
<li><a href="../../CORL/Mixin/Action/Keypair.html">CORL::Mixin::Action::Keypair</a>
|
|
183
|
-
|
|
184
|
-
<li><a href="../../CORL/Mixin/Builder.html">CORL::Mixin::Builder</a>
|
|
185
|
-
|
|
186
|
-
<li><a href="../../CORL/Mixin/Builder/Global.html">CORL::Mixin::Builder::Global</a>
|
|
187
|
-
|
|
188
|
-
<li><a href="../../CORL/Mixin/Builder/Instance.html">CORL::Mixin::Builder::Instance</a>
|
|
189
|
-
|
|
190
|
-
<li><a href="../../CORL/Mixin/Lookup.html">CORL::Mixin::Lookup</a>
|
|
191
|
-
|
|
192
|
-
<li><a href="../../CORL/Mixin/Machine.html">CORL::Mixin::Machine</a>
|
|
193
|
-
|
|
194
|
-
<li><a href="../../CORL/Mixin/Machine/SSH.html">CORL::Mixin::Machine::SSH</a>
|
|
195
|
-
|
|
196
|
-
<li><a href="../../CORL/Mixin/Macro.html">CORL::Mixin::Macro</a>
|
|
197
|
-
|
|
198
|
-
<li><a href="../../CORL/Mixin/Macro/NetworkSettings.html">CORL::Mixin::Macro::NetworkSettings</a>
|
|
199
|
-
|
|
200
|
-
<li><a href="../../CORL/Network.html">CORL::Network</a>
|
|
201
|
-
|
|
202
|
-
<li><a href="../../CORL/Network/CORL.html">CORL::Network::CORL</a>
|
|
203
|
-
|
|
204
|
-
<li><a href="../../CORL/Node.html">CORL::Node</a>
|
|
205
|
-
|
|
206
|
-
<li><a href="../../CORL/Node/AWS.html">CORL::Node::AWS</a>
|
|
207
|
-
|
|
208
|
-
<li><a href="../../CORL/Node/Fog.html">CORL::Node::Fog</a>
|
|
209
|
-
|
|
210
|
-
<li><a href="../../CORL/Node/Local.html">CORL::Node::Local</a>
|
|
211
|
-
|
|
212
|
-
<li><a href="../../CORL/Node/Rackspace.html">CORL::Node::Rackspace</a>
|
|
213
|
-
|
|
214
|
-
<li><a href="../../CORL/Node/Vagrant.html">CORL::Node::Vagrant</a>
|
|
215
|
-
|
|
216
|
-
<li><a href="../../CORL/Plugin.html">CORL::Plugin</a>
|
|
217
|
-
|
|
218
|
-
<li><a href="../../CORL/Plugin/Builder.html">CORL::Plugin::Builder</a>
|
|
219
|
-
|
|
220
|
-
<li><a href="../../CORL/Plugin/Configuration.html">CORL::Plugin::Configuration</a>
|
|
221
|
-
|
|
222
|
-
<li><a href="../../CORL/Plugin/Machine.html">CORL::Plugin::Machine</a>
|
|
223
|
-
|
|
224
|
-
<li><a href="../../CORL/Plugin/Network.html">CORL::Plugin::Network</a>
|
|
225
|
-
|
|
226
|
-
<li><a href="../../CORL/Plugin/Node.html">CORL::Plugin::Node</a>
|
|
227
|
-
|
|
228
|
-
<li><a href="../../CORL/Plugin/Provisioner.html">CORL::Plugin::Provisioner</a>
|
|
229
|
-
|
|
230
|
-
<li><a href="../../CORL/Provisioner.html">CORL::Provisioner</a>
|
|
231
|
-
|
|
232
|
-
<li><a href="../../CORL/Provisioner/Puppetnode.html">CORL::Provisioner::Puppetnode</a>
|
|
233
|
-
|
|
234
|
-
<li><a href="../../CORL/Util.html">CORL::Util</a>
|
|
235
|
-
|
|
236
|
-
<li><a href="../../CORL/Util/Puppet.html">CORL::Util::Puppet</a>
|
|
237
|
-
|
|
238
|
-
<li><a href="../../CORL/Util/Puppet/Resource.html">CORL::Util::Puppet::Resource</a>
|
|
239
|
-
|
|
240
|
-
<li><a href="../../CORL/Util/Puppet/ResourceGroup.html">CORL::Util::Puppet::ResourceGroup</a>
|
|
241
|
-
|
|
242
|
-
<li><a href="../../CORL/Vagrant.html">CORL::Vagrant</a>
|
|
243
|
-
|
|
244
|
-
<li><a href="../../CORL/Vagrant/Config.html">CORL::Vagrant::Config</a>
|
|
245
|
-
|
|
246
|
-
<li><a href="../../Nucleon.html">Nucleon</a>
|
|
247
|
-
|
|
248
|
-
<li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
|
|
249
|
-
|
|
250
|
-
<li><a href="../../Nucleon/Action/Cloud.html">Nucleon::Action::Cloud</a>
|
|
251
|
-
|
|
252
|
-
<li><a href="../../Nucleon/Action/Cloud/Create.html">Nucleon::Action::Cloud::Create</a>
|
|
253
|
-
|
|
254
|
-
<li><a href="../../Nucleon/Action/Cloud/Hiera.html">Nucleon::Action::Cloud::Hiera</a>
|
|
255
|
-
|
|
256
|
-
<li><a href="../../Nucleon/Action/Cloud/Images.html">Nucleon::Action::Cloud::Images</a>
|
|
257
|
-
|
|
258
|
-
<li><a href="../../Nucleon/Action/Cloud/Inspect.html">Nucleon::Action::Cloud::Inspect</a>
|
|
259
|
-
|
|
260
|
-
<li><a href="../../Nucleon/Action/Cloud/Machines.html">Nucleon::Action::Cloud::Machines</a>
|
|
261
|
-
|
|
262
|
-
<li><a href="../../Nucleon/Action/Cloud/Regions.html">Nucleon::Action::Cloud::Regions</a>
|
|
263
|
-
|
|
264
|
-
<li><a href="../../Nucleon/Action/Cloud/Vagrantfile.html">Nucleon::Action::Cloud::Vagrantfile</a>
|
|
265
|
-
|
|
266
|
-
<li><a href="../../Nucleon/Action/Node.html">Nucleon::Action::Node</a>
|
|
267
|
-
|
|
268
|
-
<li><a href="../../Nucleon/Action/Node/Authorize.html">Nucleon::Action::Node::Authorize</a>
|
|
269
|
-
|
|
270
|
-
<li><a href="../../Nucleon/Action/Node/Bootstrap.html">Nucleon::Action::Node::Bootstrap</a>
|
|
271
|
-
|
|
272
|
-
<li><a href="../../Nucleon/Action/Node/Build.html">Nucleon::Action::Node::Build</a>
|
|
273
|
-
|
|
274
|
-
<li><a href="../../Nucleon/Action/Node/Destroy.html">Nucleon::Action::Node::Destroy</a>
|
|
275
|
-
|
|
276
|
-
<li><a href="../../Nucleon/Action/Node/Exec.html">Nucleon::Action::Node::Exec</a>
|
|
277
|
-
|
|
278
|
-
<li><a href="../../Nucleon/Action/Node/Facts.html">Nucleon::Action::Node::Facts</a>
|
|
279
|
-
|
|
280
|
-
<li><a href="../../Nucleon/Action/Node/IP.html">Nucleon::Action::Node::IP</a>
|
|
281
|
-
|
|
282
|
-
<li><a href="../../Nucleon/Action/Node/Image.html">Nucleon::Action::Node::Image</a>
|
|
283
|
-
|
|
284
|
-
<li><a href="../../Nucleon/Action/Node/Keypair.html">Nucleon::Action::Node::Keypair</a>
|
|
285
|
-
|
|
286
|
-
<li><a href="../../Nucleon/Action/Node/Lookup.html">Nucleon::Action::Node::Lookup</a>
|
|
287
|
-
|
|
288
|
-
<li><a href="../../Nucleon/Action/Node/Provision.html">Nucleon::Action::Node::Provision</a>
|
|
289
|
-
|
|
290
|
-
<li><a href="../../Nucleon/Action/Node/Reboot.html">Nucleon::Action::Node::Reboot</a>
|
|
291
|
-
|
|
292
|
-
<li><a href="../../Nucleon/Action/Node/Revoke.html">Nucleon::Action::Node::Revoke</a>
|
|
293
|
-
|
|
294
|
-
<li><a href="../../Nucleon/Action/Node/SSH.html">Nucleon::Action::Node::SSH</a>
|
|
295
|
-
|
|
296
|
-
<li><a href="../../Nucleon/Action/Node/Seed.html">Nucleon::Action::Node::Seed</a>
|
|
297
|
-
|
|
298
|
-
<li><a href="../../Nucleon/Action/Node/Spawn.html">Nucleon::Action::Node::Spawn</a>
|
|
299
|
-
|
|
300
|
-
<li><a href="../../Nucleon/Action/Node/Start.html">Nucleon::Action::Node::Start</a>
|
|
301
|
-
|
|
302
|
-
<li><a href="../../Nucleon/Action/Node/Stop.html">Nucleon::Action::Node::Stop</a>
|
|
303
|
-
|
|
304
|
-
<li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
|
|
305
|
-
|
|
306
|
-
<li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
|
|
307
|
-
|
|
308
|
-
<li><a href="../../Nucleon/Event/Puppet.html">Nucleon::Event::Puppet</a>
|
|
309
|
-
|
|
310
|
-
<li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
|
311
|
-
|
|
312
|
-
<li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
|
313
|
-
|
|
314
|
-
<li><a href="../../Nucleon/Plugin/CloudAction.html">Nucleon::Plugin::CloudAction</a>
|
|
315
|
-
|
|
316
|
-
<li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
|
|
317
|
-
|
|
318
|
-
<li><a href="../../Nucleon/Template/Environment.html">Nucleon::Template::Environment</a>
|
|
319
|
-
|
|
320
|
-
<li><a href="../../VagrantPlugins.html">VagrantPlugins</a>
|
|
321
|
-
|
|
322
|
-
<li><a href="../../VagrantPlugins/CORL.html">VagrantPlugins::CORL</a>
|
|
323
|
-
|
|
324
|
-
<li><a href="../../VagrantPlugins/CORL/Action.html">VagrantPlugins::CORL::Action</a>
|
|
325
|
-
|
|
326
|
-
<li><a href="../../VagrantPlugins/CORL/Action/DeleteCache.html">VagrantPlugins::CORL::Action::DeleteCache</a>
|
|
327
|
-
|
|
328
|
-
<li><a href="../../VagrantPlugins/CORL/Action/InitKeys.html">VagrantPlugins::CORL::Action::InitKeys</a>
|
|
329
|
-
|
|
330
|
-
<li><a href="../../VagrantPlugins/CORL/Action/LinkNetwork.html">VagrantPlugins::CORL::Action::LinkNetwork</a>
|
|
331
|
-
|
|
332
|
-
<li><a href="../../VagrantPlugins/CORL/BaseAction.html">VagrantPlugins::CORL::BaseAction</a>
|
|
333
|
-
|
|
334
|
-
<li><a href="../../VagrantPlugins/CORL/Command.html">VagrantPlugins::CORL::Command</a>
|
|
335
|
-
|
|
336
|
-
<li><a href="../../VagrantPlugins/CORL/Command/Launcher.html">VagrantPlugins::CORL::Command::Launcher</a>
|
|
337
|
-
|
|
338
|
-
<li><a href="../../VagrantPlugins/CORL/Config.html">VagrantPlugins::CORL::Config</a>
|
|
339
|
-
|
|
340
|
-
<li><a href="../../VagrantPlugins/CORL/Config/CORL.html">VagrantPlugins::CORL::Config::CORL</a>
|
|
341
|
-
|
|
342
|
-
<li><a href="../../VagrantPlugins/CORL/Plugin.html">VagrantPlugins::CORL::Plugin</a>
|
|
343
|
-
|
|
344
|
-
<li><a href="../../VagrantPlugins/CORL/Provisioner.html">VagrantPlugins::CORL::Provisioner</a>
|
|
345
|
-
|
|
346
|
-
<li><a href="../../VagrantPlugins/CORL/Provisioner/CORL.html">VagrantPlugins::CORL::Provisioner::CORL</a>
|
|
347
|
-
|
|
348
|
-
<li><a href="../../Puppet.html">Puppet</a>
|
|
349
|
-
|
|
350
|
-
<li><a href="../../Puppet/DataBinding.html">Puppet::DataBinding</a>
|
|
351
|
-
|
|
352
|
-
<li><a href="../../Puppet/DataBinding/Corl.html">Puppet::DataBinding::Corl</a>
|
|
353
|
-
|
|
354
|
-
<li><a href="../../Puppet/Indirector.html">Puppet::Indirector</a>
|
|
355
|
-
|
|
356
|
-
<li><a href="../../Puppet/Indirector/Corl.html">Puppet::Indirector::Corl</a>
|
|
357
|
-
|
|
358
|
-
<li><a href="../../Puppet/Parser.html">Puppet::Parser</a>
|
|
359
|
-
|
|
360
|
-
<li><a href="../../Puppet/Parser/Functions.html">Puppet::Parser::Functions</a>
|
|
361
|
-
|
|
362
|
-
<li><a href="../../Fog.html">Fog</a>
|
|
363
|
-
|
|
364
|
-
<li><a href="../../Fog/Compute.html">Fog::Compute</a>
|
|
365
|
-
|
|
366
|
-
<li><a href="../../Fog/Compute/AWS.html">Fog::Compute::AWS</a>
|
|
367
|
-
|
|
368
|
-
<li><a href="../../Fog/Compute/AWS/Server.html">Fog::Compute::AWS::Server</a>
|
|
369
|
-
|
|
370
|
-
<li><a href="../../Fog/Compute/RackspaceV2.html">Fog::Compute::RackspaceV2</a>
|
|
371
|
-
|
|
372
|
-
<li><a href="../../Fog/Compute/RackspaceV2/Server.html">Fog::Compute::RackspaceV2::Server</a>
|
|
373
|
-
|
|
374
|
-
<li><a href="../../Vagrant.html">Vagrant</a>
|
|
375
|
-
|
|
376
|
-
<li><a href="../../Vagrant/Config.html">Vagrant::Config</a>
|
|
377
|
-
|
|
378
|
-
<li><a href="../../Vagrant/Config/Loader.html">Vagrant::Config::Loader</a>
|
|
379
|
-
|
|
380
|
-
<li><a href="../../Vagrant/Vagrantfile.html">Vagrant::Vagrantfile</a>
|
|
381
|
-
|
|
382
|
-
<li><a href="../../Hiera.html">Hiera</a>
|
|
383
|
-
|
|
384
|
-
<li><a href="../../Hiera/Backend.html">Hiera::Backend</a>
|
|
385
|
-
|
|
386
|
-
<li><a href="../../Hiera/Corl_logger.html">Hiera::Corl_logger</a>
|
|
387
|
-
|
|
388
|
-
<li><a href="../../Object.html">Object</a>
|
|
389
|
-
|
|
390
|
-
</ul>
|
|
391
|
-
</nav>
|
|
392
|
-
|
|
393
|
-
</div>
|
|
394
|
-
</nav>
|
|
395
|
-
|
|
396
|
-
<div id="documentation">
|
|
397
|
-
<h1 class="class">class CORL::Plugin::Provisioner</h1>
|
|
398
|
-
|
|
399
|
-
<div id="description" class="description">
|
|
400
|
-
|
|
401
|
-
</div><!-- description -->
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
<!-- Methods -->
|
|
416
|
-
|
|
417
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
418
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
<div id="method-i-build" class="method-detail ">
|
|
422
|
-
|
|
423
|
-
<div class="method-heading">
|
|
424
|
-
<span class="method-name">build</span><span
|
|
425
|
-
class="method-args">(node, options = {})</span>
|
|
426
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
427
|
-
</div>
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
<div class="method-description">
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
<div class="method-source-code" id="build-source">
|
|
437
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 177</span>
|
|
438
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">options</span> = {})
|
|
439
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
|
440
|
-
<span class="ruby-identifier">environment</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">ensure_value</span>(<span class="ruby-identifier">config</span>[<span class="ruby-value">:environment</span>], <span class="ruby-identifier">node</span>.<span class="ruby-identifier">lookup</span>(<span class="ruby-value">:corl_environment</span>))
|
|
441
|
-
<span class="ruby-identifier">provider_info</span> = <span class="ruby-identifier">network</span>.<span class="ruby-identifier">build</span>.<span class="ruby-identifier">config</span>.<span class="ruby-identifier">get_hash</span>([ <span class="ruby-value">:provisioners</span>, <span class="ruby-identifier">plugin_provider</span> ])
|
|
442
|
-
<span class="ruby-identifier">combined_info</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>
|
|
443
|
-
|
|
444
|
-
<span class="ruby-identifier">provider_info</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">package</span>, <span class="ruby-identifier">info</span><span class="ruby-operator">|</span>
|
|
445
|
-
<span class="ruby-identifier">package_info</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>)
|
|
446
|
-
<span class="ruby-identifier">profiles</span> = {}
|
|
447
|
-
|
|
448
|
-
<span class="ruby-identifier">hash</span>(<span class="ruby-identifier">package_info</span>[<span class="ruby-value">:profiles</span>]).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">profile_info</span><span class="ruby-operator">|</span>
|
|
449
|
-
<span class="ruby-identifier">profiles</span>[<span class="ruby-identifier">profile_id</span>(<span class="ruby-identifier">package</span>, <span class="ruby-identifier">name</span>)] = <span class="ruby-identifier">profile_info</span>
|
|
450
|
-
<span class="ruby-keyword">end</span>
|
|
451
|
-
|
|
452
|
-
<span class="ruby-identifier">package_info</span>[<span class="ruby-value">:profiles</span>] = <span class="ruby-identifier">profiles</span>
|
|
453
|
-
<span class="ruby-identifier">combined_info</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">package_info</span>)
|
|
454
|
-
<span class="ruby-keyword">end</span>
|
|
455
|
-
|
|
456
|
-
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">build_directory</span>)
|
|
457
|
-
|
|
458
|
-
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">parallel</span>(<span class="ruby-value">:build_provider</span>, <span class="ruby-identifier">provider_info</span>, <span class="ruby-identifier">environment</span>, <span class="ruby-identifier">combined_info</span>)
|
|
459
|
-
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">status</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-keyword">false</span>) <span class="ruby-operator">?</span> <span class="ruby-keyword">false</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
|
|
460
|
-
|
|
461
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">success</span>
|
|
462
|
-
<span class="ruby-comment"># Save the updates in the local project cache</span>
|
|
463
|
-
<span class="ruby-identifier">set_cache_setting</span>(<span class="ruby-value">:build_dependencies</span>, <span class="ruby-identifier">network</span>.<span class="ruby-identifier">build</span>.<span class="ruby-identifier">dependencies</span>.<span class="ruby-identifier">export</span>)
|
|
464
|
-
<span class="ruby-identifier">set_cache_setting</span>(<span class="ruby-value">:build_locations</span>, <span class="ruby-identifier">network</span>.<span class="ruby-identifier">build</span>.<span class="ruby-identifier">locations</span>.<span class="ruby-identifier">export</span>)
|
|
465
|
-
<span class="ruby-identifier">set_cache_setting</span>(<span class="ruby-value">:build_info</span>, <span class="ruby-identifier">provider_info</span>)
|
|
466
|
-
<span class="ruby-identifier">set_cache_setting</span>(<span class="ruby-value">:build_profiles</span>, <span class="ruby-identifier">find_profiles</span>(<span class="ruby-identifier">node</span>))
|
|
467
|
-
<span class="ruby-keyword">end</span>
|
|
468
|
-
<span class="ruby-identifier">success</span>
|
|
469
|
-
<span class="ruby-keyword">end</span></pre>
|
|
470
|
-
</div><!-- build-source -->
|
|
471
|
-
|
|
472
|
-
</div>
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
</div><!-- build-method -->
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
<div id="method-i-build_dependencies" class="method-detail ">
|
|
481
|
-
|
|
482
|
-
<div class="method-heading">
|
|
483
|
-
<span class="method-name">build_dependencies</span><span
|
|
484
|
-
class="method-args">(node, reset = false)</span>
|
|
485
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
486
|
-
</div>
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
<div class="method-description">
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
<div class="method-source-code" id="build_dependencies-source">
|
|
496
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 138</span>
|
|
497
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_dependencies</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
498
|
-
<span class="ruby-identifier">dependencies</span> = <span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_dependencies</span>, {}, <span class="ruby-value">:hash</span>)
|
|
499
|
-
<span class="ruby-identifier">build</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">reset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">dependencies</span>.<span class="ruby-identifier">empty?</span>
|
|
500
|
-
<span class="ruby-identifier">symbol_map</span>(<span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_dependencies</span>, {}, <span class="ruby-value">:hash</span>))
|
|
501
|
-
<span class="ruby-keyword">end</span></pre>
|
|
502
|
-
</div><!-- build_dependencies-source -->
|
|
503
|
-
|
|
504
|
-
</div>
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
</div><!-- build_dependencies-method -->
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
<div id="method-i-build_directory" class="method-detail ">
|
|
513
|
-
|
|
514
|
-
<div class="method-heading">
|
|
515
|
-
<span class="method-name">build_directory</span><span
|
|
516
|
-
class="method-args">()</span>
|
|
517
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
518
|
-
</div>
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
<div class="method-description">
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
<div class="method-source-code" id="build_directory-source">
|
|
528
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 43</span>
|
|
529
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_directory</span>
|
|
530
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">network</span>.<span class="ruby-identifier">build_directory</span>, <span class="ruby-string">'provisioners'</span>, <span class="ruby-identifier">plugin_provider</span>.<span class="ruby-identifier">to_s</span>)
|
|
531
|
-
<span class="ruby-keyword">end</span></pre>
|
|
532
|
-
</div><!-- build_directory-source -->
|
|
533
|
-
|
|
534
|
-
</div>
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
</div><!-- build_directory-method -->
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
<div id="method-i-build_info" class="method-detail ">
|
|
543
|
-
|
|
544
|
-
<div class="method-heading">
|
|
545
|
-
<span class="method-name">build_info</span><span
|
|
546
|
-
class="method-args">(node, reset = false)</span>
|
|
547
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
548
|
-
</div>
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
<div class="method-description">
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
<div class="method-source-code" id="build_info-source">
|
|
558
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 154</span>
|
|
559
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_info</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
560
|
-
<span class="ruby-identifier">info</span> = <span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_info</span>, {}, <span class="ruby-value">:hash</span>)
|
|
561
|
-
<span class="ruby-identifier">build</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">reset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">empty?</span>
|
|
562
|
-
<span class="ruby-identifier">symbol_map</span>(<span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_info</span>, {}, <span class="ruby-value">:hash</span>))
|
|
563
|
-
<span class="ruby-keyword">end</span></pre>
|
|
564
|
-
</div><!-- build_info-source -->
|
|
565
|
-
|
|
566
|
-
</div>
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
</div><!-- build_info-method -->
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
<div id="method-i-build_locations" class="method-detail ">
|
|
575
|
-
|
|
576
|
-
<div class="method-heading">
|
|
577
|
-
<span class="method-name">build_locations</span><span
|
|
578
|
-
class="method-args">(node, reset = false)</span>
|
|
579
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
580
|
-
</div>
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
<div class="method-description">
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
<div class="method-source-code" id="build_locations-source">
|
|
590
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 146</span>
|
|
591
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_locations</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
592
|
-
<span class="ruby-identifier">locations</span> = <span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_locations</span>, {}, <span class="ruby-value">:hash</span>)
|
|
593
|
-
<span class="ruby-identifier">build</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">reset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">locations</span>.<span class="ruby-identifier">empty?</span>
|
|
594
|
-
<span class="ruby-identifier">symbol_map</span>(<span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_locations</span>, {}, <span class="ruby-value">:hash</span>))
|
|
595
|
-
<span class="ruby-keyword">end</span></pre>
|
|
596
|
-
</div><!-- build_locations-source -->
|
|
597
|
-
|
|
598
|
-
</div>
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
</div><!-- build_locations-method -->
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
<div id="method-i-build_profile" class="method-detail ">
|
|
607
|
-
|
|
608
|
-
<div class="method-heading">
|
|
609
|
-
<span class="method-name">build_profile</span><span
|
|
610
|
-
class="method-args">(name, info, package, environment, profiles)</span>
|
|
611
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
612
|
-
</div>
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
<div class="method-description">
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
<div class="method-source-code" id="build_profile-source">
|
|
622
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 218</span>
|
|
623
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_profile</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">info</span>, <span class="ruby-identifier">package</span>, <span class="ruby-identifier">environment</span>, <span class="ruby-identifier">profiles</span>)
|
|
624
|
-
<span class="ruby-identifier">parents</span> = []
|
|
625
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>)
|
|
626
|
-
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">true</span>
|
|
627
|
-
|
|
628
|
-
<span class="ruby-keyword">while</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value">:extend</span>) <span class="ruby-keyword">do</span>
|
|
629
|
-
<span class="ruby-identifier">array</span>(<span class="ruby-identifier">config</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:extend</span>)).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">parent</span><span class="ruby-operator">|</span>
|
|
630
|
-
<span class="ruby-identifier">parent</span> = <span class="ruby-identifier">profile_id</span>(<span class="ruby-identifier">package</span>, <span class="ruby-identifier">parent</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">match</span>(<span class="ruby-string">'::'</span>)
|
|
631
|
-
|
|
632
|
-
<span class="ruby-identifier">parents</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">parent</span>
|
|
633
|
-
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">defaults</span>(<span class="ruby-identifier">profiles</span>[<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">to_sym</span>])
|
|
634
|
-
<span class="ruby-keyword">end</span>
|
|
635
|
-
<span class="ruby-keyword">end</span></pre>
|
|
636
|
-
</div><!-- build_profile-source -->
|
|
637
|
-
|
|
638
|
-
</div>
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
</div><!-- build_profile-method -->
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
<div id="method-i-build_profiles" class="method-detail ">
|
|
647
|
-
|
|
648
|
-
<div class="method-heading">
|
|
649
|
-
<span class="method-name">build_profiles</span><span
|
|
650
|
-
class="method-args">(node, reset = false)</span>
|
|
651
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
652
|
-
</div>
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
<div class="method-description">
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
<div class="method-source-code" id="build_profiles-source">
|
|
662
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 162</span>
|
|
663
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_profiles</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
664
|
-
<span class="ruby-identifier">profiles</span> = <span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_profiles</span>, [], <span class="ruby-value">:array</span>)
|
|
665
|
-
<span class="ruby-identifier">build</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">reset</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">profiles</span>.<span class="ruby-identifier">empty?</span>
|
|
666
|
-
<span class="ruby-identifier">cache_setting</span>(<span class="ruby-value">:build_profiles</span>, [], <span class="ruby-value">:array</span>)
|
|
667
|
-
<span class="ruby-keyword">end</span></pre>
|
|
668
|
-
</div><!-- build_profiles-source -->
|
|
669
|
-
|
|
670
|
-
</div>
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
</div><!-- build_profiles-method -->
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
<div id="method-i-build_provider" class="method-detail ">
|
|
679
|
-
|
|
680
|
-
<div class="method-heading">
|
|
681
|
-
<span class="method-name">build_provider</span><span
|
|
682
|
-
class="method-args">(package, info, environment, combined_info)</span>
|
|
683
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
684
|
-
</div>
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
<div class="method-description">
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
<div class="method-source-code" id="build_provider-source">
|
|
694
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 212</span>
|
|
695
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">build_provider</span>(<span class="ruby-identifier">package</span>, <span class="ruby-identifier">info</span>, <span class="ruby-identifier">environment</span>, <span class="ruby-identifier">combined_info</span>)
|
|
696
|
-
<span class="ruby-identifier">profiles</span> = <span class="ruby-identifier">hash</span>(<span class="ruby-identifier">info</span>[<span class="ruby-value">:profiles</span>])
|
|
697
|
-
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">parallel</span>(<span class="ruby-value">:build_profile</span>, <span class="ruby-identifier">profiles</span>, <span class="ruby-identifier">id</span>(<span class="ruby-identifier">package</span>), <span class="ruby-identifier">environment</span>, <span class="ruby-identifier">hash</span>(<span class="ruby-identifier">combined_info</span>[<span class="ruby-value">:profiles</span>]))
|
|
698
|
-
<span class="ruby-identifier">status</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-keyword">false</span>) <span class="ruby-operator">?</span> <span class="ruby-keyword">false</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
|
|
699
|
-
<span class="ruby-keyword">end</span></pre>
|
|
700
|
-
</div><!-- build_provider-source -->
|
|
701
|
-
|
|
702
|
-
</div>
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
</div><!-- build_provider-method -->
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
<div id="method-i-directory" class="method-detail ">
|
|
711
|
-
|
|
712
|
-
<div class="method-heading">
|
|
713
|
-
<span class="method-name">directory</span><span
|
|
714
|
-
class="method-args">()</span>
|
|
715
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
716
|
-
</div>
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
<div class="method-description">
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
<div class="method-source-code" id="directory-source">
|
|
726
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 37</span>
|
|
727
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">directory</span>
|
|
728
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">network</span>.<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">myself</span>[<span class="ruby-value">:directory</span>])
|
|
729
|
-
<span class="ruby-keyword">end</span></pre>
|
|
730
|
-
</div><!-- directory-source -->
|
|
731
|
-
|
|
732
|
-
</div>
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
</div><!-- directory-method -->
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
<div id="method-i-directory-3D" class="method-detail ">
|
|
741
|
-
|
|
742
|
-
<div class="method-heading">
|
|
743
|
-
<span class="method-name">directory=</span><span
|
|
744
|
-
class="method-args">(directory)</span>
|
|
745
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
746
|
-
</div>
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
<div class="method-description">
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
<div class="method-source-code" id="directory-3D-source">
|
|
756
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 33</span>
|
|
757
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">directory=</span><span class="ruby-identifier">directory</span>
|
|
758
|
-
<span class="ruby-identifier">myself</span>[<span class="ruby-value">:directory</span>] = <span class="ruby-identifier">directory</span>
|
|
759
|
-
<span class="ruby-keyword">end</span></pre>
|
|
760
|
-
</div><!-- directory-3D-source -->
|
|
761
|
-
|
|
762
|
-
</div>
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
</div><!-- directory-3D-method -->
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
<div id="method-i-gateway" class="method-detail ">
|
|
771
|
-
|
|
772
|
-
<div class="method-heading">
|
|
773
|
-
<span class="method-name">gateway</span><span
|
|
774
|
-
class="method-args">(index = :first, reset = false)</span>
|
|
775
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
776
|
-
</div>
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
<div class="method-description">
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
<div class="method-source-code" id="gateway-source">
|
|
786
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 53</span>
|
|
787
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gateway</span>(<span class="ruby-identifier">index</span> = <span class="ruby-value">:first</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
788
|
-
<span class="ruby-identifier">gateway</span> = <span class="ruby-identifier">myself</span>[<span class="ruby-value">:gateway</span>]
|
|
789
|
-
|
|
790
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">gateway</span>
|
|
791
|
-
<span class="ruby-identifier">gateways</span> = <span class="ruby-identifier">package_gateways</span>(<span class="ruby-identifier">reset</span>)
|
|
792
|
-
|
|
793
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">gateways</span>.<span class="ruby-identifier">empty?</span>
|
|
794
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">index</span> <span class="ruby-operator">==</span> <span class="ruby-value">:first</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">index</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
|
795
|
-
<span class="ruby-identifier">gateway</span> = <span class="ruby-identifier">gateways</span>[<span class="ruby-value">0</span>]
|
|
796
|
-
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">index</span> <span class="ruby-operator">==</span> <span class="ruby-value">:last</span>
|
|
797
|
-
<span class="ruby-identifier">gateway</span> = <span class="ruby-identifier">gateways</span>.<span class="ruby-identifier">pop</span>
|
|
798
|
-
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">index</span>.<span class="ruby-identifier">integer?</span>
|
|
799
|
-
<span class="ruby-identifier">gateway</span> = <span class="ruby-identifier">gateways</span>[<span class="ruby-identifier">index</span>]
|
|
800
|
-
<span class="ruby-keyword">end</span>
|
|
801
|
-
<span class="ruby-keyword">end</span>
|
|
802
|
-
<span class="ruby-keyword">end</span>
|
|
803
|
-
<span class="ruby-identifier">gateway</span>
|
|
804
|
-
<span class="ruby-keyword">end</span></pre>
|
|
805
|
-
</div><!-- gateway-source -->
|
|
806
|
-
|
|
807
|
-
</div>
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
</div><!-- gateway-method -->
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
<div id="method-i-gateway-3D" class="method-detail ">
|
|
816
|
-
|
|
817
|
-
<div class="method-heading">
|
|
818
|
-
<span class="method-name">gateway=</span><span
|
|
819
|
-
class="method-args">(gateway)</span>
|
|
820
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
821
|
-
</div>
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
<div class="method-description">
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
<div class="method-source-code" id="gateway-3D-source">
|
|
831
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 49</span>
|
|
832
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">gateway=</span><span class="ruby-identifier">gateway</span>
|
|
833
|
-
<span class="ruby-identifier">myself</span>[<span class="ruby-value">:gateway</span>] = <span class="ruby-identifier">gateway</span>
|
|
834
|
-
<span class="ruby-keyword">end</span></pre>
|
|
835
|
-
</div><!-- gateway-3D-source -->
|
|
836
|
-
|
|
837
|
-
</div>
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
</div><!-- gateway-3D-method -->
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
<div id="method-i-initialized-3F" class="method-detail ">
|
|
846
|
-
|
|
847
|
-
<div class="method-heading">
|
|
848
|
-
<span class="method-name">initialized?</span><span
|
|
849
|
-
class="method-args">(options = {})</span>
|
|
850
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
851
|
-
</div>
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
<div class="method-description">
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
<div class="method-source-code" id="initialized-3F-source">
|
|
861
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 23</span>
|
|
862
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialized?</span>(<span class="ruby-identifier">options</span> = {})
|
|
863
|
-
<span class="ruby-keyword">end</span></pre>
|
|
864
|
-
</div><!-- initialized-3F-source -->
|
|
865
|
-
|
|
866
|
-
</div>
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
</div><!-- initialized-3F-method -->
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
<div id="method-i-normalize" class="method-detail ">
|
|
875
|
-
|
|
876
|
-
<div class="method-heading">
|
|
877
|
-
<span class="method-name">normalize</span><span
|
|
878
|
-
class="method-args">(reload) { || ... }</span>
|
|
879
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
880
|
-
</div>
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
<div class="method-description">
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
<div class="method-source-code" id="normalize-source">
|
|
890
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 14</span>
|
|
891
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize</span>(<span class="ruby-identifier">reload</span>)
|
|
892
|
-
<span class="ruby-keyword">super</span>
|
|
893
|
-
<span class="ruby-identifier">build_config</span>.<span class="ruby-identifier">register</span>(<span class="ruby-value">:dependency</span>, <span class="ruby-value">:dependencies</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">build_config</span>
|
|
894
|
-
<span class="ruby-keyword">yield</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
|
895
|
-
<span class="ruby-keyword">end</span></pre>
|
|
896
|
-
</div><!-- normalize-source -->
|
|
897
|
-
|
|
898
|
-
</div>
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
</div><!-- normalize-method -->
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
<div id="method-i-package_gateways" class="method-detail ">
|
|
907
|
-
|
|
908
|
-
<div class="method-heading">
|
|
909
|
-
<span class="method-name">package_gateways</span><span
|
|
910
|
-
class="method-args">(node, reset = false)</span>
|
|
911
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
912
|
-
</div>
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
<div class="method-description">
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
<div class="method-source-code" id="package_gateways-source">
|
|
922
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 72</span>
|
|
923
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">package_gateways</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
924
|
-
<span class="ruby-identifier">gateways</span> = []
|
|
925
|
-
<span class="ruby-identifier">build_info</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">package_name</span>, <span class="ruby-identifier">package_info</span><span class="ruby-operator">|</span>
|
|
926
|
-
<span class="ruby-identifier">gateways</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'packages'</span>, <span class="ruby-identifier">id</span>(<span class="ruby-identifier">package_name</span>).<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">package_info</span>[<span class="ruby-value">:gateway</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">package_info</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-value">:gateway</span>)
|
|
927
|
-
<span class="ruby-keyword">end</span>
|
|
928
|
-
<span class="ruby-identifier">gateways</span>
|
|
929
|
-
<span class="ruby-keyword">end</span></pre>
|
|
930
|
-
</div><!-- package_gateways-source -->
|
|
931
|
-
|
|
932
|
-
</div>
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
</div><!-- package_gateways-method -->
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
<div id="method-i-profile_dependencies" class="method-detail ">
|
|
941
|
-
|
|
942
|
-
<div class="method-heading">
|
|
943
|
-
<span class="method-name">profile_dependencies</span><span
|
|
944
|
-
class="method-args">(node, profiles)</span>
|
|
945
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
946
|
-
</div>
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
<div class="method-description">
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
<div class="method-source-code" id="profile_dependencies-source">
|
|
956
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 114</span>
|
|
957
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">profile_dependencies</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">profiles</span>)
|
|
958
|
-
<span class="ruby-identifier">dependencies</span> = <span class="ruby-identifier">build_dependencies</span>(<span class="ruby-identifier">node</span>)[<span class="ruby-value">:profile</span>]
|
|
959
|
-
<span class="ruby-identifier">profile_index</span> = {}
|
|
960
|
-
|
|
961
|
-
<span class="ruby-identifier">search_profiles</span> = <span class="ruby-identifier">lambda</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">profile</span><span class="ruby-operator">|</span>
|
|
962
|
-
<span class="ruby-identifier">profile</span> = <span class="ruby-identifier">profile</span>.<span class="ruby-identifier">to_sym</span>
|
|
963
|
-
|
|
964
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">dependencies</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">profile</span>)
|
|
965
|
-
<span class="ruby-identifier">dependencies</span>[<span class="ruby-identifier">profile</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">parent_profile</span><span class="ruby-operator">|</span>
|
|
966
|
-
<span class="ruby-identifier">search_profiles</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">parent_profile</span>)
|
|
967
|
-
<span class="ruby-keyword">end</span>
|
|
968
|
-
<span class="ruby-keyword">end</span>
|
|
969
|
-
<span class="ruby-identifier">profile_index</span>[<span class="ruby-identifier">profile</span>] = <span class="ruby-keyword">true</span>
|
|
970
|
-
<span class="ruby-keyword">end</span>
|
|
971
|
-
|
|
972
|
-
<span class="ruby-identifier">profiles</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">profile</span><span class="ruby-operator">|</span>
|
|
973
|
-
<span class="ruby-identifier">search_profiles</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">profile</span>)
|
|
974
|
-
<span class="ruby-keyword">end</span>
|
|
975
|
-
|
|
976
|
-
<span class="ruby-identifier">profile_index</span>.<span class="ruby-identifier">keys</span>
|
|
977
|
-
<span class="ruby-keyword">end</span></pre>
|
|
978
|
-
</div><!-- profile_dependencies-source -->
|
|
979
|
-
|
|
980
|
-
</div>
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
</div><!-- profile_dependencies-method -->
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
<div id="method-i-register" class="method-detail ">
|
|
989
|
-
|
|
990
|
-
<div class="method-heading">
|
|
991
|
-
<span class="method-name">register</span><span
|
|
992
|
-
class="method-args">(options = {})</span>
|
|
993
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
994
|
-
</div>
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
<div class="method-description">
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
<div class="method-source-code" id="register-source">
|
|
1004
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 171</span>
|
|
1005
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register</span>(<span class="ruby-identifier">options</span> = {})
|
|
1006
|
-
<span class="ruby-comment"># Implement in providers</span>
|
|
1007
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1008
|
-
</div><!-- register-source -->
|
|
1009
|
-
|
|
1010
|
-
</div>
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
</div><!-- register-method -->
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
<div id="method-i-supported_profiles" class="method-detail ">
|
|
1019
|
-
|
|
1020
|
-
<div class="method-heading">
|
|
1021
|
-
<span class="method-name">supported_profiles</span><span
|
|
1022
|
-
class="method-args">(node, profile_names = nil)</span>
|
|
1023
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
1024
|
-
</div>
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
<div class="method-description">
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
<div class="method-source-code" id="supported_profiles-source">
|
|
1034
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 95</span>
|
|
1035
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">supported_profiles</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">profile_names</span> = <span class="ruby-keyword">nil</span>)
|
|
1036
|
-
<span class="ruby-identifier">found</span> = []
|
|
1037
|
-
<span class="ruby-identifier">profiles</span> = <span class="ruby-identifier">build_profiles</span>(<span class="ruby-identifier">node</span>)
|
|
1038
|
-
|
|
1039
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">profile_names</span>.<span class="ruby-identifier">nil?</span>
|
|
1040
|
-
<span class="ruby-identifier">found</span> = <span class="ruby-identifier">profiles</span>
|
|
1041
|
-
<span class="ruby-keyword">else</span>
|
|
1042
|
-
<span class="ruby-identifier">profile_names</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
|
|
1043
|
-
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>
|
|
1044
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">profiles</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">name</span>)
|
|
1045
|
-
<span class="ruby-identifier">found</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">name</span>
|
|
1046
|
-
<span class="ruby-keyword">end</span>
|
|
1047
|
-
<span class="ruby-keyword">end</span>
|
|
1048
|
-
<span class="ruby-keyword">end</span>
|
|
1049
|
-
<span class="ruby-identifier">found</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">false</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">found</span>
|
|
1050
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1051
|
-
</div><!-- supported_profiles-source -->
|
|
1052
|
-
|
|
1053
|
-
</div>
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
</div><!-- supported_profiles-method -->
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
</section><!-- public-instance-method-details -->
|
|
1062
|
-
|
|
1063
|
-
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
1064
|
-
<h3 class="section-header">Protected Instance Methods</h3>
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
<div id="method-i-find_profiles" class="method-detail ">
|
|
1068
|
-
|
|
1069
|
-
<div class="method-heading">
|
|
1070
|
-
<span class="method-name">find_profiles</span><span
|
|
1071
|
-
class="method-args">(node, reset = false)</span>
|
|
1072
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
1073
|
-
</div>
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
<div class="method-description">
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
<div class="method-source-code" id="find_profiles-source">
|
|
1083
|
-
<pre><span class="ruby-comment"># File lib/core/plugin/provisioner.rb, line 82</span>
|
|
1084
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_profiles</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
1085
|
-
<span class="ruby-identifier">allowed_profiles</span> = []
|
|
1086
|
-
<span class="ruby-identifier">build_info</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">reset</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">package_name</span>, <span class="ruby-identifier">package_info</span><span class="ruby-operator">|</span>
|
|
1087
|
-
<span class="ruby-identifier">hash</span>(<span class="ruby-identifier">package_info</span>[<span class="ruby-value">:profiles</span>]).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">profile_name</span>, <span class="ruby-identifier">profile_info</span><span class="ruby-operator">|</span>
|
|
1088
|
-
<span class="ruby-identifier">allowed_profiles</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">resource</span>([ <span class="ruby-identifier">package_name</span>, <span class="ruby-string">'profile'</span>, <span class="ruby-identifier">profile_name</span> ])
|
|
1089
|
-
<span class="ruby-keyword">end</span>
|
|
1090
|
-
<span class="ruby-keyword">end</span>
|
|
1091
|
-
<span class="ruby-identifier">allowed_profiles</span>
|
|
1092
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1093
|
-
</div><!-- find_profiles-source -->
|
|
1094
|
-
|
|
1095
|
-
</div>
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
</div><!-- find_profiles-method -->
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
</section><!-- protected-instance-method-details -->
|
|
1104
|
-
|
|
1105
|
-
</section><!-- 5Buntitled-5D -->
|
|
1106
|
-
|
|
1107
|
-
</div><!-- documentation -->
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
<footer id="validator-badges">
|
|
1111
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
1112
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
|
1113
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
1114
|
-
</footer>
|
|
1115
|
-
|