corl 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +8 -6
- data/VERSION +1 -1
- data/bootstrap/os/ubuntu/00_base.sh +2 -2
- data/bootstrap/os/ubuntu/05_ruby.sh +14 -2
- data/corl.gemspec +175 -5
- data/lib/CORL/builder/identity.rb +1 -1
- data/lib/CORL/builder/package.rb +1 -1
- data/lib/CORL/configuration/file.rb +7 -13
- data/lib/CORL/machine/physical.rb +1 -1
- data/lib/CORL/machine/vagrant.rb +12 -4
- data/lib/CORL/network/CORL.rb +1 -1
- data/lib/CORL/node/AWS.rb +25 -23
- data/lib/CORL/node/local.rb +1 -1
- data/lib/CORL/node/rackspace.rb +13 -15
- data/lib/CORL/node/vagrant.rb +1 -1
- data/lib/CORL/provisioner/puppetnode.rb +1 -1
- data/lib/core/mixin/action/keypair.rb +6 -6
- data/lib/core/mixin/action/registration.rb +39 -11
- data/lib/core/mod/fog_aws_server.rb +1 -3
- data/lib/core/plugin/builder.rb +1 -1
- data/lib/core/plugin/cloud_action.rb +59 -49
- data/lib/core/plugin/configuration.rb +4 -3
- data/lib/core/plugin/fog_machine.rb +10 -2
- data/lib/core/plugin/fog_node.rb +10 -4
- data/lib/core/plugin/machine.rb +2 -8
- data/lib/core/plugin/network.rb +9 -3
- data/lib/core/plugin/node.rb +30 -31
- data/lib/core/plugin/provisioner.rb +1 -1
- data/lib/core/vagrant/Vagrantfile +4 -1
- data/lib/core/vagrant/plugins.rb +6 -4
- data/lib/corl.rb +1 -1
- data/lib/nucleon/action/cloud/config.rb +167 -100
- data/lib/nucleon/action/cloud/create.rb +5 -1
- data/lib/nucleon/action/cloud/images.rb +10 -7
- data/lib/nucleon/action/cloud/inspect.rb +8 -6
- data/lib/nucleon/action/cloud/machines.rb +10 -7
- data/lib/nucleon/action/cloud/regions.rb +13 -8
- data/lib/nucleon/action/cloud/remote.rb +68 -0
- data/lib/nucleon/action/cloud/settings.rb +33 -47
- data/lib/nucleon/action/cloud/vagrantfile.rb +34 -17
- data/lib/nucleon/action/node/IP.rb +2 -2
- data/lib/nucleon/action/node/SSH.rb +3 -3
- data/lib/nucleon/action/node/authorize.rb +2 -2
- data/lib/nucleon/action/node/bootstrap.rb +17 -30
- data/lib/nucleon/action/node/build.rb +4 -4
- data/lib/nucleon/action/node/cache.rb +2 -4
- data/lib/nucleon/action/node/destroy.rb +25 -26
- data/lib/nucleon/action/node/exec.rb +2 -2
- data/lib/nucleon/action/node/fact.rb +10 -5
- data/lib/nucleon/action/node/group.rb +10 -5
- data/lib/nucleon/action/node/identity.rb +6 -8
- data/lib/nucleon/action/node/image.rb +3 -3
- data/lib/nucleon/action/node/keypair.rb +2 -2
- data/lib/nucleon/action/node/lookup.rb +2 -4
- data/lib/nucleon/action/node/provision.rb +2 -2
- data/lib/nucleon/action/node/reboot.rb +3 -3
- data/lib/nucleon/action/node/revoke.rb +2 -2
- data/lib/nucleon/action/node/seed.rb +28 -43
- data/lib/nucleon/action/node/spawn.rb +19 -14
- data/lib/nucleon/action/node/start.rb +3 -3
- data/lib/nucleon/action/node/status.rb +8 -8
- data/lib/nucleon/action/node/stop.rb +3 -3
- data/lib/nucleon/action/plugin/create.rb +10 -13
- data/lib/nucleon/action/plugin/list.rb +7 -7
- data/lib/nucleon/action/plugin/template/nucleon.action.erb +2 -2
- data/lib/nucleon/action/plugins.rb +12 -1
- data/lib/nucleon/event/puppet.rb +1 -1
- data/lib/nucleon/extension/corl_config.rb +26 -0
- data/lib/nucleon/template/environment.rb +1 -1
- data/locales/en.yml +483 -90
- data/rdoc/site/0.5.1/CORL/Build.html +781 -0
- data/rdoc/site/0.5.1/CORL/Builder/Identity.html +596 -0
- data/rdoc/site/0.5.1/CORL/Builder/Package.html +600 -0
- data/rdoc/site/0.5.1/CORL/Builder.html +384 -0
- data/rdoc/site/0.5.1/CORL/Configuration/File.html +1186 -0
- data/rdoc/site/0.5.1/CORL/Configuration.html +383 -0
- data/rdoc/site/0.5.1/CORL/Errors.html +383 -0
- data/rdoc/site/0.5.1/CORL/Facade.html +927 -0
- data/rdoc/site/0.5.1/CORL/Machine/AWS.html +777 -0
- data/rdoc/site/0.5.1/CORL/Machine/Fog.html +1313 -0
- data/rdoc/site/0.5.1/CORL/Machine/Physical.html +1083 -0
- data/rdoc/site/0.5.1/CORL/Machine/Rackspace.html +558 -0
- data/rdoc/site/0.5.1/CORL/Machine/Vagrant.html +1344 -0
- data/rdoc/site/0.5.1/CORL/Machine.html +387 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Action/Keypair.html +616 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Action/Registration.html +469 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Action.html +384 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Builder/Global.html +628 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Builder/Instance.html +720 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Builder.html +383 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Lookup.html +1315 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Machine/SSH.html +699 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Machine.html +383 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Macro/NetworkSettings.html +508 -0
- data/rdoc/site/0.5.1/CORL/Mixin/Macro.html +383 -0
- data/rdoc/site/0.5.1/CORL/Mixin.html +388 -0
- data/rdoc/site/0.5.1/CORL/Network/CORL.html +435 -0
- data/rdoc/site/0.5.1/CORL/Network.html +383 -0
- data/rdoc/site/0.5.1/CORL/Node/AWS.html +760 -0
- data/rdoc/site/0.5.1/CORL/Node/Fog.html +1268 -0
- data/rdoc/site/0.5.1/CORL/Node/Local.html +468 -0
- data/rdoc/site/0.5.1/CORL/Node/Rackspace.html +753 -0
- data/rdoc/site/0.5.1/CORL/Node/Vagrant.html +1497 -0
- data/rdoc/site/0.5.1/CORL/Node.html +387 -0
- data/rdoc/site/0.5.1/CORL/Plugin/Builder.html +524 -0
- data/rdoc/site/0.5.1/CORL/Plugin/Configuration.html +1294 -0
- data/rdoc/site/0.5.1/CORL/Plugin/Machine.html +1323 -0
- data/rdoc/site/0.5.1/CORL/Plugin/Network.html +1766 -0
- data/rdoc/site/0.5.1/CORL/Plugin/Node.html +4263 -0
- data/rdoc/site/0.5.1/CORL/Plugin/Provisioner.html +1139 -0
- data/rdoc/site/0.5.1/CORL/Plugin.html +673 -0
- data/rdoc/site/0.5.1/CORL/Provisioner/Puppetnode.html +1201 -0
- data/rdoc/site/0.5.1/CORL/Provisioner.html +383 -0
- data/rdoc/site/0.5.1/CORL/Util/Puppet/Resource.html +1082 -0
- data/rdoc/site/0.5.1/CORL/Util/Puppet/ResourceGroup.html +964 -0
- data/rdoc/site/0.5.1/CORL/Util/Puppet.html +1131 -0
- data/rdoc/site/0.5.1/CORL/Util.html +385 -0
- data/rdoc/site/0.5.1/CORL/Vagrant/Config.html +967 -0
- data/rdoc/site/0.5.1/CORL/Vagrant.html +462 -0
- data/rdoc/site/0.5.1/CORL.html +496 -0
- data/rdoc/site/0.5.1/Fog/Compute/AWS/Server.html +467 -0
- data/rdoc/site/0.5.1/Fog/Compute/AWS.html +389 -0
- data/rdoc/site/0.5.1/Fog/Compute/RackspaceV2/Server.html +452 -0
- data/rdoc/site/0.5.1/Fog/Compute/RackspaceV2.html +389 -0
- data/rdoc/site/0.5.1/Fog/Compute.html +384 -0
- data/rdoc/site/0.5.1/Fog.html +384 -0
- data/rdoc/site/0.5.1/Hiera/Backend.html +466 -0
- data/rdoc/site/0.5.1/Hiera/Corl_logger.html +493 -0
- data/rdoc/site/0.5.1/Hiera.html +390 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Config.html +978 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Create.html +562 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Images.html +596 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Inspect.html +567 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Machines.html +591 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Regions.html +591 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Settings.html +878 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud/Vagrantfile.html +539 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Cloud.html +390 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Authorize.html +567 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Bootstrap.html +628 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Build.html +550 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Cache.html +773 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Destroy.html +597 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Exec.html +554 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Fact.html +733 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Facts.html +505 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Group.html +729 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Groups.html +505 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/IP.html +477 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Identity.html +614 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Image.html +597 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Keypair.html +596 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Lookup.html +579 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Provision.html +577 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Reboot.html +597 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Revoke.html +565 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/SSH.html +607 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Seed.html +626 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Spawn.html +699 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Start.html +597 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Status.html +615 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node/Stop.html +597 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Node.html +406 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Plugin/Create.html +736 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Plugin/List.html +570 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Plugin.html +384 -0
- data/rdoc/site/0.5.1/Nucleon/Action/Plugins.html +435 -0
- data/rdoc/site/0.5.1/Nucleon/Action.html +417 -0
- data/rdoc/site/0.5.1/Nucleon/Config.html +401 -0
- data/rdoc/site/0.5.1/Nucleon/Event/Puppet.html +717 -0
- data/rdoc/site/0.5.1/Nucleon/Event.html +383 -0
- data/rdoc/site/0.5.1/Nucleon/Plugin/Base.html +389 -0
- data/rdoc/site/0.5.1/Nucleon/Plugin/CloudAction.html +894 -0
- data/rdoc/site/0.5.1/Nucleon/Plugin.html +384 -0
- data/rdoc/site/0.5.1/Nucleon/Template/Environment.html +572 -0
- data/rdoc/site/0.5.1/Nucleon/Template.html +383 -0
- data/rdoc/site/0.5.1/Nucleon.html +421 -0
- data/rdoc/site/0.5.1/Object.html +402 -0
- data/rdoc/site/0.5.1/Puppet/DataBinding/Corl.html +389 -0
- data/rdoc/site/0.5.1/Puppet/DataBinding.html +382 -0
- data/rdoc/site/0.5.1/Puppet/Indirector/Corl.html +501 -0
- data/rdoc/site/0.5.1/Puppet/Indirector.html +382 -0
- data/rdoc/site/0.5.1/Puppet/Parser/Functions.html +524 -0
- data/rdoc/site/0.5.1/Puppet/Parser.html +382 -0
- data/rdoc/site/0.5.1/Puppet.html +382 -0
- data/rdoc/site/0.5.1/README_rdoc.html +384 -0
- data/rdoc/site/0.5.1/Vagrant/Config/Loader.html +443 -0
- data/rdoc/site/0.5.1/Vagrant/Config.html +383 -0
- data/rdoc/site/0.5.1/Vagrant/Vagrantfile.html +436 -0
- data/rdoc/site/0.5.1/Vagrant.html +390 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action/DeleteCache.html +446 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action/InitKeys.html +452 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action/LinkNetwork.html +450 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Action.html +385 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/BaseAction.html +535 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Command/Launcher.html +577 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Command.html +383 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Config/CORL.html +776 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Config.html +383 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Plugin.html +389 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Provisioner/CORL.html +580 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL/Provisioner.html +383 -0
- data/rdoc/site/0.5.1/VagrantPlugins/CORL.html +390 -0
- data/rdoc/site/0.5.1/VagrantPlugins.html +390 -0
- data/rdoc/site/0.5.1/created.rid +114 -0
- data/rdoc/site/0.5.1/images/add.png +0 -0
- data/rdoc/site/0.5.1/images/brick.png +0 -0
- data/rdoc/site/0.5.1/images/brick_link.png +0 -0
- data/rdoc/site/0.5.1/images/bug.png +0 -0
- data/rdoc/site/0.5.1/images/bullet_black.png +0 -0
- data/rdoc/site/0.5.1/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.5.1/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.5.1/images/date.png +0 -0
- data/rdoc/site/0.5.1/images/delete.png +0 -0
- data/rdoc/site/0.5.1/images/find.png +0 -0
- data/rdoc/site/0.5.1/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.5.1/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.5.1/images/package.png +0 -0
- data/rdoc/site/0.5.1/images/page_green.png +0 -0
- data/rdoc/site/0.5.1/images/page_white_text.png +0 -0
- data/rdoc/site/0.5.1/images/page_white_width.png +0 -0
- data/rdoc/site/0.5.1/images/plugin.png +0 -0
- data/rdoc/site/0.5.1/images/ruby.png +0 -0
- data/rdoc/site/0.5.1/images/tag_blue.png +0 -0
- data/rdoc/site/0.5.1/images/tag_green.png +0 -0
- data/rdoc/site/0.5.1/images/transparent.png +0 -0
- data/rdoc/site/0.5.1/images/wrench.png +0 -0
- data/rdoc/site/0.5.1/images/wrench_orange.png +0 -0
- data/rdoc/site/0.5.1/images/zoom.png +0 -0
- data/rdoc/site/0.5.1/index.html +383 -0
- data/rdoc/site/0.5.1/js/darkfish.js +155 -0
- data/rdoc/site/0.5.1/js/jquery.js +18 -0
- data/rdoc/site/0.5.1/js/navigation.js +142 -0
- data/rdoc/site/0.5.1/js/search.js +94 -0
- data/rdoc/site/0.5.1/js/search_index.js +1 -0
- data/rdoc/site/0.5.1/js/searcher.js +228 -0
- data/rdoc/site/0.5.1/rdoc.css +543 -0
- data/rdoc/site/0.5.1/table_of_contents.html +2005 -0
- metadata +174 -4
|
@@ -0,0 +1,1313 @@
|
|
|
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::Machine::Fog - corl 0.5.1</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/fog_machine.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(:CORL, :machine)
|
|
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><a class="include" href="../Mixin/Machine/SSH.html">CORL::Mixin::Machine::SSH</a>
|
|
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-i-compute">#compute</a>
|
|
86
|
+
|
|
87
|
+
<li><a href="#method-i-compute-3D">#compute=</a>
|
|
88
|
+
|
|
89
|
+
<li><a href="#method-i-create">#create</a>
|
|
90
|
+
|
|
91
|
+
<li><a href="#method-i-create_image">#create_image</a>
|
|
92
|
+
|
|
93
|
+
<li><a href="#method-i-created-3F">#created?</a>
|
|
94
|
+
|
|
95
|
+
<li><a href="#method-i-destroy">#destroy</a>
|
|
96
|
+
|
|
97
|
+
<li><a href="#method-i-download">#download</a>
|
|
98
|
+
|
|
99
|
+
<li><a href="#method-i-exec">#exec</a>
|
|
100
|
+
|
|
101
|
+
<li><a href="#method-i-image">#image</a>
|
|
102
|
+
|
|
103
|
+
<li><a href="#method-i-images">#images</a>
|
|
104
|
+
|
|
105
|
+
<li><a href="#method-i-init_server">#init_server</a>
|
|
106
|
+
|
|
107
|
+
<li><a href="#method-i-load">#load</a>
|
|
108
|
+
|
|
109
|
+
<li><a href="#method-i-machine_type">#machine_type</a>
|
|
110
|
+
|
|
111
|
+
<li><a href="#method-i-machine_types">#machine_types</a>
|
|
112
|
+
|
|
113
|
+
<li><a href="#method-i-private_ip">#private_ip</a>
|
|
114
|
+
|
|
115
|
+
<li><a href="#method-i-public_ip">#public_ip</a>
|
|
116
|
+
|
|
117
|
+
<li><a href="#method-i-reload">#reload</a>
|
|
118
|
+
|
|
119
|
+
<li><a href="#method-i-running-3F">#running?</a>
|
|
120
|
+
|
|
121
|
+
<li><a href="#method-i-server">#server</a>
|
|
122
|
+
|
|
123
|
+
<li><a href="#method-i-server-3D">#server=</a>
|
|
124
|
+
|
|
125
|
+
<li><a href="#method-i-set_connection">#set_connection</a>
|
|
126
|
+
|
|
127
|
+
<li><a href="#method-i-ssh_wait_for_ready">#ssh_wait_for_ready</a>
|
|
128
|
+
|
|
129
|
+
<li><a href="#method-i-state">#state</a>
|
|
130
|
+
|
|
131
|
+
<li><a href="#method-i-stop">#stop</a>
|
|
132
|
+
|
|
133
|
+
<li><a href="#method-i-terminal">#terminal</a>
|
|
134
|
+
|
|
135
|
+
<li><a href="#method-i-upload">#upload</a>
|
|
136
|
+
|
|
137
|
+
</ul>
|
|
138
|
+
</nav>
|
|
139
|
+
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<div id="project-metadata">
|
|
143
|
+
<nav id="fileindex-section" class="section project-section">
|
|
144
|
+
<h3 class="section-header">Pages</h3>
|
|
145
|
+
|
|
146
|
+
<ul>
|
|
147
|
+
|
|
148
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
|
149
|
+
|
|
150
|
+
</ul>
|
|
151
|
+
</nav>
|
|
152
|
+
|
|
153
|
+
<nav id="classindex-section" class="section project-section">
|
|
154
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
155
|
+
|
|
156
|
+
<ul class="link-list">
|
|
157
|
+
|
|
158
|
+
<li><a href="../../CORL.html">CORL</a>
|
|
159
|
+
|
|
160
|
+
<li><a href="../../CORL/Build.html">CORL::Build</a>
|
|
161
|
+
|
|
162
|
+
<li><a href="../../CORL/Builder.html">CORL::Builder</a>
|
|
163
|
+
|
|
164
|
+
<li><a href="../../CORL/Builder/Identity.html">CORL::Builder::Identity</a>
|
|
165
|
+
|
|
166
|
+
<li><a href="../../CORL/Builder/Package.html">CORL::Builder::Package</a>
|
|
167
|
+
|
|
168
|
+
<li><a href="../../CORL/Configuration.html">CORL::Configuration</a>
|
|
169
|
+
|
|
170
|
+
<li><a href="../../CORL/Configuration/File.html">CORL::Configuration::File</a>
|
|
171
|
+
|
|
172
|
+
<li><a href="../../CORL/Errors.html">CORL::Errors</a>
|
|
173
|
+
|
|
174
|
+
<li><a href="../../CORL/Facade.html">CORL::Facade</a>
|
|
175
|
+
|
|
176
|
+
<li><a href="../../CORL/Machine.html">CORL::Machine</a>
|
|
177
|
+
|
|
178
|
+
<li><a href="../../CORL/Machine/AWS.html">CORL::Machine::AWS</a>
|
|
179
|
+
|
|
180
|
+
<li><a href="../../CORL/Machine/Fog.html">CORL::Machine::Fog</a>
|
|
181
|
+
|
|
182
|
+
<li><a href="../../CORL/Machine/Physical.html">CORL::Machine::Physical</a>
|
|
183
|
+
|
|
184
|
+
<li><a href="../../CORL/Machine/Rackspace.html">CORL::Machine::Rackspace</a>
|
|
185
|
+
|
|
186
|
+
<li><a href="../../CORL/Machine/Vagrant.html">CORL::Machine::Vagrant</a>
|
|
187
|
+
|
|
188
|
+
<li><a href="../../CORL/Mixin.html">CORL::Mixin</a>
|
|
189
|
+
|
|
190
|
+
<li><a href="../../CORL/Mixin/Action.html">CORL::Mixin::Action</a>
|
|
191
|
+
|
|
192
|
+
<li><a href="../../CORL/Mixin/Action/Keypair.html">CORL::Mixin::Action::Keypair</a>
|
|
193
|
+
|
|
194
|
+
<li><a href="../../CORL/Mixin/Action/Registration.html">CORL::Mixin::Action::Registration</a>
|
|
195
|
+
|
|
196
|
+
<li><a href="../../CORL/Mixin/Builder.html">CORL::Mixin::Builder</a>
|
|
197
|
+
|
|
198
|
+
<li><a href="../../CORL/Mixin/Builder/Global.html">CORL::Mixin::Builder::Global</a>
|
|
199
|
+
|
|
200
|
+
<li><a href="../../CORL/Mixin/Builder/Instance.html">CORL::Mixin::Builder::Instance</a>
|
|
201
|
+
|
|
202
|
+
<li><a href="../../CORL/Mixin/Lookup.html">CORL::Mixin::Lookup</a>
|
|
203
|
+
|
|
204
|
+
<li><a href="../../CORL/Mixin/Machine.html">CORL::Mixin::Machine</a>
|
|
205
|
+
|
|
206
|
+
<li><a href="../../CORL/Mixin/Machine/SSH.html">CORL::Mixin::Machine::SSH</a>
|
|
207
|
+
|
|
208
|
+
<li><a href="../../CORL/Mixin/Macro.html">CORL::Mixin::Macro</a>
|
|
209
|
+
|
|
210
|
+
<li><a href="../../CORL/Mixin/Macro/NetworkSettings.html">CORL::Mixin::Macro::NetworkSettings</a>
|
|
211
|
+
|
|
212
|
+
<li><a href="../../CORL/Network.html">CORL::Network</a>
|
|
213
|
+
|
|
214
|
+
<li><a href="../../CORL/Network/CORL.html">CORL::Network::CORL</a>
|
|
215
|
+
|
|
216
|
+
<li><a href="../../CORL/Node.html">CORL::Node</a>
|
|
217
|
+
|
|
218
|
+
<li><a href="../../CORL/Node/AWS.html">CORL::Node::AWS</a>
|
|
219
|
+
|
|
220
|
+
<li><a href="../../CORL/Node/Fog.html">CORL::Node::Fog</a>
|
|
221
|
+
|
|
222
|
+
<li><a href="../../CORL/Node/Local.html">CORL::Node::Local</a>
|
|
223
|
+
|
|
224
|
+
<li><a href="../../CORL/Node/Rackspace.html">CORL::Node::Rackspace</a>
|
|
225
|
+
|
|
226
|
+
<li><a href="../../CORL/Node/Vagrant.html">CORL::Node::Vagrant</a>
|
|
227
|
+
|
|
228
|
+
<li><a href="../../CORL/Plugin.html">CORL::Plugin</a>
|
|
229
|
+
|
|
230
|
+
<li><a href="../../CORL/Plugin/Builder.html">CORL::Plugin::Builder</a>
|
|
231
|
+
|
|
232
|
+
<li><a href="../../CORL/Plugin/Configuration.html">CORL::Plugin::Configuration</a>
|
|
233
|
+
|
|
234
|
+
<li><a href="../../CORL/Plugin/Machine.html">CORL::Plugin::Machine</a>
|
|
235
|
+
|
|
236
|
+
<li><a href="../../CORL/Plugin/Network.html">CORL::Plugin::Network</a>
|
|
237
|
+
|
|
238
|
+
<li><a href="../../CORL/Plugin/Node.html">CORL::Plugin::Node</a>
|
|
239
|
+
|
|
240
|
+
<li><a href="../../CORL/Plugin/Provisioner.html">CORL::Plugin::Provisioner</a>
|
|
241
|
+
|
|
242
|
+
<li><a href="../../CORL/Provisioner.html">CORL::Provisioner</a>
|
|
243
|
+
|
|
244
|
+
<li><a href="../../CORL/Provisioner/Puppetnode.html">CORL::Provisioner::Puppetnode</a>
|
|
245
|
+
|
|
246
|
+
<li><a href="../../CORL/Util.html">CORL::Util</a>
|
|
247
|
+
|
|
248
|
+
<li><a href="../../CORL/Util/Puppet.html">CORL::Util::Puppet</a>
|
|
249
|
+
|
|
250
|
+
<li><a href="../../CORL/Util/Puppet/Resource.html">CORL::Util::Puppet::Resource</a>
|
|
251
|
+
|
|
252
|
+
<li><a href="../../CORL/Util/Puppet/ResourceGroup.html">CORL::Util::Puppet::ResourceGroup</a>
|
|
253
|
+
|
|
254
|
+
<li><a href="../../CORL/Vagrant.html">CORL::Vagrant</a>
|
|
255
|
+
|
|
256
|
+
<li><a href="../../CORL/Vagrant/Config.html">CORL::Vagrant::Config</a>
|
|
257
|
+
|
|
258
|
+
<li><a href="../../Nucleon.html">Nucleon</a>
|
|
259
|
+
|
|
260
|
+
<li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
|
|
261
|
+
|
|
262
|
+
<li><a href="../../Nucleon/Action/Cloud.html">Nucleon::Action::Cloud</a>
|
|
263
|
+
|
|
264
|
+
<li><a href="../../Nucleon/Action/Cloud/Config.html">Nucleon::Action::Cloud::Config</a>
|
|
265
|
+
|
|
266
|
+
<li><a href="../../Nucleon/Action/Cloud/Create.html">Nucleon::Action::Cloud::Create</a>
|
|
267
|
+
|
|
268
|
+
<li><a href="../../Nucleon/Action/Cloud/Images.html">Nucleon::Action::Cloud::Images</a>
|
|
269
|
+
|
|
270
|
+
<li><a href="../../Nucleon/Action/Cloud/Inspect.html">Nucleon::Action::Cloud::Inspect</a>
|
|
271
|
+
|
|
272
|
+
<li><a href="../../Nucleon/Action/Cloud/Machines.html">Nucleon::Action::Cloud::Machines</a>
|
|
273
|
+
|
|
274
|
+
<li><a href="../../Nucleon/Action/Cloud/Regions.html">Nucleon::Action::Cloud::Regions</a>
|
|
275
|
+
|
|
276
|
+
<li><a href="../../Nucleon/Action/Cloud/Settings.html">Nucleon::Action::Cloud::Settings</a>
|
|
277
|
+
|
|
278
|
+
<li><a href="../../Nucleon/Action/Cloud/Vagrantfile.html">Nucleon::Action::Cloud::Vagrantfile</a>
|
|
279
|
+
|
|
280
|
+
<li><a href="../../Nucleon/Action/Node.html">Nucleon::Action::Node</a>
|
|
281
|
+
|
|
282
|
+
<li><a href="../../Nucleon/Action/Node/Authorize.html">Nucleon::Action::Node::Authorize</a>
|
|
283
|
+
|
|
284
|
+
<li><a href="../../Nucleon/Action/Node/Bootstrap.html">Nucleon::Action::Node::Bootstrap</a>
|
|
285
|
+
|
|
286
|
+
<li><a href="../../Nucleon/Action/Node/Build.html">Nucleon::Action::Node::Build</a>
|
|
287
|
+
|
|
288
|
+
<li><a href="../../Nucleon/Action/Node/Cache.html">Nucleon::Action::Node::Cache</a>
|
|
289
|
+
|
|
290
|
+
<li><a href="../../Nucleon/Action/Node/Destroy.html">Nucleon::Action::Node::Destroy</a>
|
|
291
|
+
|
|
292
|
+
<li><a href="../../Nucleon/Action/Node/Exec.html">Nucleon::Action::Node::Exec</a>
|
|
293
|
+
|
|
294
|
+
<li><a href="../../Nucleon/Action/Node/Fact.html">Nucleon::Action::Node::Fact</a>
|
|
295
|
+
|
|
296
|
+
<li><a href="../../Nucleon/Action/Node/Facts.html">Nucleon::Action::Node::Facts</a>
|
|
297
|
+
|
|
298
|
+
<li><a href="../../Nucleon/Action/Node/Group.html">Nucleon::Action::Node::Group</a>
|
|
299
|
+
|
|
300
|
+
<li><a href="../../Nucleon/Action/Node/Groups.html">Nucleon::Action::Node::Groups</a>
|
|
301
|
+
|
|
302
|
+
<li><a href="../../Nucleon/Action/Node/IP.html">Nucleon::Action::Node::IP</a>
|
|
303
|
+
|
|
304
|
+
<li><a href="../../Nucleon/Action/Node/Identity.html">Nucleon::Action::Node::Identity</a>
|
|
305
|
+
|
|
306
|
+
<li><a href="../../Nucleon/Action/Node/Image.html">Nucleon::Action::Node::Image</a>
|
|
307
|
+
|
|
308
|
+
<li><a href="../../Nucleon/Action/Node/Keypair.html">Nucleon::Action::Node::Keypair</a>
|
|
309
|
+
|
|
310
|
+
<li><a href="../../Nucleon/Action/Node/Lookup.html">Nucleon::Action::Node::Lookup</a>
|
|
311
|
+
|
|
312
|
+
<li><a href="../../Nucleon/Action/Node/Provision.html">Nucleon::Action::Node::Provision</a>
|
|
313
|
+
|
|
314
|
+
<li><a href="../../Nucleon/Action/Node/Reboot.html">Nucleon::Action::Node::Reboot</a>
|
|
315
|
+
|
|
316
|
+
<li><a href="../../Nucleon/Action/Node/Revoke.html">Nucleon::Action::Node::Revoke</a>
|
|
317
|
+
|
|
318
|
+
<li><a href="../../Nucleon/Action/Node/SSH.html">Nucleon::Action::Node::SSH</a>
|
|
319
|
+
|
|
320
|
+
<li><a href="../../Nucleon/Action/Node/Seed.html">Nucleon::Action::Node::Seed</a>
|
|
321
|
+
|
|
322
|
+
<li><a href="../../Nucleon/Action/Node/Spawn.html">Nucleon::Action::Node::Spawn</a>
|
|
323
|
+
|
|
324
|
+
<li><a href="../../Nucleon/Action/Node/Start.html">Nucleon::Action::Node::Start</a>
|
|
325
|
+
|
|
326
|
+
<li><a href="../../Nucleon/Action/Node/Status.html">Nucleon::Action::Node::Status</a>
|
|
327
|
+
|
|
328
|
+
<li><a href="../../Nucleon/Action/Node/Stop.html">Nucleon::Action::Node::Stop</a>
|
|
329
|
+
|
|
330
|
+
<li><a href="../../Nucleon/Action/Plugin.html">Nucleon::Action::Plugin</a>
|
|
331
|
+
|
|
332
|
+
<li><a href="../../Nucleon/Action/Plugin/Create.html">Nucleon::Action::Plugin::Create</a>
|
|
333
|
+
|
|
334
|
+
<li><a href="../../Nucleon/Action/Plugin/List.html">Nucleon::Action::Plugin::List</a>
|
|
335
|
+
|
|
336
|
+
<li><a href="../../Nucleon/Action/Plugins.html">Nucleon::Action::Plugins</a>
|
|
337
|
+
|
|
338
|
+
<li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
|
|
339
|
+
|
|
340
|
+
<li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
|
|
341
|
+
|
|
342
|
+
<li><a href="../../Nucleon/Event/Puppet.html">Nucleon::Event::Puppet</a>
|
|
343
|
+
|
|
344
|
+
<li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
|
345
|
+
|
|
346
|
+
<li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
|
347
|
+
|
|
348
|
+
<li><a href="../../Nucleon/Plugin/CloudAction.html">Nucleon::Plugin::CloudAction</a>
|
|
349
|
+
|
|
350
|
+
<li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
|
|
351
|
+
|
|
352
|
+
<li><a href="../../Nucleon/Template/Environment.html">Nucleon::Template::Environment</a>
|
|
353
|
+
|
|
354
|
+
<li><a href="../../VagrantPlugins.html">VagrantPlugins</a>
|
|
355
|
+
|
|
356
|
+
<li><a href="../../VagrantPlugins/CORL.html">VagrantPlugins::CORL</a>
|
|
357
|
+
|
|
358
|
+
<li><a href="../../VagrantPlugins/CORL/Action.html">VagrantPlugins::CORL::Action</a>
|
|
359
|
+
|
|
360
|
+
<li><a href="../../VagrantPlugins/CORL/Action/DeleteCache.html">VagrantPlugins::CORL::Action::DeleteCache</a>
|
|
361
|
+
|
|
362
|
+
<li><a href="../../VagrantPlugins/CORL/Action/InitKeys.html">VagrantPlugins::CORL::Action::InitKeys</a>
|
|
363
|
+
|
|
364
|
+
<li><a href="../../VagrantPlugins/CORL/Action/LinkNetwork.html">VagrantPlugins::CORL::Action::LinkNetwork</a>
|
|
365
|
+
|
|
366
|
+
<li><a href="../../VagrantPlugins/CORL/BaseAction.html">VagrantPlugins::CORL::BaseAction</a>
|
|
367
|
+
|
|
368
|
+
<li><a href="../../VagrantPlugins/CORL/Command.html">VagrantPlugins::CORL::Command</a>
|
|
369
|
+
|
|
370
|
+
<li><a href="../../VagrantPlugins/CORL/Command/Launcher.html">VagrantPlugins::CORL::Command::Launcher</a>
|
|
371
|
+
|
|
372
|
+
<li><a href="../../VagrantPlugins/CORL/Config.html">VagrantPlugins::CORL::Config</a>
|
|
373
|
+
|
|
374
|
+
<li><a href="../../VagrantPlugins/CORL/Config/CORL.html">VagrantPlugins::CORL::Config::CORL</a>
|
|
375
|
+
|
|
376
|
+
<li><a href="../../VagrantPlugins/CORL/Plugin.html">VagrantPlugins::CORL::Plugin</a>
|
|
377
|
+
|
|
378
|
+
<li><a href="../../VagrantPlugins/CORL/Provisioner.html">VagrantPlugins::CORL::Provisioner</a>
|
|
379
|
+
|
|
380
|
+
<li><a href="../../VagrantPlugins/CORL/Provisioner/CORL.html">VagrantPlugins::CORL::Provisioner::CORL</a>
|
|
381
|
+
|
|
382
|
+
<li><a href="../../Puppet.html">Puppet</a>
|
|
383
|
+
|
|
384
|
+
<li><a href="../../Puppet/DataBinding.html">Puppet::DataBinding</a>
|
|
385
|
+
|
|
386
|
+
<li><a href="../../Puppet/DataBinding/Corl.html">Puppet::DataBinding::Corl</a>
|
|
387
|
+
|
|
388
|
+
<li><a href="../../Puppet/Indirector.html">Puppet::Indirector</a>
|
|
389
|
+
|
|
390
|
+
<li><a href="../../Puppet/Indirector/Corl.html">Puppet::Indirector::Corl</a>
|
|
391
|
+
|
|
392
|
+
<li><a href="../../Puppet/Parser.html">Puppet::Parser</a>
|
|
393
|
+
|
|
394
|
+
<li><a href="../../Puppet/Parser/Functions.html">Puppet::Parser::Functions</a>
|
|
395
|
+
|
|
396
|
+
<li><a href="../../Fog.html">Fog</a>
|
|
397
|
+
|
|
398
|
+
<li><a href="../../Fog/Compute.html">Fog::Compute</a>
|
|
399
|
+
|
|
400
|
+
<li><a href="../../Fog/Compute/AWS.html">Fog::Compute::AWS</a>
|
|
401
|
+
|
|
402
|
+
<li><a href="../../Fog/Compute/AWS/Server.html">Fog::Compute::AWS::Server</a>
|
|
403
|
+
|
|
404
|
+
<li><a href="../../Fog/Compute/RackspaceV2.html">Fog::Compute::RackspaceV2</a>
|
|
405
|
+
|
|
406
|
+
<li><a href="../../Fog/Compute/RackspaceV2/Server.html">Fog::Compute::RackspaceV2::Server</a>
|
|
407
|
+
|
|
408
|
+
<li><a href="../../Vagrant.html">Vagrant</a>
|
|
409
|
+
|
|
410
|
+
<li><a href="../../Vagrant/Config.html">Vagrant::Config</a>
|
|
411
|
+
|
|
412
|
+
<li><a href="../../Vagrant/Config/Loader.html">Vagrant::Config::Loader</a>
|
|
413
|
+
|
|
414
|
+
<li><a href="../../Vagrant/Vagrantfile.html">Vagrant::Vagrantfile</a>
|
|
415
|
+
|
|
416
|
+
<li><a href="../../Hiera.html">Hiera</a>
|
|
417
|
+
|
|
418
|
+
<li><a href="../../Hiera/Backend.html">Hiera::Backend</a>
|
|
419
|
+
|
|
420
|
+
<li><a href="../../Hiera/Corl_logger.html">Hiera::Corl_logger</a>
|
|
421
|
+
|
|
422
|
+
<li><a href="../../Object.html">Object</a>
|
|
423
|
+
|
|
424
|
+
</ul>
|
|
425
|
+
</nav>
|
|
426
|
+
|
|
427
|
+
</div>
|
|
428
|
+
</nav>
|
|
429
|
+
|
|
430
|
+
<div id="documentation">
|
|
431
|
+
<h1 class="class">class CORL::Machine::Fog</h1>
|
|
432
|
+
|
|
433
|
+
<div id="description" class="description">
|
|
434
|
+
|
|
435
|
+
</div><!-- description -->
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
<!-- Methods -->
|
|
450
|
+
|
|
451
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
452
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
<div id="method-i-compute" class="method-detail ">
|
|
456
|
+
|
|
457
|
+
<div class="method-heading">
|
|
458
|
+
<span class="method-name">compute</span><span
|
|
459
|
+
class="method-args">()</span>
|
|
460
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
461
|
+
</div>
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
<div class="method-description">
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
<div class="method-source-code" id="compute-source">
|
|
471
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 46</span>
|
|
472
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compute</span>
|
|
473
|
+
<span class="ruby-identifier">set_connection</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@compute</span>
|
|
474
|
+
<span class="ruby-ivar">@compute</span>
|
|
475
|
+
<span class="ruby-keyword">end</span></pre>
|
|
476
|
+
</div><!-- compute-source -->
|
|
477
|
+
|
|
478
|
+
</div>
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
</div><!-- compute-method -->
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
<div id="method-i-compute-3D" class="method-detail ">
|
|
487
|
+
|
|
488
|
+
<div class="method-heading">
|
|
489
|
+
<span class="method-name">compute=</span><span
|
|
490
|
+
class="method-args">(compute)</span>
|
|
491
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
492
|
+
</div>
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
<div class="method-description">
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
<div class="method-source-code" id="compute-3D-source">
|
|
502
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 42</span>
|
|
503
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compute=</span><span class="ruby-identifier">compute</span>
|
|
504
|
+
<span class="ruby-ivar">@compute</span> = <span class="ruby-identifier">compute</span>
|
|
505
|
+
<span class="ruby-keyword">end</span></pre>
|
|
506
|
+
</div><!-- compute-3D-source -->
|
|
507
|
+
|
|
508
|
+
</div>
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
</div><!-- compute-3D-method -->
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
<div id="method-i-create" class="method-detail ">
|
|
517
|
+
|
|
518
|
+
<div class="method-heading">
|
|
519
|
+
<span class="method-name">create</span><span
|
|
520
|
+
class="method-args">(options = {}, &code)</span>
|
|
521
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
522
|
+
</div>
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
<div class="method-description">
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
<div class="method-source-code" id="create-source">
|
|
532
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 140</span>
|
|
533
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>(<span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">code</span>)
|
|
534
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
|
535
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">compute</span>
|
|
536
|
+
<span class="ruby-identifier">code</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">config</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">code</span>
|
|
537
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">server</span> = <span class="ruby-identifier">compute</span>.<span class="ruby-identifier">servers</span>.<span class="ruby-identifier">bootstrap</span>(<span class="ruby-identifier">config</span>.<span class="ruby-identifier">export</span>)
|
|
538
|
+
<span class="ruby-keyword">end</span>
|
|
539
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">server</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">false</span>
|
|
540
|
+
<span class="ruby-keyword">end</span>
|
|
541
|
+
<span class="ruby-keyword">end</span></pre>
|
|
542
|
+
</div><!-- create-source -->
|
|
543
|
+
|
|
544
|
+
</div>
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
</div><!-- create-method -->
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
<div id="method-i-create_image" class="method-detail ">
|
|
553
|
+
|
|
554
|
+
<div class="method-heading">
|
|
555
|
+
<span class="method-name">create_image</span><span
|
|
556
|
+
class="method-args">(options = {}, &code)</span>
|
|
557
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
558
|
+
</div>
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
<div class="method-description">
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
<div class="method-source-code" id="create_image-source">
|
|
568
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 193</span>
|
|
569
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create_image</span>(<span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">code</span>)
|
|
570
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
|
571
|
+
<span class="ruby-identifier">image_name</span> = <span class="ruby-identifier">sprintf</span>(<span class="ruby-string">"%s (%s)"</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">plugin_name</span>, <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_s</span>)
|
|
572
|
+
|
|
573
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">code</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">image_name</span>, <span class="ruby-identifier">config</span>, <span class="ruby-identifier">success</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
|
|
574
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">init_ssh_session</span>(<span class="ruby-keyword">true</span>, <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:tries</span>, <span class="ruby-value">12</span>), <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:sleep_time</span>, <span class="ruby-value">5</span>)) <span class="ruby-keyword">if</span> <span class="ruby-identifier">success</span>
|
|
575
|
+
<span class="ruby-keyword">end</span>
|
|
576
|
+
<span class="ruby-keyword">end</span></pre>
|
|
577
|
+
</div><!-- create_image-source -->
|
|
578
|
+
|
|
579
|
+
</div>
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
</div><!-- create_image-method -->
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
<div id="method-i-created-3F" class="method-detail ">
|
|
588
|
+
|
|
589
|
+
<div class="method-heading">
|
|
590
|
+
<span class="method-name">created?</span><span
|
|
591
|
+
class="method-args">()</span>
|
|
592
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
593
|
+
</div>
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
<div class="method-description">
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
<div class="method-source-code" id="created-3F-source">
|
|
603
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 15</span>
|
|
604
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">created?</span>
|
|
605
|
+
<span class="ruby-identifier">server</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">state</span> <span class="ruby-operator">!=</span> <span class="ruby-string">'DELETED'</span>
|
|
606
|
+
<span class="ruby-keyword">end</span></pre>
|
|
607
|
+
</div><!-- created-3F-source -->
|
|
608
|
+
|
|
609
|
+
</div>
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
</div><!-- created-3F-method -->
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<div id="method-i-destroy" class="method-detail ">
|
|
618
|
+
|
|
619
|
+
<div class="method-heading">
|
|
620
|
+
<span class="method-name">destroy</span><span
|
|
621
|
+
class="method-args">(options = {}, &code)</span>
|
|
622
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
623
|
+
</div>
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
<div class="method-description">
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
<div class="method-source-code" id="destroy-source">
|
|
633
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 213</span>
|
|
634
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">destroy</span>(<span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">code</span>)
|
|
635
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
|
636
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">server</span>.<span class="ruby-identifier">destroy</span>
|
|
637
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">code</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">config</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">success</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">code</span>
|
|
638
|
+
|
|
639
|
+
<span class="ruby-identifier">close_ssh_session</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">success</span>
|
|
640
|
+
<span class="ruby-identifier">success</span>
|
|
641
|
+
<span class="ruby-keyword">end</span>
|
|
642
|
+
<span class="ruby-keyword">end</span></pre>
|
|
643
|
+
</div><!-- destroy-source -->
|
|
644
|
+
|
|
645
|
+
</div>
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
</div><!-- destroy-method -->
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
<div id="method-i-download" class="method-detail ">
|
|
654
|
+
|
|
655
|
+
<div class="method-heading">
|
|
656
|
+
<span class="method-name">download</span><span
|
|
657
|
+
class="method-args">(remote_path, local_path, options = {}, &code)</span>
|
|
658
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
659
|
+
</div>
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
<div class="method-description">
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
<div class="method-source-code" id="download-source">
|
|
669
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 152</span>
|
|
670
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">download</span>(<span class="ruby-identifier">remote_path</span>, <span class="ruby-identifier">local_path</span>, <span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">code</span>)
|
|
671
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span>, <span class="ruby-identifier">success</span><span class="ruby-operator">|</span>
|
|
672
|
+
<span class="ruby-identifier">ssh_download</span>(<span class="ruby-identifier">remote_path</span>, <span class="ruby-identifier">local_path</span>, <span class="ruby-identifier">config</span>, &<span class="ruby-identifier">code</span>)
|
|
673
|
+
<span class="ruby-keyword">end</span>
|
|
674
|
+
<span class="ruby-keyword">end</span></pre>
|
|
675
|
+
</div><!-- download-source -->
|
|
676
|
+
|
|
677
|
+
</div>
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
</div><!-- download-method -->
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
<div id="method-i-exec" class="method-detail ">
|
|
686
|
+
|
|
687
|
+
<div class="method-heading">
|
|
688
|
+
<span class="method-name">exec</span><span
|
|
689
|
+
class="method-args">(commands, options = {}, &code)</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="exec-source">
|
|
701
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 168</span>
|
|
702
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">exec</span>(<span class="ruby-identifier">commands</span>, <span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">code</span>)
|
|
703
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
|
704
|
+
<span class="ruby-identifier">ssh_exec</span>(<span class="ruby-identifier">commands</span>, <span class="ruby-identifier">config</span>, &<span class="ruby-identifier">code</span>)
|
|
705
|
+
<span class="ruby-keyword">end</span>
|
|
706
|
+
<span class="ruby-keyword">end</span></pre>
|
|
707
|
+
</div><!-- exec-source -->
|
|
708
|
+
|
|
709
|
+
</div>
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
</div><!-- exec-method -->
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
<div id="method-i-image" class="method-detail ">
|
|
718
|
+
|
|
719
|
+
<div class="method-heading">
|
|
720
|
+
<span class="method-name">image</span><span
|
|
721
|
+
class="method-args">()</span>
|
|
722
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
723
|
+
</div>
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
<div class="method-description">
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
<div class="method-source-code" id="image-source">
|
|
733
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 114</span>
|
|
734
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">image</span>
|
|
735
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">image</span>.<span class="ruby-identifier">id</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">server</span>
|
|
736
|
+
<span class="ruby-keyword">nil</span>
|
|
737
|
+
<span class="ruby-keyword">end</span></pre>
|
|
738
|
+
</div><!-- image-source -->
|
|
739
|
+
|
|
740
|
+
</div>
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
</div><!-- image-method -->
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
<div id="method-i-images" class="method-detail ">
|
|
749
|
+
|
|
750
|
+
<div class="method-heading">
|
|
751
|
+
<span class="method-name">images</span><span
|
|
752
|
+
class="method-args">()</span>
|
|
753
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
754
|
+
</div>
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
<div class="method-description">
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
<div class="method-source-code" id="images-source">
|
|
764
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 107</span>
|
|
765
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">images</span>
|
|
766
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">compute</span>.<span class="ruby-identifier">images</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">compute</span>
|
|
767
|
+
[]
|
|
768
|
+
<span class="ruby-keyword">end</span></pre>
|
|
769
|
+
</div><!-- images-source -->
|
|
770
|
+
|
|
771
|
+
</div>
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
</div><!-- images-method -->
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
<div id="method-i-load" class="method-detail ">
|
|
780
|
+
|
|
781
|
+
<div class="method-heading">
|
|
782
|
+
<span class="method-name">load</span><span
|
|
783
|
+
class="method-args">()</span>
|
|
784
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
785
|
+
</div>
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
<div class="method-description">
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
<div class="method-source-code" id="load-source">
|
|
795
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 131</span>
|
|
796
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">load</span>
|
|
797
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span>
|
|
798
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">server</span> = <span class="ruby-identifier">plugin_name</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">compute</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">plugin_name</span>
|
|
799
|
+
<span class="ruby-operator">!</span> <span class="ruby-identifier">plugin_name</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@server</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">false</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
|
|
800
|
+
<span class="ruby-keyword">end</span>
|
|
801
|
+
<span class="ruby-keyword">end</span></pre>
|
|
802
|
+
</div><!-- load-source -->
|
|
803
|
+
|
|
804
|
+
</div>
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
</div><!-- load-method -->
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
<div id="method-i-machine_type" class="method-detail ">
|
|
813
|
+
|
|
814
|
+
<div class="method-heading">
|
|
815
|
+
<span class="method-name">machine_type</span><span
|
|
816
|
+
class="method-args">()</span>
|
|
817
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
818
|
+
</div>
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
<div class="method-description">
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
<div class="method-source-code" id="machine_type-source">
|
|
828
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 100</span>
|
|
829
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">machine_type</span>
|
|
830
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">flavor</span>.<span class="ruby-identifier">id</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">server</span>
|
|
831
|
+
<span class="ruby-keyword">nil</span>
|
|
832
|
+
<span class="ruby-keyword">end</span></pre>
|
|
833
|
+
</div><!-- machine_type-source -->
|
|
834
|
+
|
|
835
|
+
</div>
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
</div><!-- machine_type-method -->
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
<div id="method-i-machine_types" class="method-detail ">
|
|
844
|
+
|
|
845
|
+
<div class="method-heading">
|
|
846
|
+
<span class="method-name">machine_types</span><span
|
|
847
|
+
class="method-args">()</span>
|
|
848
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
849
|
+
</div>
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
<div class="method-description">
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
<div class="method-source-code" id="machine_types-source">
|
|
859
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 93</span>
|
|
860
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">machine_types</span>
|
|
861
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">compute</span>.<span class="ruby-identifier">flavors</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">compute</span>
|
|
862
|
+
[]
|
|
863
|
+
<span class="ruby-keyword">end</span></pre>
|
|
864
|
+
</div><!-- machine_types-source -->
|
|
865
|
+
|
|
866
|
+
</div>
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
</div><!-- machine_types-method -->
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
<div id="method-i-private_ip" class="method-detail ">
|
|
875
|
+
|
|
876
|
+
<div class="method-heading">
|
|
877
|
+
<span class="method-name">private_ip</span><span
|
|
878
|
+
class="method-args">()</span>
|
|
879
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
880
|
+
</div>
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
<div class="method-description">
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
<div class="method-source-code" id="private_ip-source">
|
|
890
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 86</span>
|
|
891
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">private_ip</span>
|
|
892
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">private_ip_address</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">server</span>
|
|
893
|
+
<span class="ruby-keyword">nil</span>
|
|
894
|
+
<span class="ruby-keyword">end</span></pre>
|
|
895
|
+
</div><!-- private_ip-source -->
|
|
896
|
+
|
|
897
|
+
</div>
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
</div><!-- private_ip-method -->
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
<div id="method-i-public_ip" class="method-detail ">
|
|
906
|
+
|
|
907
|
+
<div class="method-heading">
|
|
908
|
+
<span class="method-name">public_ip</span><span
|
|
909
|
+
class="method-args">()</span>
|
|
910
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
911
|
+
</div>
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
<div class="method-description">
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
<div class="method-source-code" id="public_ip-source">
|
|
921
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 79</span>
|
|
922
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">public_ip</span>
|
|
923
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">public_ip_address</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">server</span>
|
|
924
|
+
<span class="ruby-keyword">nil</span>
|
|
925
|
+
<span class="ruby-keyword">end</span></pre>
|
|
926
|
+
</div><!-- public_ip-source -->
|
|
927
|
+
|
|
928
|
+
</div>
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
</div><!-- public_ip-method -->
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
<div id="method-i-reload" class="method-detail ">
|
|
937
|
+
|
|
938
|
+
<div class="method-heading">
|
|
939
|
+
<span class="method-name">reload</span><span
|
|
940
|
+
class="method-args">(options = {}, &code)</span>
|
|
941
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
942
|
+
</div>
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
<div class="method-description">
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
<div class="method-source-code" id="reload-source">
|
|
952
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 184</span>
|
|
953
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">reload</span>(<span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">code</span>)
|
|
954
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
|
955
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">code</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">config</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword">true</span>
|
|
956
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">init_ssh_session</span>(<span class="ruby-keyword">true</span>, <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:tries</span>, <span class="ruby-value">12</span>), <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:sleep_time</span>, <span class="ruby-value">5</span>)) <span class="ruby-keyword">if</span> <span class="ruby-identifier">success</span>
|
|
957
|
+
<span class="ruby-keyword">end</span>
|
|
958
|
+
<span class="ruby-keyword">end</span></pre>
|
|
959
|
+
</div><!-- reload-source -->
|
|
960
|
+
|
|
961
|
+
</div>
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
</div><!-- reload-method -->
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
<div id="method-i-running-3F" class="method-detail ">
|
|
970
|
+
|
|
971
|
+
<div class="method-heading">
|
|
972
|
+
<span class="method-name">running?</span><span
|
|
973
|
+
class="method-args">()</span>
|
|
974
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
975
|
+
</div>
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
<div class="method-description">
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
<div class="method-source-code" id="running-3F-source">
|
|
985
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 21</span>
|
|
986
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">running?</span>
|
|
987
|
+
<span class="ruby-identifier">created?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">server</span>.<span class="ruby-identifier">ready?</span>
|
|
988
|
+
<span class="ruby-keyword">end</span></pre>
|
|
989
|
+
</div><!-- running-3F-source -->
|
|
990
|
+
|
|
991
|
+
</div>
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
</div><!-- running-3F-method -->
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
<div id="method-i-server" class="method-detail ">
|
|
1000
|
+
|
|
1001
|
+
<div class="method-heading">
|
|
1002
|
+
<span class="method-name">server</span><span
|
|
1003
|
+
class="method-args">()</span>
|
|
1004
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1005
|
+
</div>
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
<div class="method-description">
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
<div class="method-source-code" id="server-source">
|
|
1015
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 64</span>
|
|
1016
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">server</span>
|
|
1017
|
+
<span class="ruby-identifier">compute</span>
|
|
1018
|
+
<span class="ruby-identifier">load</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@server</span>
|
|
1019
|
+
<span class="ruby-ivar">@server</span>
|
|
1020
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1021
|
+
</div><!-- server-source -->
|
|
1022
|
+
|
|
1023
|
+
</div>
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
</div><!-- server-method -->
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
<div id="method-i-server-3D" class="method-detail ">
|
|
1032
|
+
|
|
1033
|
+
<div class="method-heading">
|
|
1034
|
+
<span class="method-name">server=</span><span
|
|
1035
|
+
class="method-args">(id)</span>
|
|
1036
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1037
|
+
</div>
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
<div class="method-description">
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
<div class="method-source-code" id="server-3D-source">
|
|
1047
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 53</span>
|
|
1048
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">server=</span><span class="ruby-identifier">id</span>
|
|
1049
|
+
<span class="ruby-ivar">@server</span> = <span class="ruby-keyword">nil</span>
|
|
1050
|
+
|
|
1051
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
|
|
1052
|
+
<span class="ruby-ivar">@server</span> = <span class="ruby-identifier">compute</span>.<span class="ruby-identifier">servers</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">id</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">id</span>.<span class="ruby-identifier">empty?</span>
|
|
1053
|
+
<span class="ruby-keyword">elsif</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">id</span>.<span class="ruby-identifier">nil?</span>
|
|
1054
|
+
<span class="ruby-ivar">@server</span> = <span class="ruby-identifier">id</span>
|
|
1055
|
+
<span class="ruby-keyword">end</span>
|
|
1056
|
+
<span class="ruby-identifier">init_server</span>
|
|
1057
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1058
|
+
</div><!-- server-3D-source -->
|
|
1059
|
+
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
</div><!-- server-3D-method -->
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
<div id="method-i-ssh_wait_for_ready" class="method-detail ">
|
|
1069
|
+
|
|
1070
|
+
<div class="method-heading">
|
|
1071
|
+
<span class="method-name">ssh_wait_for_ready</span><span
|
|
1072
|
+
class="method-args">()</span>
|
|
1073
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1074
|
+
</div>
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
<div class="method-description">
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
<div class="method-source-code" id="ssh_wait_for_ready-source">
|
|
1084
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 226</span>
|
|
1085
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ssh_wait_for_ready</span>
|
|
1086
|
+
<span class="ruby-identifier">server</span>.<span class="ruby-identifier">wait_for</span> { <span class="ruby-identifier">ready?</span> }
|
|
1087
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1088
|
+
</div><!-- ssh_wait_for_ready-source -->
|
|
1089
|
+
|
|
1090
|
+
</div>
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
</div><!-- ssh_wait_for_ready-method -->
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
<div id="method-i-state" class="method-detail ">
|
|
1099
|
+
|
|
1100
|
+
<div class="method-heading">
|
|
1101
|
+
<span class="method-name">state</span><span
|
|
1102
|
+
class="method-args">()</span>
|
|
1103
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1104
|
+
</div>
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
<div class="method-description">
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
<div class="method-source-code" id="state-source">
|
|
1114
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 72</span>
|
|
1115
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">state</span>
|
|
1116
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">translate_state</span>(<span class="ruby-identifier">server</span>.<span class="ruby-identifier">state</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">server</span>
|
|
1117
|
+
<span class="ruby-keyword">nil</span>
|
|
1118
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1119
|
+
</div><!-- state-source -->
|
|
1120
|
+
|
|
1121
|
+
</div>
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
</div><!-- state-method -->
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
<div id="method-i-stop" class="method-detail ">
|
|
1130
|
+
|
|
1131
|
+
<div class="method-heading">
|
|
1132
|
+
<span class="method-name">stop</span><span
|
|
1133
|
+
class="method-args">(options = {})</span>
|
|
1134
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1135
|
+
</div>
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
<div class="method-description">
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
<div class="method-source-code" id="stop-source">
|
|
1145
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 204</span>
|
|
1146
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stop</span>(<span class="ruby-identifier">options</span> = {})
|
|
1147
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
|
1148
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
|
|
1149
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-identifier">destroy</span>(<span class="ruby-identifier">config</span>.<span class="ruby-identifier">import</span>({ <span class="ruby-value">:stop</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span> })) <span class="ruby-keyword">if</span> <span class="ruby-identifier">create_image</span>(<span class="ruby-identifier">config</span>)
|
|
1150
|
+
<span class="ruby-keyword">end</span>
|
|
1151
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1152
|
+
</div><!-- stop-source -->
|
|
1153
|
+
|
|
1154
|
+
</div>
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
</div><!-- stop-method -->
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
<div id="method-i-terminal" class="method-detail ">
|
|
1163
|
+
|
|
1164
|
+
<div class="method-heading">
|
|
1165
|
+
<span class="method-name">terminal</span><span
|
|
1166
|
+
class="method-args">(user, options = {})</span>
|
|
1167
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1168
|
+
</div>
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
<div class="method-description">
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
<div class="method-source-code" id="terminal-source">
|
|
1178
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 176</span>
|
|
1179
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">terminal</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">options</span> = {})
|
|
1180
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
|
1181
|
+
<span class="ruby-identifier">ssh_terminal</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">config</span>)
|
|
1182
|
+
<span class="ruby-keyword">end</span>
|
|
1183
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1184
|
+
</div><!-- terminal-source -->
|
|
1185
|
+
|
|
1186
|
+
</div>
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
</div><!-- terminal-method -->
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
<div id="method-i-upload" class="method-detail ">
|
|
1195
|
+
|
|
1196
|
+
<div class="method-heading">
|
|
1197
|
+
<span class="method-name">upload</span><span
|
|
1198
|
+
class="method-args">(local_path, remote_path, options = {}, &code)</span>
|
|
1199
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1200
|
+
</div>
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
<div class="method-description">
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
<div class="method-source-code" id="upload-source">
|
|
1210
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 160</span>
|
|
1211
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">upload</span>(<span class="ruby-identifier">local_path</span>, <span class="ruby-identifier">remote_path</span>, <span class="ruby-identifier">options</span> = {}, &<span class="ruby-identifier">code</span>)
|
|
1212
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span>, <span class="ruby-identifier">success</span><span class="ruby-operator">|</span>
|
|
1213
|
+
<span class="ruby-identifier">ssh_upload</span>(<span class="ruby-identifier">local_path</span>, <span class="ruby-identifier">remote_path</span>, <span class="ruby-identifier">config</span>, &<span class="ruby-identifier">code</span>)
|
|
1214
|
+
<span class="ruby-keyword">end</span>
|
|
1215
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1216
|
+
</div><!-- upload-source -->
|
|
1217
|
+
|
|
1218
|
+
</div>
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
</div><!-- upload-method -->
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
</section><!-- public-instance-method-details -->
|
|
1227
|
+
|
|
1228
|
+
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
1229
|
+
<h3 class="section-header">Protected Instance Methods</h3>
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
<div id="method-i-init_server" class="method-detail ">
|
|
1233
|
+
|
|
1234
|
+
<div class="method-heading">
|
|
1235
|
+
<span class="method-name">init_server</span><span
|
|
1236
|
+
class="method-args">() { || ... }</span>
|
|
1237
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1238
|
+
</div>
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
<div class="method-description">
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
<div class="method-source-code" id="init_server-source">
|
|
1248
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 122</span>
|
|
1249
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">init_server</span>
|
|
1250
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@server</span>.<span class="ruby-identifier">nil?</span>
|
|
1251
|
+
<span class="ruby-keyword">yield</span> <span class="ruby-comment"># Implement in fog machine providers</span>
|
|
1252
|
+
<span class="ruby-keyword">end</span>
|
|
1253
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1254
|
+
</div><!-- init_server-source -->
|
|
1255
|
+
|
|
1256
|
+
</div>
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
</div><!-- init_server-method -->
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
<div id="method-i-set_connection" class="method-detail ">
|
|
1265
|
+
|
|
1266
|
+
<div class="method-heading">
|
|
1267
|
+
<span class="method-name">set_connection</span><span
|
|
1268
|
+
class="method-args">()</span>
|
|
1269
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1270
|
+
</div>
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
<div class="method-description">
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
<div class="method-source-code" id="set_connection-source">
|
|
1280
|
+
<pre><span class="ruby-comment"># File lib/core/plugin/fog_machine.rb, line 28</span>
|
|
1281
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_connection</span>
|
|
1282
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-string">"Initializing Fog Compute connection to cloud hosting provider"</span>)
|
|
1283
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"Compute settings: #{export.inspect}"</span>)
|
|
1284
|
+
|
|
1285
|
+
<span class="ruby-constant">ENV</span>[<span class="ruby-string">'DEBUG'</span>] = <span class="ruby-string">'true'</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">CORL</span>.<span class="ruby-identifier">log_level</span> <span class="ruby-operator">==</span> <span class="ruby-value">:debug</span>
|
|
1286
|
+
|
|
1287
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'fog'</span>
|
|
1288
|
+
|
|
1289
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">compute</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Fog</span><span class="ruby-operator">::</span><span class="ruby-constant">Compute</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">export</span>)
|
|
1290
|
+
<span class="ruby-keyword">end</span></pre>
|
|
1291
|
+
</div><!-- set_connection-source -->
|
|
1292
|
+
|
|
1293
|
+
</div>
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
</div><!-- set_connection-method -->
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
</section><!-- protected-instance-method-details -->
|
|
1302
|
+
|
|
1303
|
+
</section><!-- 5Buntitled-5D -->
|
|
1304
|
+
|
|
1305
|
+
</div><!-- documentation -->
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
<footer id="validator-badges">
|
|
1309
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
1310
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
|
1311
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
1312
|
+
</footer>
|
|
1313
|
+
|