corl 0.4.29 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -3
  3. data/Gemfile.lock +16 -13
  4. data/VERSION +1 -1
  5. data/bin/corl +21 -1
  6. data/bootstrap/os/ubuntu/00_base.sh +2 -2
  7. data/bootstrap/os/ubuntu/06_puppet.sh +7 -12
  8. data/bootstrap/os/ubuntu/09_nucleon.sh +1 -1
  9. data/bootstrap/os/ubuntu/10_corl.sh +1 -4
  10. data/corl.gemspec +193 -40
  11. data/lib/CORL/builder/identity.rb +68 -0
  12. data/lib/CORL/builder/package.rb +75 -0
  13. data/lib/CORL/configuration/file.rb +5 -5
  14. data/lib/CORL/machine/{aws.rb → AWS.rb} +2 -2
  15. data/lib/CORL/machine/physical.rb +1 -1
  16. data/lib/CORL/machine/rackspace.rb +1 -1
  17. data/lib/CORL/machine/vagrant.rb +2 -2
  18. data/lib/CORL/network/{default.rb → CORL.rb} +1 -1
  19. data/lib/CORL/node/{aws.rb → AWS.rb} +1 -1
  20. data/lib/CORL/node/local.rb +1 -1
  21. data/lib/CORL/node/vagrant.rb +7 -2
  22. data/lib/CORL/provisioner/puppetnode.rb +139 -131
  23. data/lib/core/build.rb +112 -0
  24. data/lib/core/facade.rb +48 -8
  25. data/lib/core/mixin/builder.rb +158 -0
  26. data/lib/core/mixin/lookup.rb +51 -20
  27. data/lib/core/mixin/machine/ssh.rb +16 -4
  28. data/lib/core/plugin/builder.rb +49 -0
  29. data/lib/core/plugin/{action.rb → cloud_action.rb} +22 -16
  30. data/lib/core/plugin/configuration.rb +9 -3
  31. data/lib/core/plugin/fog_machine.rb +3 -3
  32. data/lib/core/plugin/fog_node.rb +1 -1
  33. data/lib/core/plugin/machine.rb +2 -2
  34. data/lib/core/plugin/network.rb +39 -10
  35. data/lib/core/plugin/node.rb +95 -35
  36. data/lib/core/plugin/provisioner.rb +133 -113
  37. data/lib/core/util/puppet/resource.rb +1 -1
  38. data/lib/core/vagrant/actions/delete_cache.rb +7 -1
  39. data/lib/core/vagrant/commands/launcher.rb +2 -2
  40. data/lib/core/vagrant/config.rb +29 -2
  41. data/lib/corl.rb +9 -8
  42. data/lib/facter/corl_config_ready.rb +1 -1
  43. data/lib/facter/vagrant_exists.rb +1 -1
  44. data/lib/nucleon/action/cloud/create.rb +51 -0
  45. data/lib/nucleon/action/cloud/hiera.rb +61 -0
  46. data/lib/{CORL/action → nucleon/action/cloud}/images.rb +11 -2
  47. data/lib/nucleon/action/cloud/inspect.rb +47 -0
  48. data/lib/{CORL/action → nucleon/action/cloud}/machines.rb +11 -2
  49. data/lib/{CORL/action → nucleon/action/cloud}/regions.rb +11 -2
  50. data/lib/{CORL/action → nucleon/action/cloud}/vagrantfile.rb +11 -2
  51. data/lib/{CORL/action/ip.rb → nucleon/action/node/IP.rb} +11 -2
  52. data/lib/{CORL/action/ssh.rb → nucleon/action/node/SSH.rb} +15 -7
  53. data/lib/{CORL/action → nucleon/action/node}/authorize.rb +11 -2
  54. data/lib/{CORL/action → nucleon/action/node}/bootstrap.rb +13 -4
  55. data/lib/nucleon/action/node/build.rb +49 -0
  56. data/lib/{CORL/action → nucleon/action/node}/destroy.rb +14 -5
  57. data/lib/{CORL/action → nucleon/action/node}/exec.rb +11 -2
  58. data/lib/{CORL/action → nucleon/action/node}/facts.rb +12 -3
  59. data/lib/{CORL/action → nucleon/action/node}/image.rb +13 -4
  60. data/lib/nucleon/action/node/keypair.rb +85 -0
  61. data/lib/{CORL/action → nucleon/action/node}/lookup.rb +13 -4
  62. data/lib/{CORL/action → nucleon/action/node}/provision.rb +30 -8
  63. data/lib/{CORL/action → nucleon/action/node}/reboot.rb +13 -4
  64. data/lib/{CORL/action → nucleon/action/node}/revoke.rb +11 -2
  65. data/lib/{CORL/action → nucleon/action/node}/seed.rb +13 -4
  66. data/lib/{CORL/action → nucleon/action/node}/spawn.rb +19 -9
  67. data/lib/{CORL/action → nucleon/action/node}/start.rb +13 -4
  68. data/lib/{CORL/action → nucleon/action/node}/stop.rb +13 -4
  69. data/lib/{CORL → nucleon}/event/puppet.rb +2 -2
  70. data/lib/{CORL → nucleon}/template/environment.rb +2 -2
  71. data/lib/puppet/indirector/corl.rb +7 -4
  72. data/lib/puppet/parser/functions/corl_resources.rb +1 -0
  73. data/lib/puppet/parser/functions/global_array.rb +2 -1
  74. data/lib/puppet/parser/functions/global_hash.rb +2 -1
  75. data/lib/puppet/parser/functions/global_param.rb +2 -1
  76. data/lib/puppet/parser/functions/module_array.rb +2 -1
  77. data/lib/puppet/parser/functions/module_hash.rb +3 -2
  78. data/lib/puppet/parser/functions/module_param.rb +3 -2
  79. data/lib/puppet/parser/functions/render.rb +1 -0
  80. data/locales/en.yml +80 -0
  81. data/rdoc/site/0.4.29/CORL/Action/Authorize.html +485 -0
  82. data/rdoc/site/0.4.29/CORL/Action/Bootstrap.html +546 -0
  83. data/rdoc/site/0.4.29/CORL/Action/Build.html +396 -0
  84. data/rdoc/site/0.4.29/CORL/Action/Destroy.html +515 -0
  85. data/rdoc/site/0.4.29/CORL/Action/Exec.html +472 -0
  86. data/rdoc/site/0.4.29/CORL/Action/Facts.html +398 -0
  87. data/rdoc/site/0.4.29/CORL/Action/Image.html +515 -0
  88. data/rdoc/site/0.4.29/CORL/Action/Images.html +514 -0
  89. data/rdoc/site/0.4.29/CORL/Action/Ip.html +395 -0
  90. data/rdoc/site/0.4.29/CORL/Action/Keypair.html +494 -0
  91. data/rdoc/site/0.4.29/CORL/Action/Lookup.html +474 -0
  92. data/rdoc/site/0.4.29/CORL/Action/Machines.html +509 -0
  93. data/rdoc/site/0.4.29/CORL/Action/Provision.html +456 -0
  94. data/rdoc/site/0.4.29/CORL/Action/Reboot.html +515 -0
  95. data/rdoc/site/0.4.29/CORL/Action/Regions.html +509 -0
  96. data/rdoc/site/0.4.29/CORL/Action/Revoke.html +483 -0
  97. data/rdoc/site/0.4.29/CORL/Action/Seed.html +544 -0
  98. data/rdoc/site/0.4.29/CORL/Action/Spawn.html +616 -0
  99. data/rdoc/site/0.4.29/CORL/Action/Ssh.html +526 -0
  100. data/rdoc/site/0.4.29/CORL/Action/Start.html +515 -0
  101. data/rdoc/site/0.4.29/CORL/Action/Stop.html +515 -0
  102. data/rdoc/site/0.4.29/CORL/Action/Vagrantfile.html +457 -0
  103. data/rdoc/site/0.4.29/CORL/Action.html +360 -0
  104. data/rdoc/site/0.4.29/CORL/Configuration/File.html +1128 -0
  105. data/rdoc/site/0.4.29/CORL/Configuration.html +339 -0
  106. data/rdoc/site/0.4.29/CORL/Errors.html +339 -0
  107. data/rdoc/site/0.4.29/CORL/Event/Puppet.html +673 -0
  108. data/rdoc/site/0.4.29/CORL/Event.html +339 -0
  109. data/rdoc/site/0.4.29/CORL/Facade.html +742 -0
  110. data/rdoc/site/0.4.29/CORL/Machine/Aws.html +733 -0
  111. data/rdoc/site/0.4.29/CORL/Machine/Fog.html +1269 -0
  112. data/rdoc/site/0.4.29/CORL/Machine/Physical.html +1039 -0
  113. data/rdoc/site/0.4.29/CORL/Machine/Rackspace.html +514 -0
  114. data/rdoc/site/0.4.29/CORL/Machine/Vagrant.html +1300 -0
  115. data/rdoc/site/0.4.29/CORL/Machine.html +343 -0
  116. data/rdoc/site/0.4.29/CORL/Mixin/Action/Keypair.html +572 -0
  117. data/rdoc/site/0.4.29/CORL/Mixin/Action.html +339 -0
  118. data/rdoc/site/0.4.29/CORL/Mixin/Lookup.html +954 -0
  119. data/rdoc/site/0.4.29/CORL/Mixin/Machine/SSH.html +643 -0
  120. data/rdoc/site/0.4.29/CORL/Mixin/Machine.html +339 -0
  121. data/rdoc/site/0.4.29/CORL/Mixin/Macro/NetworkSettings.html +464 -0
  122. data/rdoc/site/0.4.29/CORL/Mixin/Macro.html +339 -0
  123. data/rdoc/site/0.4.29/CORL/Mixin.html +342 -0
  124. data/rdoc/site/0.4.29/CORL/Network/Default.html +391 -0
  125. data/rdoc/site/0.4.29/CORL/Network.html +339 -0
  126. data/rdoc/site/0.4.29/CORL/Node/Aws.html +716 -0
  127. data/rdoc/site/0.4.29/CORL/Node/Fog.html +1192 -0
  128. data/rdoc/site/0.4.29/CORL/Node/Local.html +424 -0
  129. data/rdoc/site/0.4.29/CORL/Node/Rackspace.html +709 -0
  130. data/rdoc/site/0.4.29/CORL/Node/Vagrant.html +1451 -0
  131. data/rdoc/site/0.4.29/CORL/Node.html +343 -0
  132. data/rdoc/site/0.4.29/CORL/Plugin/CloudAction.html +810 -0
  133. data/rdoc/site/0.4.29/CORL/Plugin.html +339 -0
  134. data/rdoc/site/0.4.29/CORL/Provisioner/Puppetnode.html +1095 -0
  135. data/rdoc/site/0.4.29/CORL/Provisioner.html +339 -0
  136. data/rdoc/site/0.4.29/CORL/Template/Environment.html +528 -0
  137. data/rdoc/site/0.4.29/CORL/Template.html +339 -0
  138. data/rdoc/site/0.4.29/CORL/Util/Puppet/Resource.html +1038 -0
  139. data/rdoc/site/0.4.29/CORL/Util/Puppet/ResourceGroup.html +920 -0
  140. data/rdoc/site/0.4.29/CORL/Util/Puppet.html +1087 -0
  141. data/rdoc/site/0.4.29/CORL/Util.html +341 -0
  142. data/rdoc/site/0.4.29/CORL/Vagrant/Config.html +896 -0
  143. data/rdoc/site/0.4.29/CORL/Vagrant.html +418 -0
  144. data/rdoc/site/0.4.29/CORL.html +465 -0
  145. data/rdoc/site/0.4.29/Facter/Util/Loader.html +396 -0
  146. data/rdoc/site/0.4.29/Facter/Util.html +339 -0
  147. data/rdoc/site/0.4.29/Facter.html +339 -0
  148. data/rdoc/site/0.4.29/Fog/Compute/AWS/Server.html +423 -0
  149. data/rdoc/site/0.4.29/Fog/Compute/AWS.html +345 -0
  150. data/rdoc/site/0.4.29/Fog/Compute/RackspaceV2/Server.html +408 -0
  151. data/rdoc/site/0.4.29/Fog/Compute/RackspaceV2.html +345 -0
  152. data/rdoc/site/0.4.29/Fog/Compute.html +340 -0
  153. data/rdoc/site/0.4.29/Fog.html +340 -0
  154. data/rdoc/site/0.4.29/Hiera/Backend.html +422 -0
  155. data/rdoc/site/0.4.29/Hiera/Corl_logger.html +449 -0
  156. data/rdoc/site/0.4.29/Hiera.html +346 -0
  157. data/rdoc/site/0.4.29/Nucleon/Config.html +357 -0
  158. data/rdoc/site/0.4.29/Nucleon/Plugin/Base.html +345 -0
  159. data/rdoc/site/0.4.29/Nucleon/Plugin/Configuration.html +1213 -0
  160. data/rdoc/site/0.4.29/Nucleon/Plugin/Machine.html +1279 -0
  161. data/rdoc/site/0.4.29/Nucleon/Plugin/Network.html +1425 -0
  162. data/rdoc/site/0.4.29/Nucleon/Plugin/Node.html +3715 -0
  163. data/rdoc/site/0.4.29/Nucleon/Plugin/Provisioner.html +1297 -0
  164. data/rdoc/site/0.4.29/Nucleon/Plugin.html +344 -0
  165. data/rdoc/site/0.4.29/Nucleon.html +344 -0
  166. data/rdoc/site/0.4.29/Object.html +358 -0
  167. data/rdoc/site/0.4.29/Puppet/DataBinding/Corl.html +345 -0
  168. data/rdoc/site/0.4.29/Puppet/DataBinding.html +338 -0
  169. data/rdoc/site/0.4.29/Puppet/Indirector/Corl.html +454 -0
  170. data/rdoc/site/0.4.29/Puppet/Indirector.html +338 -0
  171. data/rdoc/site/0.4.29/Puppet/Parser/Functions.html +480 -0
  172. data/rdoc/site/0.4.29/Puppet/Parser.html +338 -0
  173. data/rdoc/site/0.4.29/Puppet.html +338 -0
  174. data/rdoc/site/0.4.29/README_rdoc.html +340 -0
  175. data/rdoc/site/0.4.29/Vagrant/Config/Loader.html +399 -0
  176. data/rdoc/site/0.4.29/Vagrant/Config.html +339 -0
  177. data/rdoc/site/0.4.29/Vagrant/Vagrantfile.html +392 -0
  178. data/rdoc/site/0.4.29/Vagrant.html +346 -0
  179. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action/DeleteCache.html +396 -0
  180. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action/InitKeys.html +408 -0
  181. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action/LinkNetwork.html +406 -0
  182. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Action.html +341 -0
  183. data/rdoc/site/0.4.29/VagrantPlugins/CORL/BaseAction.html +491 -0
  184. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Command/Launcher.html +533 -0
  185. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Command.html +339 -0
  186. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Config/CORL.html +732 -0
  187. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Config.html +339 -0
  188. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Plugin.html +345 -0
  189. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Provisioner/CORL.html +536 -0
  190. data/rdoc/site/0.4.29/VagrantPlugins/CORL/Provisioner.html +339 -0
  191. data/rdoc/site/0.4.29/VagrantPlugins/CORL.html +346 -0
  192. data/rdoc/site/0.4.29/VagrantPlugins.html +346 -0
  193. data/rdoc/site/0.4.29/created.rid +96 -0
  194. data/rdoc/site/0.4.29/images/add.png +0 -0
  195. data/rdoc/site/0.4.29/images/brick.png +0 -0
  196. data/rdoc/site/0.4.29/images/brick_link.png +0 -0
  197. data/rdoc/site/0.4.29/images/bug.png +0 -0
  198. data/rdoc/site/0.4.29/images/bullet_black.png +0 -0
  199. data/rdoc/site/0.4.29/images/bullet_toggle_minus.png +0 -0
  200. data/rdoc/site/0.4.29/images/bullet_toggle_plus.png +0 -0
  201. data/rdoc/site/0.4.29/images/date.png +0 -0
  202. data/rdoc/site/0.4.29/images/delete.png +0 -0
  203. data/rdoc/site/0.4.29/images/find.png +0 -0
  204. data/rdoc/site/0.4.29/images/loadingAnimation.gif +0 -0
  205. data/rdoc/site/0.4.29/images/macFFBgHack.png +0 -0
  206. data/rdoc/site/0.4.29/images/package.png +0 -0
  207. data/rdoc/site/0.4.29/images/page_green.png +0 -0
  208. data/rdoc/site/0.4.29/images/page_white_text.png +0 -0
  209. data/rdoc/site/0.4.29/images/page_white_width.png +0 -0
  210. data/rdoc/site/0.4.29/images/plugin.png +0 -0
  211. data/rdoc/site/0.4.29/images/ruby.png +0 -0
  212. data/rdoc/site/0.4.29/images/tag_blue.png +0 -0
  213. data/rdoc/site/0.4.29/images/tag_green.png +0 -0
  214. data/rdoc/site/0.4.29/images/transparent.png +0 -0
  215. data/rdoc/site/0.4.29/images/wrench.png +0 -0
  216. data/rdoc/site/0.4.29/images/wrench_orange.png +0 -0
  217. data/rdoc/site/0.4.29/images/zoom.png +0 -0
  218. data/rdoc/site/0.4.29/index.html +339 -0
  219. data/rdoc/site/0.4.29/js/darkfish.js +155 -0
  220. data/rdoc/site/0.4.29/js/jquery.js +18 -0
  221. data/rdoc/site/0.4.29/js/navigation.js +142 -0
  222. data/rdoc/site/0.4.29/js/search.js +94 -0
  223. data/rdoc/site/0.4.29/js/search_index.js +1 -0
  224. data/rdoc/site/0.4.29/js/searcher.js +228 -0
  225. data/rdoc/site/0.4.29/rdoc.css +543 -0
  226. data/rdoc/site/0.4.29/table_of_contents.html +1561 -0
  227. metadata +192 -45
  228. data/lib/CORL/action/build.rb +0 -22
  229. data/lib/CORL/action/keypair.rb +0 -56
  230. data/lib/core/mod/facter_loader.rb +0 -15
