corl 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/bootstrap/os/ubuntu/06_puppet.sh +1 -1
- data/corl.gemspec +171 -3
- data/lib/CORL/builder/identity.rb +6 -3
- data/lib/CORL/builder/package.rb +3 -3
- data/lib/CORL/configuration/file.rb +21 -7
- data/lib/CORL/machine/vagrant.rb +3 -3
- data/lib/CORL/node/vagrant.rb +2 -5
- data/lib/CORL/provisioner/puppetnode.rb +8 -8
- data/lib/core/facade.rb +7 -3
- data/lib/core/mixin/action/keypair.rb +3 -3
- data/lib/core/mixin/action/registration.rb +31 -0
- data/lib/core/mixin/lookup.rb +50 -6
- data/lib/core/mixin/machine/ssh.rb +4 -4
- data/lib/core/plugin/cloud_action.rb +8 -1
- data/lib/core/plugin/configuration.rb +6 -7
- data/lib/core/plugin/fog_node.rb +7 -0
- data/lib/core/plugin/network.rb +31 -0
- data/lib/core/plugin/node.rb +182 -117
- data/lib/core/vagrant/provisioner/provisioner.rb +1 -1
- data/lib/nucleon/action/cloud/config.rb +259 -0
- data/lib/nucleon/action/cloud/images.rb +1 -1
- data/lib/nucleon/action/cloud/inspect.rb +11 -2
- data/lib/nucleon/action/cloud/machines.rb +1 -1
- data/lib/nucleon/action/cloud/regions.rb +1 -1
- data/lib/nucleon/action/cloud/settings.rb +185 -0
- data/lib/nucleon/action/node/IP.rb +1 -1
- data/lib/nucleon/action/node/bootstrap.rb +1 -1
- data/lib/nucleon/action/node/cache.rb +133 -0
- data/lib/nucleon/action/node/fact.rb +119 -0
- data/lib/nucleon/action/node/facts.rb +16 -16
- data/lib/nucleon/action/node/group.rb +115 -0
- data/lib/nucleon/action/node/groups.rb +33 -0
- data/lib/nucleon/action/node/identity.rb +75 -0
- data/lib/nucleon/action/node/lookup.rb +20 -7
- data/lib/nucleon/action/node/seed.rb +6 -6
- data/lib/nucleon/action/node/status.rb +76 -0
- data/lib/nucleon/action/plugin/create.rb +169 -0
- data/lib/nucleon/action/plugin/list.rb +69 -0
- data/lib/nucleon/action/plugin/template/nucleon.action.erb +56 -0
- data/lib/nucleon/action/plugins.rb +14 -0
- data/locales/en.yml +3 -0
- data/rdoc/site/0.5.0/CORL/Build.html +757 -0
- data/rdoc/site/0.5.0/CORL/Builder/Identity.html +569 -0
- data/rdoc/site/0.5.0/CORL/Builder/Package.html +576 -0
- data/rdoc/site/0.5.0/CORL/Builder.html +360 -0
- data/rdoc/site/0.5.0/CORL/Configuration/File.html +1148 -0
- data/rdoc/site/0.5.0/CORL/Configuration.html +359 -0
- data/rdoc/site/0.5.0/CORL/Errors.html +359 -0
- data/rdoc/site/0.5.0/CORL/Facade.html +899 -0
- data/rdoc/site/0.5.0/CORL/Machine/AWS.html +753 -0
- data/rdoc/site/0.5.0/CORL/Machine/Fog.html +1289 -0
- data/rdoc/site/0.5.0/CORL/Machine/Physical.html +1059 -0
- data/rdoc/site/0.5.0/CORL/Machine/Rackspace.html +534 -0
- data/rdoc/site/0.5.0/CORL/Machine/Vagrant.html +1320 -0
- data/rdoc/site/0.5.0/CORL/Machine.html +363 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Action/Keypair.html +592 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Action.html +359 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Builder/Global.html +604 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Builder/Instance.html +696 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Builder.html +359 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Lookup.html +1139 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Machine/SSH.html +675 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Machine.html +359 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Macro/NetworkSettings.html +484 -0
- data/rdoc/site/0.5.0/CORL/Mixin/Macro.html +359 -0
- data/rdoc/site/0.5.0/CORL/Mixin.html +363 -0
- data/rdoc/site/0.5.0/CORL/Network/CORL.html +411 -0
- data/rdoc/site/0.5.0/CORL/Network.html +359 -0
- data/rdoc/site/0.5.0/CORL/Node/AWS.html +736 -0
- data/rdoc/site/0.5.0/CORL/Node/Fog.html +1212 -0
- data/rdoc/site/0.5.0/CORL/Node/Local.html +444 -0
- data/rdoc/site/0.5.0/CORL/Node/Rackspace.html +729 -0
- data/rdoc/site/0.5.0/CORL/Node/Vagrant.html +1476 -0
- data/rdoc/site/0.5.0/CORL/Node.html +363 -0
- data/rdoc/site/0.5.0/CORL/Plugin/Builder.html +500 -0
- data/rdoc/site/0.5.0/CORL/Plugin/Configuration.html +1271 -0
- data/rdoc/site/0.5.0/CORL/Plugin/Machine.html +1299 -0
- data/rdoc/site/0.5.0/CORL/Plugin/Network.html +1580 -0
- data/rdoc/site/0.5.0/CORL/Plugin/Node.html +4041 -0
- data/rdoc/site/0.5.0/CORL/Plugin/Provisioner.html +1115 -0
- data/rdoc/site/0.5.0/CORL/Plugin.html +649 -0
- data/rdoc/site/0.5.0/CORL/Provisioner/Puppetnode.html +1177 -0
- data/rdoc/site/0.5.0/CORL/Provisioner.html +359 -0
- data/rdoc/site/0.5.0/CORL/Util/Puppet/Resource.html +1058 -0
- data/rdoc/site/0.5.0/CORL/Util/Puppet/ResourceGroup.html +940 -0
- data/rdoc/site/0.5.0/CORL/Util/Puppet.html +1107 -0
- data/rdoc/site/0.5.0/CORL/Util.html +361 -0
- data/rdoc/site/0.5.0/CORL/Vagrant/Config.html +943 -0
- data/rdoc/site/0.5.0/CORL/Vagrant.html +438 -0
- data/rdoc/site/0.5.0/CORL.html +471 -0
- data/rdoc/site/0.5.0/Fog/Compute/AWS/Server.html +443 -0
- data/rdoc/site/0.5.0/Fog/Compute/AWS.html +365 -0
- data/rdoc/site/0.5.0/Fog/Compute/RackspaceV2/Server.html +428 -0
- data/rdoc/site/0.5.0/Fog/Compute/RackspaceV2.html +365 -0
- data/rdoc/site/0.5.0/Fog/Compute.html +360 -0
- data/rdoc/site/0.5.0/Fog.html +360 -0
- data/rdoc/site/0.5.0/Hiera/Backend.html +442 -0
- data/rdoc/site/0.5.0/Hiera/Corl_logger.html +469 -0
- data/rdoc/site/0.5.0/Hiera.html +366 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Create.html +538 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Hiera.html +566 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Images.html +572 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Inspect.html +524 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Machines.html +567 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Regions.html +567 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud/Vagrantfile.html +515 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Cloud.html +365 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Authorize.html +543 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Bootstrap.html +604 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Build.html +526 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Destroy.html +573 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Exec.html +530 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Facts.html +456 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/IP.html +453 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Image.html +573 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Keypair.html +572 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Lookup.html +532 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Provision.html +553 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Reboot.html +573 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Revoke.html +541 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/SSH.html +583 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Seed.html +602 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Spawn.html +675 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Start.html +573 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node/Stop.html +573 -0
- data/rdoc/site/0.5.0/Nucleon/Action/Node.html +376 -0
- data/rdoc/site/0.5.0/Nucleon/Action.html +383 -0
- data/rdoc/site/0.5.0/Nucleon/Config.html +377 -0
- data/rdoc/site/0.5.0/Nucleon/Event/Puppet.html +693 -0
- data/rdoc/site/0.5.0/Nucleon/Event.html +359 -0
- data/rdoc/site/0.5.0/Nucleon/Plugin/Base.html +365 -0
- data/rdoc/site/0.5.0/Nucleon/Plugin/CloudAction.html +838 -0
- data/rdoc/site/0.5.0/Nucleon/Plugin.html +360 -0
- data/rdoc/site/0.5.0/Nucleon/Template/Environment.html +548 -0
- data/rdoc/site/0.5.0/Nucleon/Template.html +359 -0
- data/rdoc/site/0.5.0/Nucleon.html +387 -0
- data/rdoc/site/0.5.0/Object.html +378 -0
- data/rdoc/site/0.5.0/Puppet/DataBinding/Corl.html +365 -0
- data/rdoc/site/0.5.0/Puppet/DataBinding.html +358 -0
- data/rdoc/site/0.5.0/Puppet/Indirector/Corl.html +477 -0
- data/rdoc/site/0.5.0/Puppet/Indirector.html +358 -0
- data/rdoc/site/0.5.0/Puppet/Parser/Functions.html +500 -0
- data/rdoc/site/0.5.0/Puppet/Parser.html +358 -0
- data/rdoc/site/0.5.0/Puppet.html +358 -0
- data/rdoc/site/0.5.0/README_rdoc.html +360 -0
- data/rdoc/site/0.5.0/Vagrant/Config/Loader.html +419 -0
- data/rdoc/site/0.5.0/Vagrant/Config.html +359 -0
- data/rdoc/site/0.5.0/Vagrant/Vagrantfile.html +412 -0
- data/rdoc/site/0.5.0/Vagrant.html +366 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action/DeleteCache.html +422 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action/InitKeys.html +428 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action/LinkNetwork.html +426 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Action.html +361 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/BaseAction.html +511 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Command/Launcher.html +553 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Command.html +359 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Config/CORL.html +752 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Config.html +359 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Plugin.html +365 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Provisioner/CORL.html +556 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL/Provisioner.html +359 -0
- data/rdoc/site/0.5.0/VagrantPlugins/CORL.html +366 -0
- data/rdoc/site/0.5.0/VagrantPlugins.html +366 -0
- data/rdoc/site/0.5.0/created.rid +103 -0
- 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 +359 -0
- data/rdoc/site/0.5.0/js/darkfish.js +155 -0
- data/rdoc/site/0.5.0/js/jquery.js +18 -0
- data/rdoc/site/0.5.0/js/navigation.js +142 -0
- data/rdoc/site/0.5.0/js/search.js +94 -0
- data/rdoc/site/0.5.0/js/search_index.js +1 -0
- data/rdoc/site/0.5.0/js/searcher.js +228 -0
- data/rdoc/site/0.5.0/rdoc.css +543 -0
- data/rdoc/site/0.5.0/table_of_contents.html +1797 -0
- metadata +171 -3
- data/lib/nucleon/action/cloud/hiera.rb +0 -61
@@ -0,0 +1,693 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Nucleon::Event::Puppet - 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/nucleon/event/puppet.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, :event)
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-i-check">#check</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-element">#element</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-element-3D">#element=</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-message">#message</a>
|
80
|
+
|
81
|
+
<li><a href="#method-i-message-3D">#message=</a>
|
82
|
+
|
83
|
+
<li><a href="#method-i-normalize">#normalize</a>
|
84
|
+
|
85
|
+
<li><a href="#method-i-operation">#operation</a>
|
86
|
+
|
87
|
+
<li><a href="#method-i-operation-3D">#operation=</a>
|
88
|
+
|
89
|
+
<li><a href="#method-i-render">#render</a>
|
90
|
+
|
91
|
+
</ul>
|
92
|
+
</nav>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
<div id="project-metadata">
|
97
|
+
<nav id="fileindex-section" class="section project-section">
|
98
|
+
<h3 class="section-header">Pages</h3>
|
99
|
+
|
100
|
+
<ul>
|
101
|
+
|
102
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
103
|
+
|
104
|
+
</ul>
|
105
|
+
</nav>
|
106
|
+
|
107
|
+
<nav id="classindex-section" class="section project-section">
|
108
|
+
<h3 class="section-header">Class and Module Index</h3>
|
109
|
+
|
110
|
+
<ul class="link-list">
|
111
|
+
|
112
|
+
<li><a href="../../CORL.html">CORL</a>
|
113
|
+
|
114
|
+
<li><a href="../../CORL/Build.html">CORL::Build</a>
|
115
|
+
|
116
|
+
<li><a href="../../CORL/Builder.html">CORL::Builder</a>
|
117
|
+
|
118
|
+
<li><a href="../../CORL/Builder/Identity.html">CORL::Builder::Identity</a>
|
119
|
+
|
120
|
+
<li><a href="../../CORL/Builder/Package.html">CORL::Builder::Package</a>
|
121
|
+
|
122
|
+
<li><a href="../../CORL/Configuration.html">CORL::Configuration</a>
|
123
|
+
|
124
|
+
<li><a href="../../CORL/Configuration/File.html">CORL::Configuration::File</a>
|
125
|
+
|
126
|
+
<li><a href="../../CORL/Errors.html">CORL::Errors</a>
|
127
|
+
|
128
|
+
<li><a href="../../CORL/Facade.html">CORL::Facade</a>
|
129
|
+
|
130
|
+
<li><a href="../../CORL/Machine.html">CORL::Machine</a>
|
131
|
+
|
132
|
+
<li><a href="../../CORL/Machine/AWS.html">CORL::Machine::AWS</a>
|
133
|
+
|
134
|
+
<li><a href="../../CORL/Machine/Fog.html">CORL::Machine::Fog</a>
|
135
|
+
|
136
|
+
<li><a href="../../CORL/Machine/Physical.html">CORL::Machine::Physical</a>
|
137
|
+
|
138
|
+
<li><a href="../../CORL/Machine/Rackspace.html">CORL::Machine::Rackspace</a>
|
139
|
+
|
140
|
+
<li><a href="../../CORL/Machine/Vagrant.html">CORL::Machine::Vagrant</a>
|
141
|
+
|
142
|
+
<li><a href="../../CORL/Mixin.html">CORL::Mixin</a>
|
143
|
+
|
144
|
+
<li><a href="../../CORL/Mixin/Action.html">CORL::Mixin::Action</a>
|
145
|
+
|
146
|
+
<li><a href="../../CORL/Mixin/Action/Keypair.html">CORL::Mixin::Action::Keypair</a>
|
147
|
+
|
148
|
+
<li><a href="../../CORL/Mixin/Builder.html">CORL::Mixin::Builder</a>
|
149
|
+
|
150
|
+
<li><a href="../../CORL/Mixin/Builder/Global.html">CORL::Mixin::Builder::Global</a>
|
151
|
+
|
152
|
+
<li><a href="../../CORL/Mixin/Builder/Instance.html">CORL::Mixin::Builder::Instance</a>
|
153
|
+
|
154
|
+
<li><a href="../../CORL/Mixin/Lookup.html">CORL::Mixin::Lookup</a>
|
155
|
+
|
156
|
+
<li><a href="../../CORL/Mixin/Machine.html">CORL::Mixin::Machine</a>
|
157
|
+
|
158
|
+
<li><a href="../../CORL/Mixin/Machine/SSH.html">CORL::Mixin::Machine::SSH</a>
|
159
|
+
|
160
|
+
<li><a href="../../CORL/Mixin/Macro.html">CORL::Mixin::Macro</a>
|
161
|
+
|
162
|
+
<li><a href="../../CORL/Mixin/Macro/NetworkSettings.html">CORL::Mixin::Macro::NetworkSettings</a>
|
163
|
+
|
164
|
+
<li><a href="../../CORL/Network.html">CORL::Network</a>
|
165
|
+
|
166
|
+
<li><a href="../../CORL/Network/CORL.html">CORL::Network::CORL</a>
|
167
|
+
|
168
|
+
<li><a href="../../CORL/Node.html">CORL::Node</a>
|
169
|
+
|
170
|
+
<li><a href="../../CORL/Node/AWS.html">CORL::Node::AWS</a>
|
171
|
+
|
172
|
+
<li><a href="../../CORL/Node/Fog.html">CORL::Node::Fog</a>
|
173
|
+
|
174
|
+
<li><a href="../../CORL/Node/Local.html">CORL::Node::Local</a>
|
175
|
+
|
176
|
+
<li><a href="../../CORL/Node/Rackspace.html">CORL::Node::Rackspace</a>
|
177
|
+
|
178
|
+
<li><a href="../../CORL/Node/Vagrant.html">CORL::Node::Vagrant</a>
|
179
|
+
|
180
|
+
<li><a href="../../CORL/Plugin.html">CORL::Plugin</a>
|
181
|
+
|
182
|
+
<li><a href="../../CORL/Plugin/Builder.html">CORL::Plugin::Builder</a>
|
183
|
+
|
184
|
+
<li><a href="../../CORL/Plugin/Configuration.html">CORL::Plugin::Configuration</a>
|
185
|
+
|
186
|
+
<li><a href="../../CORL/Plugin/Machine.html">CORL::Plugin::Machine</a>
|
187
|
+
|
188
|
+
<li><a href="../../CORL/Plugin/Network.html">CORL::Plugin::Network</a>
|
189
|
+
|
190
|
+
<li><a href="../../CORL/Plugin/Node.html">CORL::Plugin::Node</a>
|
191
|
+
|
192
|
+
<li><a href="../../CORL/Plugin/Provisioner.html">CORL::Plugin::Provisioner</a>
|
193
|
+
|
194
|
+
<li><a href="../../CORL/Provisioner.html">CORL::Provisioner</a>
|
195
|
+
|
196
|
+
<li><a href="../../CORL/Provisioner/Puppetnode.html">CORL::Provisioner::Puppetnode</a>
|
197
|
+
|
198
|
+
<li><a href="../../CORL/Util.html">CORL::Util</a>
|
199
|
+
|
200
|
+
<li><a href="../../CORL/Util/Puppet.html">CORL::Util::Puppet</a>
|
201
|
+
|
202
|
+
<li><a href="../../CORL/Util/Puppet/Resource.html">CORL::Util::Puppet::Resource</a>
|
203
|
+
|
204
|
+
<li><a href="../../CORL/Util/Puppet/ResourceGroup.html">CORL::Util::Puppet::ResourceGroup</a>
|
205
|
+
|
206
|
+
<li><a href="../../CORL/Vagrant.html">CORL::Vagrant</a>
|
207
|
+
|
208
|
+
<li><a href="../../CORL/Vagrant/Config.html">CORL::Vagrant::Config</a>
|
209
|
+
|
210
|
+
<li><a href="../../Nucleon.html">Nucleon</a>
|
211
|
+
|
212
|
+
<li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
|
213
|
+
|
214
|
+
<li><a href="../../Nucleon/Action/Cloud.html">Nucleon::Action::Cloud</a>
|
215
|
+
|
216
|
+
<li><a href="../../Nucleon/Action/Cloud/Create.html">Nucleon::Action::Cloud::Create</a>
|
217
|
+
|
218
|
+
<li><a href="../../Nucleon/Action/Cloud/Hiera.html">Nucleon::Action::Cloud::Hiera</a>
|
219
|
+
|
220
|
+
<li><a href="../../Nucleon/Action/Cloud/Images.html">Nucleon::Action::Cloud::Images</a>
|
221
|
+
|
222
|
+
<li><a href="../../Nucleon/Action/Cloud/Inspect.html">Nucleon::Action::Cloud::Inspect</a>
|
223
|
+
|
224
|
+
<li><a href="../../Nucleon/Action/Cloud/Machines.html">Nucleon::Action::Cloud::Machines</a>
|
225
|
+
|
226
|
+
<li><a href="../../Nucleon/Action/Cloud/Regions.html">Nucleon::Action::Cloud::Regions</a>
|
227
|
+
|
228
|
+
<li><a href="../../Nucleon/Action/Cloud/Vagrantfile.html">Nucleon::Action::Cloud::Vagrantfile</a>
|
229
|
+
|
230
|
+
<li><a href="../../Nucleon/Action/Node.html">Nucleon::Action::Node</a>
|
231
|
+
|
232
|
+
<li><a href="../../Nucleon/Action/Node/Authorize.html">Nucleon::Action::Node::Authorize</a>
|
233
|
+
|
234
|
+
<li><a href="../../Nucleon/Action/Node/Bootstrap.html">Nucleon::Action::Node::Bootstrap</a>
|
235
|
+
|
236
|
+
<li><a href="../../Nucleon/Action/Node/Build.html">Nucleon::Action::Node::Build</a>
|
237
|
+
|
238
|
+
<li><a href="../../Nucleon/Action/Node/Destroy.html">Nucleon::Action::Node::Destroy</a>
|
239
|
+
|
240
|
+
<li><a href="../../Nucleon/Action/Node/Exec.html">Nucleon::Action::Node::Exec</a>
|
241
|
+
|
242
|
+
<li><a href="../../Nucleon/Action/Node/Facts.html">Nucleon::Action::Node::Facts</a>
|
243
|
+
|
244
|
+
<li><a href="../../Nucleon/Action/Node/IP.html">Nucleon::Action::Node::IP</a>
|
245
|
+
|
246
|
+
<li><a href="../../Nucleon/Action/Node/Image.html">Nucleon::Action::Node::Image</a>
|
247
|
+
|
248
|
+
<li><a href="../../Nucleon/Action/Node/Keypair.html">Nucleon::Action::Node::Keypair</a>
|
249
|
+
|
250
|
+
<li><a href="../../Nucleon/Action/Node/Lookup.html">Nucleon::Action::Node::Lookup</a>
|
251
|
+
|
252
|
+
<li><a href="../../Nucleon/Action/Node/Provision.html">Nucleon::Action::Node::Provision</a>
|
253
|
+
|
254
|
+
<li><a href="../../Nucleon/Action/Node/Reboot.html">Nucleon::Action::Node::Reboot</a>
|
255
|
+
|
256
|
+
<li><a href="../../Nucleon/Action/Node/Revoke.html">Nucleon::Action::Node::Revoke</a>
|
257
|
+
|
258
|
+
<li><a href="../../Nucleon/Action/Node/SSH.html">Nucleon::Action::Node::SSH</a>
|
259
|
+
|
260
|
+
<li><a href="../../Nucleon/Action/Node/Seed.html">Nucleon::Action::Node::Seed</a>
|
261
|
+
|
262
|
+
<li><a href="../../Nucleon/Action/Node/Spawn.html">Nucleon::Action::Node::Spawn</a>
|
263
|
+
|
264
|
+
<li><a href="../../Nucleon/Action/Node/Start.html">Nucleon::Action::Node::Start</a>
|
265
|
+
|
266
|
+
<li><a href="../../Nucleon/Action/Node/Stop.html">Nucleon::Action::Node::Stop</a>
|
267
|
+
|
268
|
+
<li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
|
269
|
+
|
270
|
+
<li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
|
271
|
+
|
272
|
+
<li><a href="../../Nucleon/Event/Puppet.html">Nucleon::Event::Puppet</a>
|
273
|
+
|
274
|
+
<li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
275
|
+
|
276
|
+
<li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
277
|
+
|
278
|
+
<li><a href="../../Nucleon/Plugin/CloudAction.html">Nucleon::Plugin::CloudAction</a>
|
279
|
+
|
280
|
+
<li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
|
281
|
+
|
282
|
+
<li><a href="../../Nucleon/Template/Environment.html">Nucleon::Template::Environment</a>
|
283
|
+
|
284
|
+
<li><a href="../../VagrantPlugins.html">VagrantPlugins</a>
|
285
|
+
|
286
|
+
<li><a href="../../VagrantPlugins/CORL.html">VagrantPlugins::CORL</a>
|
287
|
+
|
288
|
+
<li><a href="../../VagrantPlugins/CORL/Action.html">VagrantPlugins::CORL::Action</a>
|
289
|
+
|
290
|
+
<li><a href="../../VagrantPlugins/CORL/Action/DeleteCache.html">VagrantPlugins::CORL::Action::DeleteCache</a>
|
291
|
+
|
292
|
+
<li><a href="../../VagrantPlugins/CORL/Action/InitKeys.html">VagrantPlugins::CORL::Action::InitKeys</a>
|
293
|
+
|
294
|
+
<li><a href="../../VagrantPlugins/CORL/Action/LinkNetwork.html">VagrantPlugins::CORL::Action::LinkNetwork</a>
|
295
|
+
|
296
|
+
<li><a href="../../VagrantPlugins/CORL/BaseAction.html">VagrantPlugins::CORL::BaseAction</a>
|
297
|
+
|
298
|
+
<li><a href="../../VagrantPlugins/CORL/Command.html">VagrantPlugins::CORL::Command</a>
|
299
|
+
|
300
|
+
<li><a href="../../VagrantPlugins/CORL/Command/Launcher.html">VagrantPlugins::CORL::Command::Launcher</a>
|
301
|
+
|
302
|
+
<li><a href="../../VagrantPlugins/CORL/Config.html">VagrantPlugins::CORL::Config</a>
|
303
|
+
|
304
|
+
<li><a href="../../VagrantPlugins/CORL/Config/CORL.html">VagrantPlugins::CORL::Config::CORL</a>
|
305
|
+
|
306
|
+
<li><a href="../../VagrantPlugins/CORL/Plugin.html">VagrantPlugins::CORL::Plugin</a>
|
307
|
+
|
308
|
+
<li><a href="../../VagrantPlugins/CORL/Provisioner.html">VagrantPlugins::CORL::Provisioner</a>
|
309
|
+
|
310
|
+
<li><a href="../../VagrantPlugins/CORL/Provisioner/CORL.html">VagrantPlugins::CORL::Provisioner::CORL</a>
|
311
|
+
|
312
|
+
<li><a href="../../Puppet.html">Puppet</a>
|
313
|
+
|
314
|
+
<li><a href="../../Puppet/DataBinding.html">Puppet::DataBinding</a>
|
315
|
+
|
316
|
+
<li><a href="../../Puppet/DataBinding/Corl.html">Puppet::DataBinding::Corl</a>
|
317
|
+
|
318
|
+
<li><a href="../../Puppet/Indirector.html">Puppet::Indirector</a>
|
319
|
+
|
320
|
+
<li><a href="../../Puppet/Indirector/Corl.html">Puppet::Indirector::Corl</a>
|
321
|
+
|
322
|
+
<li><a href="../../Puppet/Parser.html">Puppet::Parser</a>
|
323
|
+
|
324
|
+
<li><a href="../../Puppet/Parser/Functions.html">Puppet::Parser::Functions</a>
|
325
|
+
|
326
|
+
<li><a href="../../Fog.html">Fog</a>
|
327
|
+
|
328
|
+
<li><a href="../../Fog/Compute.html">Fog::Compute</a>
|
329
|
+
|
330
|
+
<li><a href="../../Fog/Compute/AWS.html">Fog::Compute::AWS</a>
|
331
|
+
|
332
|
+
<li><a href="../../Fog/Compute/AWS/Server.html">Fog::Compute::AWS::Server</a>
|
333
|
+
|
334
|
+
<li><a href="../../Fog/Compute/RackspaceV2.html">Fog::Compute::RackspaceV2</a>
|
335
|
+
|
336
|
+
<li><a href="../../Fog/Compute/RackspaceV2/Server.html">Fog::Compute::RackspaceV2::Server</a>
|
337
|
+
|
338
|
+
<li><a href="../../Vagrant.html">Vagrant</a>
|
339
|
+
|
340
|
+
<li><a href="../../Vagrant/Config.html">Vagrant::Config</a>
|
341
|
+
|
342
|
+
<li><a href="../../Vagrant/Config/Loader.html">Vagrant::Config::Loader</a>
|
343
|
+
|
344
|
+
<li><a href="../../Vagrant/Vagrantfile.html">Vagrant::Vagrantfile</a>
|
345
|
+
|
346
|
+
<li><a href="../../Hiera.html">Hiera</a>
|
347
|
+
|
348
|
+
<li><a href="../../Hiera/Backend.html">Hiera::Backend</a>
|
349
|
+
|
350
|
+
<li><a href="../../Hiera/Corl_logger.html">Hiera::Corl_logger</a>
|
351
|
+
|
352
|
+
<li><a href="../../Object.html">Object</a>
|
353
|
+
|
354
|
+
</ul>
|
355
|
+
</nav>
|
356
|
+
|
357
|
+
</div>
|
358
|
+
</nav>
|
359
|
+
|
360
|
+
<div id="documentation">
|
361
|
+
<h1 class="class">class Nucleon::Event::Puppet</h1>
|
362
|
+
|
363
|
+
<div id="description" class="description">
|
364
|
+
|
365
|
+
</div><!-- description -->
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
<!-- Methods -->
|
380
|
+
|
381
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
382
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
383
|
+
|
384
|
+
|
385
|
+
<div id="method-i-check" class="method-detail ">
|
386
|
+
|
387
|
+
<div class="method-heading">
|
388
|
+
<span class="method-name">check</span><span
|
389
|
+
class="method-args">(source)</span>
|
390
|
+
<span class="method-click-advice">click to toggle source</span>
|
391
|
+
</div>
|
392
|
+
|
393
|
+
|
394
|
+
<div class="method-description">
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
<div class="method-source-code" id="check-source">
|
401
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 66</span>
|
402
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">check</span>(<span class="ruby-identifier">source</span>)
|
403
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">/notice:\s+(.+?):\s+(.+)\s*/</span>)
|
404
|
+
<span class="ruby-identifier">source_element</span> = <span class="ruby-node">$1</span>
|
405
|
+
<span class="ruby-identifier">source_operation</span> = <span class="ruby-string">''</span>
|
406
|
+
<span class="ruby-identifier">source_message</span> = <span class="ruby-node">$2</span>
|
407
|
+
|
408
|
+
<span class="ruby-identifier">source_elements</span> = <span class="ruby-identifier">source_element</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">'/'</span>)
|
409
|
+
<span class="ruby-identifier">source_operation</span> = <span class="ruby-identifier">source_elements</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">strip</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">source_elements</span>.<span class="ruby-identifier">last</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">/[\[\]]/</span>)
|
410
|
+
|
411
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">source_operation</span>
|
412
|
+
<span class="ruby-identifier">source_element</span> = <span class="ruby-identifier">source_elements</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'/'</span>).<span class="ruby-identifier">strip</span>
|
413
|
+
<span class="ruby-identifier">success</span> = ( <span class="ruby-identifier">source_element</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">element</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">source_operation</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">operation</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">source_message</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">message</span>) )
|
414
|
+
|
415
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"Checking puppet event with source #{source_element} #{source_operation} #{source_message}: #{success.inspect}"</span>)
|
416
|
+
|
417
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">success</span>
|
418
|
+
<span class="ruby-keyword">else</span>
|
419
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-string">"Can not check puppet event because it is missing an operation"</span>)
|
420
|
+
<span class="ruby-keyword">end</span>
|
421
|
+
<span class="ruby-keyword">end</span>
|
422
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>
|
423
|
+
<span class="ruby-keyword">end</span></pre>
|
424
|
+
</div><!-- check-source -->
|
425
|
+
|
426
|
+
</div>
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
</div><!-- check-method -->
|
432
|
+
|
433
|
+
|
434
|
+
<div id="method-i-element" class="method-detail ">
|
435
|
+
|
436
|
+
<div class="method-heading">
|
437
|
+
<span class="method-name">element</span><span
|
438
|
+
class="method-args">(default = '')</span>
|
439
|
+
<span class="method-click-advice">click to toggle source</span>
|
440
|
+
</div>
|
441
|
+
|
442
|
+
|
443
|
+
<div class="method-description">
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
<div class="method-source-code" id="element-source">
|
450
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 23</span>
|
451
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">element</span>(<span class="ruby-identifier">default</span> = <span class="ruby-string">''</span>)
|
452
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get</span>(<span class="ruby-value">:element</span>, <span class="ruby-identifier">default</span>, <span class="ruby-value">:string</span>)
|
453
|
+
<span class="ruby-keyword">end</span></pre>
|
454
|
+
</div><!-- element-source -->
|
455
|
+
|
456
|
+
</div>
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
</div><!-- element-method -->
|
462
|
+
|
463
|
+
|
464
|
+
<div id="method-i-element-3D" class="method-detail ">
|
465
|
+
|
466
|
+
<div class="method-heading">
|
467
|
+
<span class="method-name">element=</span><span
|
468
|
+
class="method-args">(element)</span>
|
469
|
+
<span class="method-click-advice">click to toggle source</span>
|
470
|
+
</div>
|
471
|
+
|
472
|
+
|
473
|
+
<div class="method-description">
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
<div class="method-source-code" id="element-3D-source">
|
480
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 29</span>
|
481
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">element=</span><span class="ruby-identifier">element</span>
|
482
|
+
<span class="ruby-identifier">set</span>(<span class="ruby-value">:element</span>, <span class="ruby-identifier">string</span>(<span class="ruby-identifier">element</span>))
|
483
|
+
<span class="ruby-keyword">end</span></pre>
|
484
|
+
</div><!-- element-3D-source -->
|
485
|
+
|
486
|
+
</div>
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
</div><!-- element-3D-method -->
|
492
|
+
|
493
|
+
|
494
|
+
<div id="method-i-message" class="method-detail ">
|
495
|
+
|
496
|
+
<div class="method-heading">
|
497
|
+
<span class="method-name">message</span><span
|
498
|
+
class="method-args">(default = '')</span>
|
499
|
+
<span class="method-click-advice">click to toggle source</span>
|
500
|
+
</div>
|
501
|
+
|
502
|
+
|
503
|
+
<div class="method-description">
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
<div class="method-source-code" id="message-source">
|
510
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 47</span>
|
511
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">message</span>(<span class="ruby-identifier">default</span> = <span class="ruby-string">''</span>)
|
512
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get</span>(<span class="ruby-value">:message</span>, <span class="ruby-identifier">default</span>, <span class="ruby-value">:string</span>)
|
513
|
+
<span class="ruby-keyword">end</span></pre>
|
514
|
+
</div><!-- message-source -->
|
515
|
+
|
516
|
+
</div>
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
</div><!-- message-method -->
|
522
|
+
|
523
|
+
|
524
|
+
<div id="method-i-message-3D" class="method-detail ">
|
525
|
+
|
526
|
+
<div class="method-heading">
|
527
|
+
<span class="method-name">message=</span><span
|
528
|
+
class="method-args">(message)</span>
|
529
|
+
<span class="method-click-advice">click to toggle source</span>
|
530
|
+
</div>
|
531
|
+
|
532
|
+
|
533
|
+
<div class="method-description">
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
<div class="method-source-code" id="message-3D-source">
|
540
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 53</span>
|
541
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">message=</span><span class="ruby-identifier">message</span>
|
542
|
+
<span class="ruby-identifier">set</span>(<span class="ruby-value">:message</span>, <span class="ruby-identifier">string</span>(<span class="ruby-identifier">message</span>))
|
543
|
+
<span class="ruby-keyword">end</span></pre>
|
544
|
+
</div><!-- message-3D-source -->
|
545
|
+
|
546
|
+
</div>
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
</div><!-- message-3D-method -->
|
552
|
+
|
553
|
+
|
554
|
+
<div id="method-i-normalize" class="method-detail ">
|
555
|
+
|
556
|
+
<div class="method-heading">
|
557
|
+
<span class="method-name">normalize</span><span
|
558
|
+
class="method-args">(reload)</span>
|
559
|
+
<span class="method-click-advice">click to toggle source</span>
|
560
|
+
</div>
|
561
|
+
|
562
|
+
|
563
|
+
<div class="method-description">
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
<div class="method-source-code" id="normalize-source">
|
570
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 9</span>
|
571
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize</span>(<span class="ruby-identifier">reload</span>)
|
572
|
+
<span class="ruby-keyword">super</span>
|
573
|
+
|
574
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">get</span>(<span class="ruby-value">:string</span>)
|
575
|
+
<span class="ruby-identifier">items</span> = <span class="ruby-identifier">string</span>(<span class="ruby-identifier">delete</span>(<span class="ruby-value">:string</span>)).<span class="ruby-identifier">split</span>(<span class="ruby-string">':'</span>)
|
576
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">element</span> = <span class="ruby-identifier">items</span>[<span class="ruby-value">0</span>]
|
577
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">operation</span> = <span class="ruby-identifier">items</span>[<span class="ruby-value">1</span>]
|
578
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">message</span> = <span class="ruby-identifier">items</span>[<span class="ruby-value">2</span>]
|
579
|
+
<span class="ruby-keyword">end</span>
|
580
|
+
<span class="ruby-keyword">end</span></pre>
|
581
|
+
</div><!-- normalize-source -->
|
582
|
+
|
583
|
+
</div>
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
</div><!-- normalize-method -->
|
589
|
+
|
590
|
+
|
591
|
+
<div id="method-i-operation" class="method-detail ">
|
592
|
+
|
593
|
+
<div class="method-heading">
|
594
|
+
<span class="method-name">operation</span><span
|
595
|
+
class="method-args">(default = '')</span>
|
596
|
+
<span class="method-click-advice">click to toggle source</span>
|
597
|
+
</div>
|
598
|
+
|
599
|
+
|
600
|
+
<div class="method-description">
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
<div class="method-source-code" id="operation-source">
|
607
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 35</span>
|
608
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">operation</span>(<span class="ruby-identifier">default</span> = <span class="ruby-string">''</span>)
|
609
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get</span>(<span class="ruby-value">:operation</span>, <span class="ruby-identifier">default</span>, <span class="ruby-value">:string</span>)
|
610
|
+
<span class="ruby-keyword">end</span></pre>
|
611
|
+
</div><!-- operation-source -->
|
612
|
+
|
613
|
+
</div>
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
</div><!-- operation-method -->
|
619
|
+
|
620
|
+
|
621
|
+
<div id="method-i-operation-3D" class="method-detail ">
|
622
|
+
|
623
|
+
<div class="method-heading">
|
624
|
+
<span class="method-name">operation=</span><span
|
625
|
+
class="method-args">(operation)</span>
|
626
|
+
<span class="method-click-advice">click to toggle source</span>
|
627
|
+
</div>
|
628
|
+
|
629
|
+
|
630
|
+
<div class="method-description">
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
<div class="method-source-code" id="operation-3D-source">
|
637
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 41</span>
|
638
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">operation=</span><span class="ruby-identifier">operation</span>
|
639
|
+
<span class="ruby-identifier">set</span>(<span class="ruby-value">:operation</span>, <span class="ruby-identifier">string</span>(<span class="ruby-identifier">operation</span>))
|
640
|
+
<span class="ruby-keyword">end</span></pre>
|
641
|
+
</div><!-- operation-3D-source -->
|
642
|
+
|
643
|
+
</div>
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
</div><!-- operation-3D-method -->
|
649
|
+
|
650
|
+
|
651
|
+
<div id="method-i-render" class="method-detail ">
|
652
|
+
|
653
|
+
<div class="method-heading">
|
654
|
+
<span class="method-name">render</span><span
|
655
|
+
class="method-args">()</span>
|
656
|
+
<span class="method-click-advice">click to toggle source</span>
|
657
|
+
</div>
|
658
|
+
|
659
|
+
|
660
|
+
<div class="method-description">
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
<div class="method-source-code" id="render-source">
|
667
|
+
<pre><span class="ruby-comment"># File lib/nucleon/event/puppet.rb, line 60</span>
|
668
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">render</span>
|
669
|
+
<span class="ruby-keyword">return</span> <span class="ruby-node">"#{name}:#{element}:#{operation}:#{message}"</span>
|
670
|
+
<span class="ruby-keyword">end</span></pre>
|
671
|
+
</div><!-- render-source -->
|
672
|
+
|
673
|
+
</div>
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
</div><!-- render-method -->
|
679
|
+
|
680
|
+
|
681
|
+
</section><!-- public-instance-method-details -->
|
682
|
+
|
683
|
+
</section><!-- 5Buntitled-5D -->
|
684
|
+
|
685
|
+
</div><!-- documentation -->
|
686
|
+
|
687
|
+
|
688
|
+
<footer id="validator-badges">
|
689
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
690
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
691
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
692
|
+
</footer>
|
693
|
+
|