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,1271 @@
|
|
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::Configuration - 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/configuration.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">Mixin::SubConfig</span>
|
74
|
+
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</nav>
|
78
|
+
|
79
|
+
<!-- Method Quickref -->
|
80
|
+
<nav id="method-list-section" class="section">
|
81
|
+
<h3 class="section-header">Methods</h3>
|
82
|
+
|
83
|
+
<ul class="link-list">
|
84
|
+
|
85
|
+
<li><a href="#method-c-register_ids">::register_ids</a>
|
86
|
+
|
87
|
+
<li><a href="#method-i-attach">#attach</a>
|
88
|
+
|
89
|
+
<li><a href="#method-i-autoload">#autoload</a>
|
90
|
+
|
91
|
+
<li><a href="#method-i-autoload-3D">#autoload=</a>
|
92
|
+
|
93
|
+
<li><a href="#method-i-autosave">#autosave</a>
|
94
|
+
|
95
|
+
<li><a href="#method-i-autosave-3D">#autosave=</a>
|
96
|
+
|
97
|
+
<li><a href="#method-i-cache">#cache</a>
|
98
|
+
|
99
|
+
<li><a href="#method-i-can_persist-3F">#can_persist?</a>
|
100
|
+
|
101
|
+
<li><a href="#method-i-clear">#clear</a>
|
102
|
+
|
103
|
+
<li><a href="#method-i-delete">#delete</a>
|
104
|
+
|
105
|
+
<li><a href="#method-i-delete_attachments">#delete_attachments</a>
|
106
|
+
|
107
|
+
<li><a href="#method-i-directory">#directory</a>
|
108
|
+
|
109
|
+
<li><a href="#method-i-ignore">#ignore</a>
|
110
|
+
|
111
|
+
<li><a href="#method-i-import">#import</a>
|
112
|
+
|
113
|
+
<li><a href="#method-i-load">#load</a>
|
114
|
+
|
115
|
+
<li><a href="#method-i-normalize">#normalize</a>
|
116
|
+
|
117
|
+
<li><a href="#method-i-project">#project</a>
|
118
|
+
|
119
|
+
<li><a href="#method-i-remote">#remote</a>
|
120
|
+
|
121
|
+
<li><a href="#method-i-remove">#remove</a>
|
122
|
+
|
123
|
+
<li><a href="#method-i-remove_plugin">#remove_plugin</a>
|
124
|
+
|
125
|
+
<li><a href="#method-i-save">#save</a>
|
126
|
+
|
127
|
+
<li><a href="#method-i-set">#set</a>
|
128
|
+
|
129
|
+
<li><a href="#method-i-set_location">#set_location</a>
|
130
|
+
|
131
|
+
<li><a href="#method-i-set_remote">#set_remote</a>
|
132
|
+
|
133
|
+
</ul>
|
134
|
+
</nav>
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<div id="project-metadata">
|
139
|
+
<nav id="fileindex-section" class="section project-section">
|
140
|
+
<h3 class="section-header">Pages</h3>
|
141
|
+
|
142
|
+
<ul>
|
143
|
+
|
144
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
145
|
+
|
146
|
+
</ul>
|
147
|
+
</nav>
|
148
|
+
|
149
|
+
<nav id="classindex-section" class="section project-section">
|
150
|
+
<h3 class="section-header">Class and Module Index</h3>
|
151
|
+
|
152
|
+
<ul class="link-list">
|
153
|
+
|
154
|
+
<li><a href="../../CORL.html">CORL</a>
|
155
|
+
|
156
|
+
<li><a href="../../CORL/Build.html">CORL::Build</a>
|
157
|
+
|
158
|
+
<li><a href="../../CORL/Builder.html">CORL::Builder</a>
|
159
|
+
|
160
|
+
<li><a href="../../CORL/Builder/Identity.html">CORL::Builder::Identity</a>
|
161
|
+
|
162
|
+
<li><a href="../../CORL/Builder/Package.html">CORL::Builder::Package</a>
|
163
|
+
|
164
|
+
<li><a href="../../CORL/Configuration.html">CORL::Configuration</a>
|
165
|
+
|
166
|
+
<li><a href="../../CORL/Configuration/File.html">CORL::Configuration::File</a>
|
167
|
+
|
168
|
+
<li><a href="../../CORL/Errors.html">CORL::Errors</a>
|
169
|
+
|
170
|
+
<li><a href="../../CORL/Facade.html">CORL::Facade</a>
|
171
|
+
|
172
|
+
<li><a href="../../CORL/Machine.html">CORL::Machine</a>
|
173
|
+
|
174
|
+
<li><a href="../../CORL/Machine/AWS.html">CORL::Machine::AWS</a>
|
175
|
+
|
176
|
+
<li><a href="../../CORL/Machine/Fog.html">CORL::Machine::Fog</a>
|
177
|
+
|
178
|
+
<li><a href="../../CORL/Machine/Physical.html">CORL::Machine::Physical</a>
|
179
|
+
|
180
|
+
<li><a href="../../CORL/Machine/Rackspace.html">CORL::Machine::Rackspace</a>
|
181
|
+
|
182
|
+
<li><a href="../../CORL/Machine/Vagrant.html">CORL::Machine::Vagrant</a>
|
183
|
+
|
184
|
+
<li><a href="../../CORL/Mixin.html">CORL::Mixin</a>
|
185
|
+
|
186
|
+
<li><a href="../../CORL/Mixin/Action.html">CORL::Mixin::Action</a>
|
187
|
+
|
188
|
+
<li><a href="../../CORL/Mixin/Action/Keypair.html">CORL::Mixin::Action::Keypair</a>
|
189
|
+
|
190
|
+
<li><a href="../../CORL/Mixin/Builder.html">CORL::Mixin::Builder</a>
|
191
|
+
|
192
|
+
<li><a href="../../CORL/Mixin/Builder/Global.html">CORL::Mixin::Builder::Global</a>
|
193
|
+
|
194
|
+
<li><a href="../../CORL/Mixin/Builder/Instance.html">CORL::Mixin::Builder::Instance</a>
|
195
|
+
|
196
|
+
<li><a href="../../CORL/Mixin/Lookup.html">CORL::Mixin::Lookup</a>
|
197
|
+
|
198
|
+
<li><a href="../../CORL/Mixin/Machine.html">CORL::Mixin::Machine</a>
|
199
|
+
|
200
|
+
<li><a href="../../CORL/Mixin/Machine/SSH.html">CORL::Mixin::Machine::SSH</a>
|
201
|
+
|
202
|
+
<li><a href="../../CORL/Mixin/Macro.html">CORL::Mixin::Macro</a>
|
203
|
+
|
204
|
+
<li><a href="../../CORL/Mixin/Macro/NetworkSettings.html">CORL::Mixin::Macro::NetworkSettings</a>
|
205
|
+
|
206
|
+
<li><a href="../../CORL/Network.html">CORL::Network</a>
|
207
|
+
|
208
|
+
<li><a href="../../CORL/Network/CORL.html">CORL::Network::CORL</a>
|
209
|
+
|
210
|
+
<li><a href="../../CORL/Node.html">CORL::Node</a>
|
211
|
+
|
212
|
+
<li><a href="../../CORL/Node/AWS.html">CORL::Node::AWS</a>
|
213
|
+
|
214
|
+
<li><a href="../../CORL/Node/Fog.html">CORL::Node::Fog</a>
|
215
|
+
|
216
|
+
<li><a href="../../CORL/Node/Local.html">CORL::Node::Local</a>
|
217
|
+
|
218
|
+
<li><a href="../../CORL/Node/Rackspace.html">CORL::Node::Rackspace</a>
|
219
|
+
|
220
|
+
<li><a href="../../CORL/Node/Vagrant.html">CORL::Node::Vagrant</a>
|
221
|
+
|
222
|
+
<li><a href="../../CORL/Plugin.html">CORL::Plugin</a>
|
223
|
+
|
224
|
+
<li><a href="../../CORL/Plugin/Builder.html">CORL::Plugin::Builder</a>
|
225
|
+
|
226
|
+
<li><a href="../../CORL/Plugin/Configuration.html">CORL::Plugin::Configuration</a>
|
227
|
+
|
228
|
+
<li><a href="../../CORL/Plugin/Machine.html">CORL::Plugin::Machine</a>
|
229
|
+
|
230
|
+
<li><a href="../../CORL/Plugin/Network.html">CORL::Plugin::Network</a>
|
231
|
+
|
232
|
+
<li><a href="../../CORL/Plugin/Node.html">CORL::Plugin::Node</a>
|
233
|
+
|
234
|
+
<li><a href="../../CORL/Plugin/Provisioner.html">CORL::Plugin::Provisioner</a>
|
235
|
+
|
236
|
+
<li><a href="../../CORL/Provisioner.html">CORL::Provisioner</a>
|
237
|
+
|
238
|
+
<li><a href="../../CORL/Provisioner/Puppetnode.html">CORL::Provisioner::Puppetnode</a>
|
239
|
+
|
240
|
+
<li><a href="../../CORL/Util.html">CORL::Util</a>
|
241
|
+
|
242
|
+
<li><a href="../../CORL/Util/Puppet.html">CORL::Util::Puppet</a>
|
243
|
+
|
244
|
+
<li><a href="../../CORL/Util/Puppet/Resource.html">CORL::Util::Puppet::Resource</a>
|
245
|
+
|
246
|
+
<li><a href="../../CORL/Util/Puppet/ResourceGroup.html">CORL::Util::Puppet::ResourceGroup</a>
|
247
|
+
|
248
|
+
<li><a href="../../CORL/Vagrant.html">CORL::Vagrant</a>
|
249
|
+
|
250
|
+
<li><a href="../../CORL/Vagrant/Config.html">CORL::Vagrant::Config</a>
|
251
|
+
|
252
|
+
<li><a href="../../Nucleon.html">Nucleon</a>
|
253
|
+
|
254
|
+
<li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
|
255
|
+
|
256
|
+
<li><a href="../../Nucleon/Action/Cloud.html">Nucleon::Action::Cloud</a>
|
257
|
+
|
258
|
+
<li><a href="../../Nucleon/Action/Cloud/Create.html">Nucleon::Action::Cloud::Create</a>
|
259
|
+
|
260
|
+
<li><a href="../../Nucleon/Action/Cloud/Hiera.html">Nucleon::Action::Cloud::Hiera</a>
|
261
|
+
|
262
|
+
<li><a href="../../Nucleon/Action/Cloud/Images.html">Nucleon::Action::Cloud::Images</a>
|
263
|
+
|
264
|
+
<li><a href="../../Nucleon/Action/Cloud/Inspect.html">Nucleon::Action::Cloud::Inspect</a>
|
265
|
+
|
266
|
+
<li><a href="../../Nucleon/Action/Cloud/Machines.html">Nucleon::Action::Cloud::Machines</a>
|
267
|
+
|
268
|
+
<li><a href="../../Nucleon/Action/Cloud/Regions.html">Nucleon::Action::Cloud::Regions</a>
|
269
|
+
|
270
|
+
<li><a href="../../Nucleon/Action/Cloud/Vagrantfile.html">Nucleon::Action::Cloud::Vagrantfile</a>
|
271
|
+
|
272
|
+
<li><a href="../../Nucleon/Action/Node.html">Nucleon::Action::Node</a>
|
273
|
+
|
274
|
+
<li><a href="../../Nucleon/Action/Node/Authorize.html">Nucleon::Action::Node::Authorize</a>
|
275
|
+
|
276
|
+
<li><a href="../../Nucleon/Action/Node/Bootstrap.html">Nucleon::Action::Node::Bootstrap</a>
|
277
|
+
|
278
|
+
<li><a href="../../Nucleon/Action/Node/Build.html">Nucleon::Action::Node::Build</a>
|
279
|
+
|
280
|
+
<li><a href="../../Nucleon/Action/Node/Destroy.html">Nucleon::Action::Node::Destroy</a>
|
281
|
+
|
282
|
+
<li><a href="../../Nucleon/Action/Node/Exec.html">Nucleon::Action::Node::Exec</a>
|
283
|
+
|
284
|
+
<li><a href="../../Nucleon/Action/Node/Facts.html">Nucleon::Action::Node::Facts</a>
|
285
|
+
|
286
|
+
<li><a href="../../Nucleon/Action/Node/IP.html">Nucleon::Action::Node::IP</a>
|
287
|
+
|
288
|
+
<li><a href="../../Nucleon/Action/Node/Image.html">Nucleon::Action::Node::Image</a>
|
289
|
+
|
290
|
+
<li><a href="../../Nucleon/Action/Node/Keypair.html">Nucleon::Action::Node::Keypair</a>
|
291
|
+
|
292
|
+
<li><a href="../../Nucleon/Action/Node/Lookup.html">Nucleon::Action::Node::Lookup</a>
|
293
|
+
|
294
|
+
<li><a href="../../Nucleon/Action/Node/Provision.html">Nucleon::Action::Node::Provision</a>
|
295
|
+
|
296
|
+
<li><a href="../../Nucleon/Action/Node/Reboot.html">Nucleon::Action::Node::Reboot</a>
|
297
|
+
|
298
|
+
<li><a href="../../Nucleon/Action/Node/Revoke.html">Nucleon::Action::Node::Revoke</a>
|
299
|
+
|
300
|
+
<li><a href="../../Nucleon/Action/Node/SSH.html">Nucleon::Action::Node::SSH</a>
|
301
|
+
|
302
|
+
<li><a href="../../Nucleon/Action/Node/Seed.html">Nucleon::Action::Node::Seed</a>
|
303
|
+
|
304
|
+
<li><a href="../../Nucleon/Action/Node/Spawn.html">Nucleon::Action::Node::Spawn</a>
|
305
|
+
|
306
|
+
<li><a href="../../Nucleon/Action/Node/Start.html">Nucleon::Action::Node::Start</a>
|
307
|
+
|
308
|
+
<li><a href="../../Nucleon/Action/Node/Stop.html">Nucleon::Action::Node::Stop</a>
|
309
|
+
|
310
|
+
<li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
|
311
|
+
|
312
|
+
<li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
|
313
|
+
|
314
|
+
<li><a href="../../Nucleon/Event/Puppet.html">Nucleon::Event::Puppet</a>
|
315
|
+
|
316
|
+
<li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
317
|
+
|
318
|
+
<li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
319
|
+
|
320
|
+
<li><a href="../../Nucleon/Plugin/CloudAction.html">Nucleon::Plugin::CloudAction</a>
|
321
|
+
|
322
|
+
<li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
|
323
|
+
|
324
|
+
<li><a href="../../Nucleon/Template/Environment.html">Nucleon::Template::Environment</a>
|
325
|
+
|
326
|
+
<li><a href="../../VagrantPlugins.html">VagrantPlugins</a>
|
327
|
+
|
328
|
+
<li><a href="../../VagrantPlugins/CORL.html">VagrantPlugins::CORL</a>
|
329
|
+
|
330
|
+
<li><a href="../../VagrantPlugins/CORL/Action.html">VagrantPlugins::CORL::Action</a>
|
331
|
+
|
332
|
+
<li><a href="../../VagrantPlugins/CORL/Action/DeleteCache.html">VagrantPlugins::CORL::Action::DeleteCache</a>
|
333
|
+
|
334
|
+
<li><a href="../../VagrantPlugins/CORL/Action/InitKeys.html">VagrantPlugins::CORL::Action::InitKeys</a>
|
335
|
+
|
336
|
+
<li><a href="../../VagrantPlugins/CORL/Action/LinkNetwork.html">VagrantPlugins::CORL::Action::LinkNetwork</a>
|
337
|
+
|
338
|
+
<li><a href="../../VagrantPlugins/CORL/BaseAction.html">VagrantPlugins::CORL::BaseAction</a>
|
339
|
+
|
340
|
+
<li><a href="../../VagrantPlugins/CORL/Command.html">VagrantPlugins::CORL::Command</a>
|
341
|
+
|
342
|
+
<li><a href="../../VagrantPlugins/CORL/Command/Launcher.html">VagrantPlugins::CORL::Command::Launcher</a>
|
343
|
+
|
344
|
+
<li><a href="../../VagrantPlugins/CORL/Config.html">VagrantPlugins::CORL::Config</a>
|
345
|
+
|
346
|
+
<li><a href="../../VagrantPlugins/CORL/Config/CORL.html">VagrantPlugins::CORL::Config::CORL</a>
|
347
|
+
|
348
|
+
<li><a href="../../VagrantPlugins/CORL/Plugin.html">VagrantPlugins::CORL::Plugin</a>
|
349
|
+
|
350
|
+
<li><a href="../../VagrantPlugins/CORL/Provisioner.html">VagrantPlugins::CORL::Provisioner</a>
|
351
|
+
|
352
|
+
<li><a href="../../VagrantPlugins/CORL/Provisioner/CORL.html">VagrantPlugins::CORL::Provisioner::CORL</a>
|
353
|
+
|
354
|
+
<li><a href="../../Puppet.html">Puppet</a>
|
355
|
+
|
356
|
+
<li><a href="../../Puppet/DataBinding.html">Puppet::DataBinding</a>
|
357
|
+
|
358
|
+
<li><a href="../../Puppet/DataBinding/Corl.html">Puppet::DataBinding::Corl</a>
|
359
|
+
|
360
|
+
<li><a href="../../Puppet/Indirector.html">Puppet::Indirector</a>
|
361
|
+
|
362
|
+
<li><a href="../../Puppet/Indirector/Corl.html">Puppet::Indirector::Corl</a>
|
363
|
+
|
364
|
+
<li><a href="../../Puppet/Parser.html">Puppet::Parser</a>
|
365
|
+
|
366
|
+
<li><a href="../../Puppet/Parser/Functions.html">Puppet::Parser::Functions</a>
|
367
|
+
|
368
|
+
<li><a href="../../Fog.html">Fog</a>
|
369
|
+
|
370
|
+
<li><a href="../../Fog/Compute.html">Fog::Compute</a>
|
371
|
+
|
372
|
+
<li><a href="../../Fog/Compute/AWS.html">Fog::Compute::AWS</a>
|
373
|
+
|
374
|
+
<li><a href="../../Fog/Compute/AWS/Server.html">Fog::Compute::AWS::Server</a>
|
375
|
+
|
376
|
+
<li><a href="../../Fog/Compute/RackspaceV2.html">Fog::Compute::RackspaceV2</a>
|
377
|
+
|
378
|
+
<li><a href="../../Fog/Compute/RackspaceV2/Server.html">Fog::Compute::RackspaceV2::Server</a>
|
379
|
+
|
380
|
+
<li><a href="../../Vagrant.html">Vagrant</a>
|
381
|
+
|
382
|
+
<li><a href="../../Vagrant/Config.html">Vagrant::Config</a>
|
383
|
+
|
384
|
+
<li><a href="../../Vagrant/Config/Loader.html">Vagrant::Config::Loader</a>
|
385
|
+
|
386
|
+
<li><a href="../../Vagrant/Vagrantfile.html">Vagrant::Vagrantfile</a>
|
387
|
+
|
388
|
+
<li><a href="../../Hiera.html">Hiera</a>
|
389
|
+
|
390
|
+
<li><a href="../../Hiera/Backend.html">Hiera::Backend</a>
|
391
|
+
|
392
|
+
<li><a href="../../Hiera/Corl_logger.html">Hiera::Corl_logger</a>
|
393
|
+
|
394
|
+
<li><a href="../../Object.html">Object</a>
|
395
|
+
|
396
|
+
</ul>
|
397
|
+
</nav>
|
398
|
+
|
399
|
+
</div>
|
400
|
+
</nav>
|
401
|
+
|
402
|
+
<div id="documentation">
|
403
|
+
<h1 class="class">class CORL::Plugin::Configuration</h1>
|
404
|
+
|
405
|
+
<div id="description" class="description">
|
406
|
+
|
407
|
+
</div><!-- description -->
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
<!-- Methods -->
|
422
|
+
|
423
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
424
|
+
<h3 class="section-header">Public Class Methods</h3>
|
425
|
+
|
426
|
+
|
427
|
+
<div id="method-c-register_ids" class="method-detail ">
|
428
|
+
|
429
|
+
<div class="method-heading">
|
430
|
+
<span class="method-name">register_ids</span><span
|
431
|
+
class="method-args">()</span>
|
432
|
+
<span class="method-click-advice">click to toggle source</span>
|
433
|
+
</div>
|
434
|
+
|
435
|
+
|
436
|
+
<div class="method-description">
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
<div class="method-source-code" id="register_ids-source">
|
443
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 10</span>
|
444
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">register_ids</span>
|
445
|
+
[ <span class="ruby-value">:name</span>, <span class="ruby-value">:directory</span> ]
|
446
|
+
<span class="ruby-keyword">end</span></pre>
|
447
|
+
</div><!-- register_ids-source -->
|
448
|
+
|
449
|
+
</div>
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
</div><!-- register_ids-method -->
|
455
|
+
|
456
|
+
|
457
|
+
</section><!-- public-class-method-details -->
|
458
|
+
|
459
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
460
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
461
|
+
|
462
|
+
|
463
|
+
<div id="method-i-attach" class="method-detail ">
|
464
|
+
|
465
|
+
<div class="method-heading">
|
466
|
+
<span class="method-name">attach</span><span
|
467
|
+
class="method-args">(type, name, data, options = {}) { |method_config| ... }</span>
|
468
|
+
<span class="method-click-advice">click to toggle source</span>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
|
472
|
+
<div class="method-description">
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
<div class="method-source-code" id="attach-source">
|
479
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 225</span>
|
480
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">attach</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">data</span>, <span class="ruby-identifier">options</span> = {})
|
481
|
+
<span class="ruby-identifier">method_config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
482
|
+
<span class="ruby-identifier">new_location</span> = <span class="ruby-keyword">nil</span>
|
483
|
+
|
484
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">can_persist?</span>
|
485
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">extension_check</span>(<span class="ruby-value">:attach</span>, { <span class="ruby-value">:config</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">method_config</span> })
|
486
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"Attaching data to source configuration"</span>)
|
487
|
+
|
488
|
+
<span class="ruby-identifier">new_location</span> = <span class="ruby-keyword">yield</span>(<span class="ruby-identifier">method_config</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
489
|
+
<span class="ruby-keyword">end</span>
|
490
|
+
<span class="ruby-keyword">else</span>
|
491
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-string">"Can not attach data to source configuration"</span>)
|
492
|
+
<span class="ruby-keyword">end</span>
|
493
|
+
<span class="ruby-identifier">new_location</span>
|
494
|
+
<span class="ruby-keyword">end</span></pre>
|
495
|
+
</div><!-- attach-source -->
|
496
|
+
|
497
|
+
</div>
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
</div><!-- attach-method -->
|
503
|
+
|
504
|
+
|
505
|
+
<div id="method-i-autoload" class="method-detail ">
|
506
|
+
|
507
|
+
<div class="method-heading">
|
508
|
+
<span class="method-name">autoload</span><span
|
509
|
+
class="method-args">(default = false)</span>
|
510
|
+
<span class="method-click-advice">click to toggle source</span>
|
511
|
+
</div>
|
512
|
+
|
513
|
+
|
514
|
+
<div class="method-description">
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
<div class="method-source-code" id="autoload-source">
|
521
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 82</span>
|
522
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">autoload</span>(<span class="ruby-identifier">default</span> = <span class="ruby-keyword">false</span>)
|
523
|
+
<span class="ruby-identifier">_get</span>(<span class="ruby-value">:autoload</span>, <span class="ruby-identifier">default</span>)
|
524
|
+
<span class="ruby-keyword">end</span></pre>
|
525
|
+
</div><!-- autoload-source -->
|
526
|
+
|
527
|
+
</div>
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
</div><!-- autoload-method -->
|
533
|
+
|
534
|
+
|
535
|
+
<div id="method-i-autoload-3D" class="method-detail ">
|
536
|
+
|
537
|
+
<div class="method-heading">
|
538
|
+
<span class="method-name">autoload=</span><span
|
539
|
+
class="method-args">(autoload)</span>
|
540
|
+
<span class="method-click-advice">click to toggle source</span>
|
541
|
+
</div>
|
542
|
+
|
543
|
+
|
544
|
+
<div class="method-description">
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
<div class="method-source-code" id="autoload-3D-source">
|
551
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 86</span>
|
552
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">autoload=</span><span class="ruby-identifier">autoload</span>
|
553
|
+
<span class="ruby-identifier">_set</span>(<span class="ruby-value">:autoload</span>, <span class="ruby-identifier">test</span>(<span class="ruby-identifier">autoload</span>))
|
554
|
+
<span class="ruby-keyword">end</span></pre>
|
555
|
+
</div><!-- autoload-3D-source -->
|
556
|
+
|
557
|
+
</div>
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
</div><!-- autoload-3D-method -->
|
563
|
+
|
564
|
+
|
565
|
+
<div id="method-i-autosave" class="method-detail ">
|
566
|
+
|
567
|
+
<div class="method-heading">
|
568
|
+
<span class="method-name">autosave</span><span
|
569
|
+
class="method-args">(default = false)</span>
|
570
|
+
<span class="method-click-advice">click to toggle source</span>
|
571
|
+
</div>
|
572
|
+
|
573
|
+
|
574
|
+
<div class="method-description">
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
<div class="method-source-code" id="autosave-source">
|
581
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 92</span>
|
582
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">autosave</span>(<span class="ruby-identifier">default</span> = <span class="ruby-keyword">false</span>)
|
583
|
+
<span class="ruby-identifier">_get</span>(<span class="ruby-value">:autosave</span>, <span class="ruby-identifier">default</span>)
|
584
|
+
<span class="ruby-keyword">end</span></pre>
|
585
|
+
</div><!-- autosave-source -->
|
586
|
+
|
587
|
+
</div>
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
</div><!-- autosave-method -->
|
593
|
+
|
594
|
+
|
595
|
+
<div id="method-i-autosave-3D" class="method-detail ">
|
596
|
+
|
597
|
+
<div class="method-heading">
|
598
|
+
<span class="method-name">autosave=</span><span
|
599
|
+
class="method-args">(autosave)</span>
|
600
|
+
<span class="method-click-advice">click to toggle source</span>
|
601
|
+
</div>
|
602
|
+
|
603
|
+
|
604
|
+
<div class="method-description">
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
<div class="method-source-code" id="autosave-3D-source">
|
611
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 96</span>
|
612
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">autosave=</span><span class="ruby-identifier">autosave</span>
|
613
|
+
<span class="ruby-identifier">_set</span>(<span class="ruby-value">:autosave</span>, <span class="ruby-identifier">test</span>(<span class="ruby-identifier">autosave</span>))
|
614
|
+
<span class="ruby-keyword">end</span></pre>
|
615
|
+
</div><!-- autosave-3D-source -->
|
616
|
+
|
617
|
+
</div>
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
</div><!-- autosave-3D-method -->
|
623
|
+
|
624
|
+
|
625
|
+
<div id="method-i-cache" class="method-detail ">
|
626
|
+
|
627
|
+
<div class="method-heading">
|
628
|
+
<span class="method-name">cache</span><span
|
629
|
+
class="method-args">()</span>
|
630
|
+
<span class="method-click-advice">click to toggle source</span>
|
631
|
+
</div>
|
632
|
+
|
633
|
+
|
634
|
+
<div class="method-description">
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
<div class="method-source-code" id="cache-source">
|
641
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 70</span>
|
642
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cache</span>
|
643
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">cache</span>
|
644
|
+
<span class="ruby-keyword">end</span></pre>
|
645
|
+
</div><!-- cache-source -->
|
646
|
+
|
647
|
+
</div>
|
648
|
+
|
649
|
+
|
650
|
+
|
651
|
+
|
652
|
+
</div><!-- cache-method -->
|
653
|
+
|
654
|
+
|
655
|
+
<div id="method-i-can_persist-3F" class="method-detail ">
|
656
|
+
|
657
|
+
<div class="method-heading">
|
658
|
+
<span class="method-name">can_persist?</span><span
|
659
|
+
class="method-args">()</span>
|
660
|
+
<span class="method-click-advice">click to toggle source</span>
|
661
|
+
</div>
|
662
|
+
|
663
|
+
|
664
|
+
<div class="method-description">
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
<div class="method-source-code" id="can_persist-3F-source">
|
671
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 51</span>
|
672
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">can_persist?</span>
|
673
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">can_persist?</span>
|
674
|
+
<span class="ruby-keyword">end</span></pre>
|
675
|
+
</div><!-- can_persist-3F-source -->
|
676
|
+
|
677
|
+
</div>
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
</div><!-- can_persist-3F-method -->
|
683
|
+
|
684
|
+
|
685
|
+
<div id="method-i-clear" class="method-detail ">
|
686
|
+
|
687
|
+
<div class="method-heading">
|
688
|
+
<span class="method-name">clear</span><span
|
689
|
+
class="method-args">(options = {})</span>
|
690
|
+
<span class="method-click-advice">click to toggle source</span>
|
691
|
+
</div>
|
692
|
+
|
693
|
+
|
694
|
+
<div class="method-description">
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
|
700
|
+
<div class="method-source-code" id="clear-source">
|
701
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 129</span>
|
702
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">clear</span>(<span class="ruby-identifier">options</span> = {})
|
703
|
+
<span class="ruby-keyword">super</span>
|
704
|
+
<span class="ruby-identifier">save</span>(<span class="ruby-identifier">options</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">autosave</span>
|
705
|
+
<span class="ruby-keyword">end</span></pre>
|
706
|
+
</div><!-- clear-source -->
|
707
|
+
|
708
|
+
</div>
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
</div><!-- clear-method -->
|
714
|
+
|
715
|
+
|
716
|
+
<div id="method-i-delete" class="method-detail ">
|
717
|
+
|
718
|
+
<div class="method-heading">
|
719
|
+
<span class="method-name">delete</span><span
|
720
|
+
class="method-args">(keys, options = {})</span>
|
721
|
+
<span class="method-click-advice">click to toggle source</span>
|
722
|
+
</div>
|
723
|
+
|
724
|
+
|
725
|
+
<div class="method-description">
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
<div class="method-source-code" id="delete-source">
|
732
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 122</span>
|
733
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">options</span> = {})
|
734
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">keys</span>)
|
735
|
+
<span class="ruby-identifier">save</span>(<span class="ruby-identifier">options</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">autosave</span>
|
736
|
+
<span class="ruby-keyword">end</span></pre>
|
737
|
+
</div><!-- delete-source -->
|
738
|
+
|
739
|
+
</div>
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
</div><!-- delete-method -->
|
745
|
+
|
746
|
+
|
747
|
+
<div id="method-i-delete_attachments" class="method-detail ">
|
748
|
+
|
749
|
+
<div class="method-heading">
|
750
|
+
<span class="method-name">delete_attachments</span><span
|
751
|
+
class="method-args">(type, ids, options = {}) { |method_config| ... }</span>
|
752
|
+
<span class="method-click-advice">click to toggle source</span>
|
753
|
+
</div>
|
754
|
+
|
755
|
+
|
756
|
+
<div class="method-description">
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
<div class="method-source-code" id="delete_attachments-source">
|
763
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 243</span>
|
764
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_attachments</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">ids</span>, <span class="ruby-identifier">options</span> = {})
|
765
|
+
<span class="ruby-identifier">method_config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
766
|
+
<span class="ruby-identifier">locations</span> = []
|
767
|
+
|
768
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">can_persist?</span>
|
769
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">extension_check</span>(<span class="ruby-value">:remove_attachments</span>, { <span class="ruby-value">:config</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">method_config</span> })
|
770
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"Removing attached data from source configuration"</span>)
|
771
|
+
|
772
|
+
<span class="ruby-identifier">locations</span> = <span class="ruby-keyword">yield</span>(<span class="ruby-identifier">method_config</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
773
|
+
<span class="ruby-keyword">end</span>
|
774
|
+
<span class="ruby-keyword">else</span>
|
775
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-string">"Can not remove attached data from source configuration"</span>)
|
776
|
+
<span class="ruby-keyword">end</span>
|
777
|
+
<span class="ruby-identifier">locations</span>
|
778
|
+
<span class="ruby-keyword">end</span></pre>
|
779
|
+
</div><!-- delete_attachments-source -->
|
780
|
+
|
781
|
+
</div>
|
782
|
+
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
</div><!-- delete_attachments-method -->
|
787
|
+
|
788
|
+
|
789
|
+
<div id="method-i-directory" class="method-detail ">
|
790
|
+
|
791
|
+
<div class="method-heading">
|
792
|
+
<span class="method-name">directory</span><span
|
793
|
+
class="method-args">()</span>
|
794
|
+
<span class="method-click-advice">click to toggle source</span>
|
795
|
+
</div>
|
796
|
+
|
797
|
+
|
798
|
+
<div class="method-description">
|
799
|
+
|
800
|
+
|
801
|
+
|
802
|
+
|
803
|
+
|
804
|
+
<div class="method-source-code" id="directory-source">
|
805
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 64</span>
|
806
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">directory</span>
|
807
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">directory</span>
|
808
|
+
<span class="ruby-keyword">end</span></pre>
|
809
|
+
</div><!-- directory-source -->
|
810
|
+
|
811
|
+
</div>
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
</div><!-- directory-method -->
|
817
|
+
|
818
|
+
|
819
|
+
<div id="method-i-ignore" class="method-detail ">
|
820
|
+
|
821
|
+
<div class="method-heading">
|
822
|
+
<span class="method-name">ignore</span><span
|
823
|
+
class="method-args">(files)</span>
|
824
|
+
<span class="method-click-advice">click to toggle source</span>
|
825
|
+
</div>
|
826
|
+
|
827
|
+
|
828
|
+
<div class="method-description">
|
829
|
+
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
|
834
|
+
<div class="method-source-code" id="ignore-source">
|
835
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 76</span>
|
836
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ignore</span>(<span class="ruby-identifier">files</span>)
|
837
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">ignore</span>(<span class="ruby-identifier">files</span>)
|
838
|
+
<span class="ruby-keyword">end</span></pre>
|
839
|
+
</div><!-- ignore-source -->
|
840
|
+
|
841
|
+
</div>
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
</div><!-- ignore-method -->
|
847
|
+
|
848
|
+
|
849
|
+
<div id="method-i-import" class="method-detail ">
|
850
|
+
|
851
|
+
<div class="method-heading">
|
852
|
+
<span class="method-name">import</span><span
|
853
|
+
class="method-args">(properties, options = {})</span>
|
854
|
+
<span class="method-click-advice">click to toggle source</span>
|
855
|
+
</div>
|
856
|
+
|
857
|
+
|
858
|
+
<div class="method-description">
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
|
864
|
+
<div class="method-source-code" id="import-source">
|
865
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 149</span>
|
866
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">import</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">options</span> = {})
|
867
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">options</span>)
|
868
|
+
<span class="ruby-identifier">save</span>(<span class="ruby-identifier">options</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">autosave</span>
|
869
|
+
<span class="ruby-keyword">end</span></pre>
|
870
|
+
</div><!-- import-source -->
|
871
|
+
|
872
|
+
</div>
|
873
|
+
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
</div><!-- import-method -->
|
878
|
+
|
879
|
+
|
880
|
+
<div id="method-i-load" class="method-detail ">
|
881
|
+
|
882
|
+
<div class="method-heading">
|
883
|
+
<span class="method-name">load</span><span
|
884
|
+
class="method-args">(options = {}) { |method_config, properties| ... }</span>
|
885
|
+
<span class="method-click-advice">click to toggle source</span>
|
886
|
+
</div>
|
887
|
+
|
888
|
+
|
889
|
+
<div class="method-description">
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
<div class="method-source-code" id="load-source">
|
896
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 157</span>
|
897
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">options</span> = {})
|
898
|
+
<span class="ruby-identifier">method_config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
899
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
|
900
|
+
|
901
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">can_persist?</span>
|
902
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">extension_check</span>(<span class="ruby-value">:load</span>, { <span class="ruby-value">:config</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">method_config</span> })
|
903
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"Loading source configuration"</span>)
|
904
|
+
|
905
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">clear</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">method_config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:override</span>, <span class="ruby-keyword">false</span>)
|
906
|
+
|
907
|
+
<span class="ruby-identifier">properties</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>
|
908
|
+
<span class="ruby-keyword">yield</span>(<span class="ruby-identifier">method_config</span>, <span class="ruby-identifier">properties</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
909
|
+
|
910
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">properties</span>.<span class="ruby-identifier">export</span>.<span class="ruby-identifier">empty?</span>
|
911
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"Source configuration parsed properties: #{properties}"</span>)
|
912
|
+
|
913
|
+
<span class="ruby-identifier">extension</span>(<span class="ruby-value">:load_process</span>, { <span class="ruby-value">:properties</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">properties</span>, <span class="ruby-value">:config</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">method_config</span> })
|
914
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">method_config</span>)
|
915
|
+
<span class="ruby-keyword">end</span>
|
916
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">true</span>
|
917
|
+
<span class="ruby-keyword">end</span>
|
918
|
+
<span class="ruby-keyword">else</span>
|
919
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-string">"Loading of source configuration failed"</span>)
|
920
|
+
<span class="ruby-keyword">end</span>
|
921
|
+
<span class="ruby-identifier">success</span>
|
922
|
+
<span class="ruby-keyword">end</span></pre>
|
923
|
+
</div><!-- load-source -->
|
924
|
+
|
925
|
+
</div>
|
926
|
+
|
927
|
+
|
928
|
+
|
929
|
+
|
930
|
+
</div><!-- load-method -->
|
931
|
+
|
932
|
+
|
933
|
+
<div id="method-i-normalize" class="method-detail ">
|
934
|
+
|
935
|
+
<div class="method-heading">
|
936
|
+
<span class="method-name">normalize</span><span
|
937
|
+
class="method-args">(reload) { || ... }</span>
|
938
|
+
<span class="method-click-advice">click to toggle source</span>
|
939
|
+
</div>
|
940
|
+
|
941
|
+
|
942
|
+
<div class="method-description">
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
947
|
+
|
948
|
+
<div class="method-source-code" id="normalize-source">
|
949
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 17</span>
|
950
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize</span>(<span class="ruby-identifier">reload</span>)
|
951
|
+
<span class="ruby-keyword">super</span>
|
952
|
+
|
953
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-string">"Initializing source sub configuration"</span>)
|
954
|
+
<span class="ruby-identifier">init_subconfig</span>(<span class="ruby-keyword">true</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">reload</span>
|
955
|
+
|
956
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"Setting source configuration project"</span>)
|
957
|
+
<span class="ruby-ivar">@project</span> = <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">project</span>(<span class="ruby-identifier">extended_config</span>(<span class="ruby-value">:project</span>, {
|
958
|
+
<span class="ruby-value">:directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">_delete</span>(<span class="ruby-value">:directory</span>, <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>),
|
959
|
+
<span class="ruby-value">:url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">_delete</span>(<span class="ruby-value">:url</span>),
|
960
|
+
<span class="ruby-value">:revision</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">_delete</span>(<span class="ruby-value">:revision</span>),
|
961
|
+
<span class="ruby-value">:create</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">_delete</span>(<span class="ruby-value">:create</span>, <span class="ruby-keyword">false</span>),
|
962
|
+
<span class="ruby-value">:pull</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>,
|
963
|
+
<span class="ruby-value">:internal_ip</span> =<span class="ruby-operator">></span> <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">public_ip</span>, <span class="ruby-comment"># Needed for seeding Vagrant VMs</span>
|
964
|
+
<span class="ruby-value">:manage_ignore</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">_delete</span>(<span class="ruby-value">:manage_ignore</span>, <span class="ruby-keyword">true</span>)
|
965
|
+
}), <span class="ruby-identifier">_delete</span>(<span class="ruby-value">:project_provider</span>))
|
966
|
+
|
967
|
+
<span class="ruby-identifier">_init</span>(<span class="ruby-value">:autoload</span>, <span class="ruby-keyword">true</span>)
|
968
|
+
<span class="ruby-identifier">_init</span>(<span class="ruby-value">:autosave</span>, <span class="ruby-keyword">false</span>)
|
969
|
+
|
970
|
+
<span class="ruby-keyword">yield</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
971
|
+
|
972
|
+
<span class="ruby-identifier">set_location</span>(<span class="ruby-ivar">@project</span>)
|
973
|
+
<span class="ruby-keyword">end</span></pre>
|
974
|
+
</div><!-- normalize-source -->
|
975
|
+
|
976
|
+
</div>
|
977
|
+
|
978
|
+
|
979
|
+
|
980
|
+
|
981
|
+
</div><!-- normalize-method -->
|
982
|
+
|
983
|
+
|
984
|
+
<div id="method-i-project" class="method-detail ">
|
985
|
+
|
986
|
+
<div class="method-heading">
|
987
|
+
<span class="method-name">project</span><span
|
988
|
+
class="method-args">()</span>
|
989
|
+
<span class="method-click-advice">click to toggle source</span>
|
990
|
+
</div>
|
991
|
+
|
992
|
+
|
993
|
+
<div class="method-description">
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
<div class="method-source-code" id="project-source">
|
1000
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 58</span>
|
1001
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">project</span>
|
1002
|
+
<span class="ruby-ivar">@project</span>
|
1003
|
+
<span class="ruby-keyword">end</span></pre>
|
1004
|
+
</div><!-- project-source -->
|
1005
|
+
|
1006
|
+
</div>
|
1007
|
+
|
1008
|
+
|
1009
|
+
|
1010
|
+
|
1011
|
+
</div><!-- project-method -->
|
1012
|
+
|
1013
|
+
|
1014
|
+
<div id="method-i-remote" class="method-detail ">
|
1015
|
+
|
1016
|
+
<div class="method-heading">
|
1017
|
+
<span class="method-name">remote</span><span
|
1018
|
+
class="method-args">(name)</span>
|
1019
|
+
<span class="method-click-advice">click to toggle source</span>
|
1020
|
+
</div>
|
1021
|
+
|
1022
|
+
|
1023
|
+
<div class="method-description">
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
|
1028
|
+
|
1029
|
+
<div class="method-source-code" id="remote-source">
|
1030
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 136</span>
|
1031
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">remote</span>(<span class="ruby-identifier">name</span>)
|
1032
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">remote</span>(<span class="ruby-identifier">name</span>)
|
1033
|
+
<span class="ruby-keyword">end</span></pre>
|
1034
|
+
</div><!-- remote-source -->
|
1035
|
+
|
1036
|
+
</div>
|
1037
|
+
|
1038
|
+
|
1039
|
+
|
1040
|
+
|
1041
|
+
</div><!-- remote-method -->
|
1042
|
+
|
1043
|
+
|
1044
|
+
<div id="method-i-remove" class="method-detail ">
|
1045
|
+
|
1046
|
+
<div class="method-heading">
|
1047
|
+
<span class="method-name">remove</span><span
|
1048
|
+
class="method-args">(options = {}) { |method_config| ... }</span>
|
1049
|
+
<span class="method-click-advice">click to toggle source</span>
|
1050
|
+
</div>
|
1051
|
+
|
1052
|
+
|
1053
|
+
<div class="method-description">
|
1054
|
+
|
1055
|
+
|
1056
|
+
|
1057
|
+
|
1058
|
+
|
1059
|
+
<div class="method-source-code" id="remove-source">
|
1060
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 205</span>
|
1061
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">options</span> = {})
|
1062
|
+
<span class="ruby-identifier">method_config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
1063
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
|
1064
|
+
|
1065
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">can_persist?</span>
|
1066
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">extension_check</span>(<span class="ruby-value">:delete</span>, { <span class="ruby-value">:config</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">method_config</span> })
|
1067
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"Removing source configuration"</span>)
|
1068
|
+
|
1069
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">clear</span>
|
1070
|
+
|
1071
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">yield</span>(<span class="ruby-identifier">method_config</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
1072
|
+
<span class="ruby-keyword">end</span>
|
1073
|
+
<span class="ruby-keyword">else</span>
|
1074
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-string">"Can not remove source configuration"</span>)
|
1075
|
+
<span class="ruby-keyword">end</span>
|
1076
|
+
<span class="ruby-identifier">success</span>
|
1077
|
+
<span class="ruby-keyword">end</span></pre>
|
1078
|
+
</div><!-- remove-source -->
|
1079
|
+
|
1080
|
+
</div>
|
1081
|
+
|
1082
|
+
|
1083
|
+
|
1084
|
+
|
1085
|
+
</div><!-- remove-method -->
|
1086
|
+
|
1087
|
+
|
1088
|
+
<div id="method-i-remove_plugin" class="method-detail ">
|
1089
|
+
|
1090
|
+
<div class="method-heading">
|
1091
|
+
<span class="method-name">remove_plugin</span><span
|
1092
|
+
class="method-args">()</span>
|
1093
|
+
<span class="method-click-advice">click to toggle source</span>
|
1094
|
+
</div>
|
1095
|
+
|
1096
|
+
|
1097
|
+
<div class="method-description">
|
1098
|
+
|
1099
|
+
|
1100
|
+
|
1101
|
+
|
1102
|
+
|
1103
|
+
<div class="method-source-code" id="remove_plugin-source">
|
1104
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 44</span>
|
1105
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">remove_plugin</span>
|
1106
|
+
<span class="ruby-constant">CORL</span>.<span class="ruby-identifier">remove_plugin</span>(<span class="ruby-ivar">@project</span>)
|
1107
|
+
<span class="ruby-keyword">end</span></pre>
|
1108
|
+
</div><!-- remove_plugin-source -->
|
1109
|
+
|
1110
|
+
</div>
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
</div><!-- remove_plugin-method -->
|
1116
|
+
|
1117
|
+
|
1118
|
+
<div id="method-i-save" class="method-detail ">
|
1119
|
+
|
1120
|
+
<div class="method-heading">
|
1121
|
+
<span class="method-name">save</span><span
|
1122
|
+
class="method-args">(options = {}) { |method_config| ... }</span>
|
1123
|
+
<span class="method-click-advice">click to toggle source</span>
|
1124
|
+
</div>
|
1125
|
+
|
1126
|
+
|
1127
|
+
<div class="method-description">
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
<div class="method-source-code" id="save-source">
|
1134
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 186</span>
|
1135
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">options</span> = {})
|
1136
|
+
<span class="ruby-identifier">method_config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
1137
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
|
1138
|
+
|
1139
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">can_persist?</span>
|
1140
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">extension_check</span>(<span class="ruby-value">:save</span>, { <span class="ruby-value">:config</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">method_config</span> })
|
1141
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"Saving source configuration"</span>)
|
1142
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"Source configuration properties: #{config.export}"</span>)
|
1143
|
+
|
1144
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">yield</span>(<span class="ruby-identifier">method_config</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
1145
|
+
<span class="ruby-keyword">end</span>
|
1146
|
+
<span class="ruby-keyword">else</span>
|
1147
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-string">"Can not save source configuration"</span>)
|
1148
|
+
<span class="ruby-keyword">end</span>
|
1149
|
+
<span class="ruby-identifier">success</span>
|
1150
|
+
<span class="ruby-keyword">end</span></pre>
|
1151
|
+
</div><!-- save-source -->
|
1152
|
+
|
1153
|
+
</div>
|
1154
|
+
|
1155
|
+
|
1156
|
+
|
1157
|
+
|
1158
|
+
</div><!-- save-method -->
|
1159
|
+
|
1160
|
+
|
1161
|
+
<div id="method-i-set" class="method-detail ">
|
1162
|
+
|
1163
|
+
<div class="method-heading">
|
1164
|
+
<span class="method-name">set</span><span
|
1165
|
+
class="method-args">(keys, value = '', options = {})</span>
|
1166
|
+
<span class="method-click-advice">click to toggle source</span>
|
1167
|
+
</div>
|
1168
|
+
|
1169
|
+
|
1170
|
+
<div class="method-description">
|
1171
|
+
|
1172
|
+
|
1173
|
+
|
1174
|
+
|
1175
|
+
|
1176
|
+
<div class="method-source-code" id="set-source">
|
1177
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 115</span>
|
1178
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">value</span> = <span class="ruby-string">''</span>, <span class="ruby-identifier">options</span> = {})
|
1179
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">value</span>)
|
1180
|
+
<span class="ruby-identifier">save</span>(<span class="ruby-identifier">options</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">autosave</span>
|
1181
|
+
<span class="ruby-keyword">end</span></pre>
|
1182
|
+
</div><!-- set-source -->
|
1183
|
+
|
1184
|
+
</div>
|
1185
|
+
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
</div><!-- set-method -->
|
1190
|
+
|
1191
|
+
|
1192
|
+
<div id="method-i-set_location" class="method-detail ">
|
1193
|
+
|
1194
|
+
<div class="method-heading">
|
1195
|
+
<span class="method-name">set_location</span><span
|
1196
|
+
class="method-args">(directory)</span>
|
1197
|
+
<span class="method-click-advice">click to toggle source</span>
|
1198
|
+
</div>
|
1199
|
+
|
1200
|
+
|
1201
|
+
<div class="method-description">
|
1202
|
+
|
1203
|
+
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
<div class="method-source-code" id="set_location-source">
|
1208
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 102</span>
|
1209
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_location</span>(<span class="ruby-identifier">directory</span>)
|
1210
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">directory</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">directory</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">CORL</span><span class="ruby-operator">::</span><span class="ruby-constant">Plugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Project</span>)
|
1211
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"Setting source project directory from other project at #{directory.directory}"</span>)
|
1212
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">set_location</span>(<span class="ruby-identifier">directory</span>.<span class="ruby-identifier">directory</span>)
|
1213
|
+
|
1214
|
+
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">directory</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">directory</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">directory</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>)
|
1215
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"Setting source project directory to #{directory}"</span>)
|
1216
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">set_location</span>(<span class="ruby-identifier">directory</span>.<span class="ruby-identifier">to_s</span>)
|
1217
|
+
<span class="ruby-keyword">end</span>
|
1218
|
+
<span class="ruby-keyword">end</span></pre>
|
1219
|
+
</div><!-- set_location-source -->
|
1220
|
+
|
1221
|
+
</div>
|
1222
|
+
|
1223
|
+
|
1224
|
+
|
1225
|
+
|
1226
|
+
</div><!-- set_location-method -->
|
1227
|
+
|
1228
|
+
|
1229
|
+
<div id="method-i-set_remote" class="method-detail ">
|
1230
|
+
|
1231
|
+
<div class="method-heading">
|
1232
|
+
<span class="method-name">set_remote</span><span
|
1233
|
+
class="method-args">(name, location)</span>
|
1234
|
+
<span class="method-click-advice">click to toggle source</span>
|
1235
|
+
</div>
|
1236
|
+
|
1237
|
+
|
1238
|
+
<div class="method-description">
|
1239
|
+
|
1240
|
+
|
1241
|
+
|
1242
|
+
|
1243
|
+
|
1244
|
+
<div class="method-source-code" id="set_remote-source">
|
1245
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/configuration.rb, line 142</span>
|
1246
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_remote</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">location</span>)
|
1247
|
+
<span class="ruby-identifier">project</span>.<span class="ruby-identifier">set_remote</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">location</span>)
|
1248
|
+
<span class="ruby-keyword">end</span></pre>
|
1249
|
+
</div><!-- set_remote-source -->
|
1250
|
+
|
1251
|
+
</div>
|
1252
|
+
|
1253
|
+
|
1254
|
+
|
1255
|
+
|
1256
|
+
</div><!-- set_remote-method -->
|
1257
|
+
|
1258
|
+
|
1259
|
+
</section><!-- public-instance-method-details -->
|
1260
|
+
|
1261
|
+
</section><!-- 5Buntitled-5D -->
|
1262
|
+
|
1263
|
+
</div><!-- documentation -->
|
1264
|
+
|
1265
|
+
|
1266
|
+
<footer id="validator-badges">
|
1267
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
1268
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
1269
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
1270
|
+
</footer>
|
1271
|
+
|