@@ -0,0 +1,643 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module CORL::Mixin::Machine::SSH - corl 0.4.29</title>
8
+
9
+ <link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../../../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../../../index.html">Home</a>
28
+ <a href="../../../table_of_contents.html#classes">Classes</a>
29
+ <a href="../../../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/core/mixin/machine/ssh.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+ <!-- Method Quickref -->
62
+ <nav id="method-list-section" class="section">
63
+ <h3 class="section-header">Methods</h3>
64
+
65
+ <ul class="link-list">
66
+
67
+ <li><a href="#method-i-close_ssh_session">#close_ssh_session</a>
68
+
69
+ <li><a href="#method-i-init_ssh_session">#init_ssh_session</a>
70
+
71
+ <li><a href="#method-i-ssh_download">#ssh_download</a>
72
+
73
+ <li><a href="#method-i-ssh_exec">#ssh_exec</a>
74
+
75
+ <li><a href="#method-i-ssh_terminal">#ssh_terminal</a>
76
+
77
+ <li><a href="#method-i-ssh_upload">#ssh_upload</a>
78
+
79
+ <li><a href="#method-i-ssh_wait_for_ready">#ssh_wait_for_ready</a>
80
+
81
+ </ul>
82
+ </nav>
83
+
84
+ </div>
85
+
86
+ <div id="project-metadata">
87
+ <nav id="fileindex-section" class="section project-section">
88
+ <h3 class="section-header">Pages</h3>
89
+
90
+ <ul>
91
+
92
+ <li class="file"><a href="../../../README_rdoc.html">README</a>
93
+
94
+ </ul>
95
+ </nav>
96
+
97
+ <nav id="classindex-section" class="section project-section">
98
+ <h3 class="section-header">Class and Module Index</h3>
99
+
100
+ <ul class="link-list">
101
+
102
+ <li><a href="../../../CORL.html">CORL</a>
103
+
104
+ <li><a href="../../../CORL/Action.html">CORL::Action</a>
105
+
106
+ <li><a href="../../../CORL/Action/Authorize.html">CORL::Action::Authorize</a>
107
+
108
+ <li><a href="../../../CORL/Action/Bootstrap.html">CORL::Action::Bootstrap</a>
109
+
110
+ <li><a href="../../../CORL/Action/Build.html">CORL::Action::Build</a>
111
+
112
+ <li><a href="../../../CORL/Action/Destroy.html">CORL::Action::Destroy</a>
113
+
114
+ <li><a href="../../../CORL/Action/Exec.html">CORL::Action::Exec</a>
115
+
116
+ <li><a href="../../../CORL/Action/Facts.html">CORL::Action::Facts</a>
117
+
118
+ <li><a href="../../../CORL/Action/Image.html">CORL::Action::Image</a>
119
+
120
+ <li><a href="../../../CORL/Action/Images.html">CORL::Action::Images</a>
121
+
122
+ <li><a href="../../../CORL/Action/Ip.html">CORL::Action::Ip</a>
123
+
124
+ <li><a href="../../../CORL/Action/Keypair.html">CORL::Action::Keypair</a>
125
+
126
+ <li><a href="../../../CORL/Action/Lookup.html">CORL::Action::Lookup</a>
127
+
128
+ <li><a href="../../../CORL/Action/Machines.html">CORL::Action::Machines</a>
129
+
130
+ <li><a href="../../../CORL/Action/Provision.html">CORL::Action::Provision</a>
131
+
132
+ <li><a href="../../../CORL/Action/Reboot.html">CORL::Action::Reboot</a>
133
+
134
+ <li><a href="../../../CORL/Action/Regions.html">CORL::Action::Regions</a>
135
+
136
+ <li><a href="../../../CORL/Action/Revoke.html">CORL::Action::Revoke</a>
137
+
138
+ <li><a href="../../../CORL/Action/Seed.html">CORL::Action::Seed</a>
139
+
140
+ <li><a href="../../../CORL/Action/Spawn.html">CORL::Action::Spawn</a>
141
+
142
+ <li><a href="../../../CORL/Action/Ssh.html">CORL::Action::Ssh</a>
143
+
144
+ <li><a href="../../../CORL/Action/Start.html">CORL::Action::Start</a>
145
+
146
+ <li><a href="../../../CORL/Action/Stop.html">CORL::Action::Stop</a>
147
+
148
+ <li><a href="../../../CORL/Action/Vagrantfile.html">CORL::Action::Vagrantfile</a>
149
+
150
+ <li><a href="../../../CORL/Configuration.html">CORL::Configuration</a>
151
+
152
+ <li><a href="../../../CORL/Configuration/File.html">CORL::Configuration::File</a>
153
+
154
+ <li><a href="../../../CORL/Errors.html">CORL::Errors</a>
155
+
156
+ <li><a href="../../../CORL/Event.html">CORL::Event</a>
157
+
158
+ <li><a href="../../../CORL/Event/Puppet.html">CORL::Event::Puppet</a>
159
+
160
+ <li><a href="../../../CORL/Facade.html">CORL::Facade</a>
161
+
162
+ <li><a href="../../../CORL/Machine.html">CORL::Machine</a>
163
+
164
+ <li><a href="../../../CORL/Machine/Aws.html">CORL::Machine::Aws</a>
165
+
166
+ <li><a href="../../../CORL/Machine/Fog.html">CORL::Machine::Fog</a>
167
+
168
+ <li><a href="../../../CORL/Machine/Physical.html">CORL::Machine::Physical</a>
169
+
170
+ <li><a href="../../../CORL/Machine/Rackspace.html">CORL::Machine::Rackspace</a>
171
+
172
+ <li><a href="../../../CORL/Machine/Vagrant.html">CORL::Machine::Vagrant</a>
173
+
174
+ <li><a href="../../../CORL/Mixin.html">CORL::Mixin</a>
175
+
176
+ <li><a href="../../../CORL/Mixin/Action.html">CORL::Mixin::Action</a>
177
+
178
+ <li><a href="../../../CORL/Mixin/Action/Keypair.html">CORL::Mixin::Action::Keypair</a>
179
+
180
+ <li><a href="../../../CORL/Mixin/Lookup.html">CORL::Mixin::Lookup</a>
181
+
182
+ <li><a href="../../../CORL/Mixin/Machine.html">CORL::Mixin::Machine</a>
183
+
184
+ <li><a href="../../../CORL/Mixin/Machine/SSH.html">CORL::Mixin::Machine::SSH</a>
185
+
186
+ <li><a href="../../../CORL/Mixin/Macro.html">CORL::Mixin::Macro</a>
187
+
188
+ <li><a href="../../../CORL/Mixin/Macro/NetworkSettings.html">CORL::Mixin::Macro::NetworkSettings</a>
189
+
190
+ <li><a href="../../../CORL/Network.html">CORL::Network</a>
191
+
192
+ <li><a href="../../../CORL/Network/Default.html">CORL::Network::Default</a>
193
+
194
+ <li><a href="../../../CORL/Node.html">CORL::Node</a>
195
+
196
+ <li><a href="../../../CORL/Node/Aws.html">CORL::Node::Aws</a>
197
+
198
+ <li><a href="../../../CORL/Node/Fog.html">CORL::Node::Fog</a>
199
+
200
+ <li><a href="../../../CORL/Node/Local.html">CORL::Node::Local</a>
201
+
202
+ <li><a href="../../../CORL/Node/Rackspace.html">CORL::Node::Rackspace</a>
203
+
204
+ <li><a href="../../../CORL/Node/Vagrant.html">CORL::Node::Vagrant</a>
205
+
206
+ <li><a href="../../../CORL/Plugin.html">CORL::Plugin</a>
207
+
208
+ <li><a href="../../../CORL/Plugin/CloudAction.html">CORL::Plugin::CloudAction</a>
209
+
210
+ <li><a href="../../../CORL/Provisioner.html">CORL::Provisioner</a>
211
+
212
+ <li><a href="../../../CORL/Provisioner/Puppetnode.html">CORL::Provisioner::Puppetnode</a>
213
+
214
+ <li><a href="../../../CORL/Template.html">CORL::Template</a>
215
+
216
+ <li><a href="../../../CORL/Template/Environment.html">CORL::Template::Environment</a>
217
+
218
+ <li><a href="../../../CORL/Util.html">CORL::Util</a>
219
+
220
+ <li><a href="../../../CORL/Util/Puppet.html">CORL::Util::Puppet</a>
221
+
222
+ <li><a href="../../../CORL/Util/Puppet/Resource.html">CORL::Util::Puppet::Resource</a>
223
+
224
+ <li><a href="../../../CORL/Util/Puppet/ResourceGroup.html">CORL::Util::Puppet::ResourceGroup</a>
225
+
226
+ <li><a href="../../../CORL/Vagrant.html">CORL::Vagrant</a>
227
+
228
+ <li><a href="../../../CORL/Vagrant/Config.html">CORL::Vagrant::Config</a>
229
+
230
+ <li><a href="../../../VagrantPlugins.html">VagrantPlugins</a>
231
+
232
+ <li><a href="../../../VagrantPlugins/CORL.html">VagrantPlugins::CORL</a>
233
+
234
+ <li><a href="../../../VagrantPlugins/CORL/Action.html">VagrantPlugins::CORL::Action</a>
235
+
236
+ <li><a href="../../../VagrantPlugins/CORL/Action/DeleteCache.html">VagrantPlugins::CORL::Action::DeleteCache</a>
237
+
238
+ <li><a href="../../../VagrantPlugins/CORL/Action/InitKeys.html">VagrantPlugins::CORL::Action::InitKeys</a>
239
+
240
+ <li><a href="../../../VagrantPlugins/CORL/Action/LinkNetwork.html">VagrantPlugins::CORL::Action::LinkNetwork</a>
241
+
242
+ <li><a href="../../../VagrantPlugins/CORL/BaseAction.html">VagrantPlugins::CORL::BaseAction</a>
243
+
244
+ <li><a href="../../../VagrantPlugins/CORL/Command.html">VagrantPlugins::CORL::Command</a>
245
+
246
+ <li><a href="../../../VagrantPlugins/CORL/Command/Launcher.html">VagrantPlugins::CORL::Command::Launcher</a>
247
+
248
+ <li><a href="../../../VagrantPlugins/CORL/Config.html">VagrantPlugins::CORL::Config</a>
249
+
250
+ <li><a href="../../../VagrantPlugins/CORL/Config/CORL.html">VagrantPlugins::CORL::Config::CORL</a>
251
+
252
+ <li><a href="../../../VagrantPlugins/CORL/Plugin.html">VagrantPlugins::CORL::Plugin</a>
253
+
254
+ <li><a href="../../../VagrantPlugins/CORL/Provisioner.html">VagrantPlugins::CORL::Provisioner</a>
255
+
256
+ <li><a href="../../../VagrantPlugins/CORL/Provisioner/CORL.html">VagrantPlugins::CORL::Provisioner::CORL</a>
257
+
258
+ <li><a href="../../../Nucleon.html">Nucleon</a>
259
+
260
+ <li><a href="../../../Nucleon/Config.html">Nucleon::Config</a>
261
+
262
+ <li><a href="../../../Nucleon/Plugin.html">Nucleon::Plugin</a>
263
+
264
+ <li><a href="../../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
265
+
266
+ <li><a href="../../../Nucleon/Plugin/Configuration.html">Nucleon::Plugin::Configuration</a>
267
+
268
+ <li><a href="../../../Nucleon/Plugin/Machine.html">Nucleon::Plugin::Machine</a>
269
+
270
+ <li><a href="../../../Nucleon/Plugin/Network.html">Nucleon::Plugin::Network</a>
271
+
272
+ <li><a href="../../../Nucleon/Plugin/Node.html">Nucleon::Plugin::Node</a>
273
+
274
+ <li><a href="../../../Nucleon/Plugin/Provisioner.html">Nucleon::Plugin::Provisioner</a>
275
+
276
+ <li><a href="../../../Puppet.html">Puppet</a>
277
+
278
+ <li><a href="../../../Puppet/DataBinding.html">Puppet::DataBinding</a>
279
+
280
+ <li><a href="../../../Puppet/DataBinding/Corl.html">Puppet::DataBinding::Corl</a>
281
+
282
+ <li><a href="../../../Puppet/Indirector.html">Puppet::Indirector</a>
283
+
284
+ <li><a href="../../../Puppet/Indirector/Corl.html">Puppet::Indirector::Corl</a>
285
+
286
+ <li><a href="../../../Puppet/Parser.html">Puppet::Parser</a>
287
+
288
+ <li><a href="../../../Puppet/Parser/Functions.html">Puppet::Parser::Functions</a>
289
+
290
+ <li><a href="../../../Fog.html">Fog</a>
291
+
292
+ <li><a href="../../../Fog/Compute.html">Fog::Compute</a>
293
+
294
+ <li><a href="../../../Fog/Compute/AWS.html">Fog::Compute::AWS</a>
295
+
296
+ <li><a href="../../../Fog/Compute/AWS/Server.html">Fog::Compute::AWS::Server</a>
297
+
298
+ <li><a href="../../../Fog/Compute/RackspaceV2.html">Fog::Compute::RackspaceV2</a>
299
+
300
+ <li><a href="../../../Fog/Compute/RackspaceV2/Server.html">Fog::Compute::RackspaceV2::Server</a>
301
+
302
+ <li><a href="../../../Vagrant.html">Vagrant</a>
303
+
304
+ <li><a href="../../../Vagrant/Config.html">Vagrant::Config</a>
305
+
306
+ <li><a href="../../../Vagrant/Config/Loader.html">Vagrant::Config::Loader</a>
307
+
308
+ <li><a href="../../../Vagrant/Vagrantfile.html">Vagrant::Vagrantfile</a>
309
+
310
+ <li><a href="../../../Facter.html">Facter</a>
311
+
312
+ <li><a href="../../../Facter/Util.html">Facter::Util</a>
313
+
314
+ <li><a href="../../../Facter/Util/Loader.html">Facter::Util::Loader</a>
315
+
316
+ <li><a href="../../../Hiera.html">Hiera</a>
317
+
318
+ <li><a href="../../../Hiera/Backend.html">Hiera::Backend</a>
319
+
320
+ <li><a href="../../../Hiera/Corl_logger.html">Hiera::Corl_logger</a>
321
+
322
+ <li><a href="../../../Object.html">Object</a>
323
+
324
+ </ul>
325
+ </nav>
326
+
327
+ </div>
328
+ </nav>
329
+
330
+ <div id="documentation">
331
+ <h1 class="module">module CORL::Mixin::Machine::SSH</h1>
332
+
333
+ <div id="description" class="description">
334
+
335
+ </div><!-- description -->
336
+
337
+
338
+
339
+
340
+ <section id="5Buntitled-5D" class="documentation-section">
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+ <!-- Methods -->
350
+
351
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
352
+ <h3 class="section-header">Public Instance Methods</h3>
353
+
354
+
355
+ <div id="method-i-close_ssh_session" class="method-detail ">
356
+
357
+ <div class="method-heading">
358
+ <span class="method-name">close_ssh_session</span><span
359
+ class="method-args">()</span>
360
+ <span class="method-click-advice">click to toggle source</span>
361
+ </div>
362
+
363
+
364
+ <div class="method-description">
365
+
366
+
367
+
368
+
369
+
370
+ <div class="method-source-code" id="close_ssh_session-source">
371
+ <pre><span class="ruby-comment"># File lib/core/mixin/machine/ssh.rb, line 99</span>
372
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">close_ssh_session</span>
373
+ <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span>.<span class="ruby-identifier">close_session</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">public_ip</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">user</span>)
374
+ <span class="ruby-keyword">end</span></pre>
375
+ </div><!-- close_ssh_session-source -->
376
+
377
+ </div>
378
+
379
+
380
+
381
+
382
+ </div><!-- close_ssh_session-method -->
383
+
384
+
385
+ <div id="method-i-init_ssh_session" class="method-detail ">
386
+
387
+ <div class="method-heading">
388
+ <span class="method-name">init_ssh_session</span><span
389
+ class="method-args">(reset = false, tries = 5, sleep_secs = 5)</span>
390
+ <span class="method-click-advice">click to toggle source</span>
391
+ </div>
392
+
393
+
394
+ <div class="method-description">
395
+
396
+
397
+
398
+
399
+
400
+ <div class="method-source-code" id="init_ssh_session-source">
401
+ <pre><span class="ruby-comment"># File lib/core/mixin/machine/ssh.rb, line 9</span>
402
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">init_ssh_session</span>(<span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>, <span class="ruby-identifier">tries</span> = <span class="ruby-value">5</span>, <span class="ruby-identifier">sleep_secs</span> = <span class="ruby-value">5</span>)
403
+ <span class="ruby-identifier">ssh_wait_for_ready</span>
404
+
405
+ <span class="ruby-identifier">success</span> = <span class="ruby-keyword">true</span>
406
+
407
+ <span class="ruby-keyword">begin</span>
408
+ <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span>.<span class="ruby-identifier">session</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">public_ip</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">user</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">ssh_port</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">private_key</span>, <span class="ruby-identifier">reset</span>)
409
+
410
+ <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span><span class="ruby-operator">::</span><span class="ruby-constant">HostKeyMismatch</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">error</span>
411
+ <span class="ruby-identifier">error</span>.<span class="ruby-identifier">remember_host!</span>
412
+ <span class="ruby-identifier">sleep</span> <span class="ruby-value">0.2</span>
413
+ <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">true</span>
414
+ <span class="ruby-keyword">retry</span>
415
+
416
+ <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ECONNREFUSED</span>, <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span><span class="ruby-operator">::</span><span class="ruby-constant">ConnectionTimeout</span>, <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span><span class="ruby-operator">::</span><span class="ruby-constant">Disconnect</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">error</span>
417
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">tries</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>
418
+ <span class="ruby-identifier">sleep</span>(<span class="ruby-identifier">sleep_secs</span>)
419
+
420
+ <span class="ruby-identifier">tries</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span>
421
+ <span class="ruby-identifier">reset</span> = <span class="ruby-keyword">true</span>
422
+ <span class="ruby-keyword">retry</span>
423
+ <span class="ruby-keyword">else</span>
424
+ <span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
425
+ <span class="ruby-keyword">end</span>
426
+
427
+ <span class="ruby-keyword">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">error</span>
428
+ <span class="ruby-identifier">ui</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-identifier">error</span>)
429
+ <span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
430
+ <span class="ruby-keyword">end</span>
431
+ <span class="ruby-identifier">success</span>
432
+ <span class="ruby-keyword">end</span></pre>
433
+ </div><!-- init_ssh_session-source -->
434
+
435
+ </div>
436
+
437
+
438
+
439
+
440
+ </div><!-- init_ssh_session-method -->
441
+
442
+
443
+ <div id="method-i-ssh_download" class="method-detail ">
444
+
445
+ <div class="method-heading">
446
+ <span class="method-name">ssh_download</span><span
447
+ class="method-args">(remote_path, local_path, options = {}, &code)</span>
448
+ <span class="method-click-advice">click to toggle source</span>
449
+ </div>
450
+
451
+
452
+ <div class="method-description">
453
+
454
+
455
+
456
+
457
+
458
+ <div class="method-source-code" id="ssh_download-source">
459
+ <pre><span class="ruby-comment"># File lib/core/mixin/machine/ssh.rb, line 43</span>
460
+ <span class="ruby-keyword">def</span> <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">options</span> = {}, &amp;<span class="ruby-identifier">code</span>)
461
+ <span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
462
+ <span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
463
+
464
+ <span class="ruby-keyword">begin</span>
465
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">init_ssh_session</span>
466
+ <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span>.<span class="ruby-identifier">download</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">public_ip</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">user</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">export</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">received</span>, <span class="ruby-identifier">total</span><span class="ruby-operator">|</span>
467
+ <span class="ruby-identifier">code</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">received</span>, <span class="ruby-identifier">total</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">code</span>
468
+ <span class="ruby-keyword">end</span>
469
+ <span class="ruby-identifier">success</span> = <span class="ruby-keyword">true</span>
470
+ <span class="ruby-keyword">end</span>
471
+ <span class="ruby-keyword">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">error</span>
472
+ <span class="ruby-identifier">ui</span>.<span class="ruby-identifier">error</span>(<span class="ruby-identifier">error</span>.<span class="ruby-identifier">message</span>)
473
+ <span class="ruby-keyword">end</span>
474
+
475
+ <span class="ruby-identifier">success</span>
476
+ <span class="ruby-keyword">end</span></pre>
477
+ </div><!-- ssh_download-source -->
478
+
479
+ </div>
480
+
481
+
482
+
483
+
484
+ </div><!-- ssh_download-method -->
485
+
486
+
487
+ <div id="method-i-ssh_exec" class="method-detail ">
488
+
489
+ <div class="method-heading">
490
+ <span class="method-name">ssh_exec</span><span
491
+ class="method-args">(commands, options = {}, &code)</span>
492
+ <span class="method-click-advice">click to toggle source</span>
493
+ </div>
494
+
495
+
496
+ <div class="method-description">
497
+
498
+
499
+
500
+
501
+
502
+ <div class="method-source-code" id="ssh_exec-source">
503
+ <pre><span class="ruby-comment"># File lib/core/mixin/machine/ssh.rb, line 83</span>
504
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">ssh_exec</span>(<span class="ruby-identifier">commands</span>, <span class="ruby-identifier">options</span> = {}, &amp;<span class="ruby-identifier">code</span>)
505
+ <span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
506
+ <span class="ruby-identifier">results</span> = <span class="ruby-keyword">nil</span>
507
+
508
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">commands</span>
509
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">init_ssh_session</span>
510
+ <span class="ruby-identifier">results</span> = <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span>.<span class="ruby-identifier">exec</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">public_ip</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">user</span>, <span class="ruby-identifier">commands</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">type</span>, <span class="ruby-identifier">command</span>, <span class="ruby-identifier">data</span><span class="ruby-operator">|</span>
511
+ <span class="ruby-identifier">code</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">command</span>, <span class="ruby-identifier">data</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">code</span>
512
+ <span class="ruby-keyword">end</span>
513
+ <span class="ruby-keyword">end</span>
514
+ <span class="ruby-keyword">end</span>
515
+ <span class="ruby-identifier">results</span>
516
+ <span class="ruby-keyword">end</span></pre>
517
+ </div><!-- ssh_exec-source -->
518
+
519
+ </div>
520
+
521
+
522
+
523
+
524
+ </div><!-- ssh_exec-method -->
525
+
526
+
527
+ <div id="method-i-ssh_terminal" class="method-detail ">
528
+
529
+ <div class="method-heading">
530
+ <span class="method-name">ssh_terminal</span><span
531
+ class="method-args">(user, options = {})</span>
532
+ <span class="method-click-advice">click to toggle source</span>
533
+ </div>
534
+
535
+
536
+ <div class="method-description">
537
+
538
+
539
+
540
+
541
+
542
+ <div class="method-source-code" id="ssh_terminal-source">
543
+ <pre><span class="ruby-comment"># File lib/core/mixin/machine/ssh.rb, line 105</span>
544
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">ssh_terminal</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">options</span> = {})
545
+ <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span>.<span class="ruby-identifier">terminal</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">public_ip</span>, <span class="ruby-identifier">user</span>, <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">export</span>)
546
+ <span class="ruby-keyword">end</span></pre>
547
+ </div><!-- ssh_terminal-source -->
548
+
549
+ </div>
550
+
551
+
552
+
553
+
554
+ </div><!-- ssh_terminal-method -->
555
+
556
+
557
+ <div id="method-i-ssh_upload" class="method-detail ">
558
+
559
+ <div class="method-heading">
560
+ <span class="method-name">ssh_upload</span><span
561
+ class="method-args">(local_path, remote_path, options = {}, &code)</span>
562
+ <span class="method-click-advice">click to toggle source</span>
563
+ </div>
564
+
565
+
566
+ <div class="method-description">
567
+
568
+
569
+
570
+
571
+
572
+ <div class="method-source-code" id="ssh_upload-source">
573
+ <pre><span class="ruby-comment"># File lib/core/mixin/machine/ssh.rb, line 63</span>
574
+ <span class="ruby-keyword">def</span> <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">options</span> = {}, &amp;<span class="ruby-identifier">code</span>)
575
+ <span class="ruby-identifier">config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
576
+ <span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
577
+
578
+ <span class="ruby-keyword">begin</span>
579
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">init_ssh_session</span>
580
+ <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">SSH</span>.<span class="ruby-identifier">upload</span>(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">public_ip</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">user</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">export</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">sent</span>, <span class="ruby-identifier">total</span><span class="ruby-operator">|</span>
581
+ <span class="ruby-identifier">code</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">sent</span>, <span class="ruby-identifier">total</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">code</span>
582
+ <span class="ruby-keyword">end</span>
583
+ <span class="ruby-identifier">success</span> = <span class="ruby-keyword">true</span>
584
+ <span class="ruby-keyword">end</span>
585
+ <span class="ruby-keyword">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">error</span>
586
+ <span class="ruby-identifier">ui</span>.<span class="ruby-identifier">error</span>(<span class="ruby-identifier">error</span>.<span class="ruby-identifier">message</span>)
587
+ <span class="ruby-keyword">end</span>
588
+
589
+ <span class="ruby-identifier">success</span>
590
+ <span class="ruby-keyword">end</span></pre>
591
+ </div><!-- ssh_upload-source -->
592
+
593
+ </div>
594
+
595
+
596
+
597
+
598
+ </div><!-- ssh_upload-method -->
599
+
600
+
601
+ <div id="method-i-ssh_wait_for_ready" class="method-detail ">
602
+
603
+ <div class="method-heading">
604
+ <span class="method-name">ssh_wait_for_ready</span><span
605
+ class="method-args">()</span>
606
+ <span class="method-click-advice">click to toggle source</span>
607
+ </div>
608
+
609
+
610
+ <div class="method-description">
611
+
612
+
613
+
614
+
615
+
616
+ <div class="method-source-code" id="ssh_wait_for_ready-source">
617
+ <pre><span class="ruby-comment"># File lib/core/mixin/machine/ssh.rb, line 112</span>
618
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">ssh_wait_for_ready</span>
619
+ <span class="ruby-comment"># Override in class if needed (see Fog Machine provider)</span>
620
+ <span class="ruby-keyword">end</span></pre>
621
+ </div><!-- ssh_wait_for_ready-source -->
622
+
623
+ </div>
624
+
625
+
626
+
627
+
628
+ </div><!-- ssh_wait_for_ready-method -->
629
+
630
+
631
+ </section><!-- public-instance-method-details -->
632
+
633
+ </section><!-- 5Buntitled-5D -->
634
+
635
+ </div><!-- documentation -->
636
+
637
+
638
+ <footer id="validator-badges">
639
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
640
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
641
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
642
+ </footer>
643
+