poolparty 1.3.15 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1171) hide show
  1. data/README.rdoc +2 -87
  2. data/Rakefile +85 -45
  3. data/VERSION.yml +2 -2
  4. data/bin/cloud +6 -10
  5. data/bin/cloud-bootstrap +2 -4
  6. data/bin/cloud-compile +1 -7
  7. data/bin/cloud-configure +1 -9
  8. data/bin/cloud-console +3 -6
  9. data/bin/cloud-contract +3 -7
  10. data/bin/cloud-list +4 -3
  11. data/bin/cloud-reboot +25 -0
  12. data/bin/cloud-show +13 -5
  13. data/bin/cloud-start +1 -26
  14. data/bin/cloud-terminate +3 -3
  15. data/examples/README.md +57 -0
  16. data/examples/chef_cloud/chef-repo/README +3 -0
  17. data/examples/chef_cloud/chef-repo/Rakefile +35 -0
  18. data/examples/chef_cloud/chef-repo/certificates/README +1 -0
  19. data/examples/chef_cloud/chef-repo/config/client.rb.example +22 -0
  20. data/examples/chef_cloud/chef-repo/config/rake.rb +60 -0
  21. data/examples/chef_cloud/chef-repo/config/server.rb.example +33 -0
  22. data/examples/chef_cloud/chef-repo/config/solo.rb.example +9 -0
  23. data/examples/chef_cloud/chef-repo/cookbooks/README +1 -0
  24. data/examples/chef_cloud/chef-repo/cookbooks/apache2/README.rdoc +68 -0
  25. data/examples/chef_cloud/chef-repo/cookbooks/apache2/attributes/apache.rb +74 -0
  26. data/examples/chef_cloud/chef-repo/cookbooks/apache2/definitions/apache_conf.rb +25 -0
  27. data/examples/chef_cloud/chef-repo/cookbooks/apache2/definitions/apache_module.rb +43 -0
  28. data/examples/chef_cloud/chef-repo/cookbooks/apache2/definitions/apache_site.rb +40 -0
  29. data/examples/chef_cloud/chef-repo/cookbooks/apache2/definitions/web_app.rb +49 -0
  30. data/examples/chef_cloud/chef-repo/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +41 -0
  31. data/examples/chef_cloud/chef-repo/cookbooks/apache2/metadata.json +508 -0
  32. data/examples/chef_cloud/chef-repo/cookbooks/apache2/metadata.rb +191 -0
  33. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/default.rb +191 -0
  34. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/god_monitor.rb +33 -0
  35. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_alias.rb +22 -0
  36. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_auth_basic.rb +20 -0
  37. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_auth_digest.rb +20 -0
  38. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_authn_file.rb +20 -0
  39. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_authnz_ldap.rb +20 -0
  40. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_authz_default.rb +20 -0
  41. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_authz_groupfile.rb +20 -0
  42. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_authz_host.rb +20 -0
  43. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_authz_user.rb +20 -0
  44. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_autoindex.rb +22 -0
  45. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_cgi.rb +20 -0
  46. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_dav.rb +20 -0
  47. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_dav_svn.rb +22 -0
  48. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_deflate.rb +22 -0
  49. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_dir.rb +22 -0
  50. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_env.rb +20 -0
  51. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_expires.rb +20 -0
  52. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_fcgid.rb +46 -0
  53. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_headers.rb +20 -0
  54. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_ldap.rb +20 -0
  55. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_log_config.rb +24 -0
  56. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_mime.rb +22 -0
  57. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_negotiation.rb +22 -0
  58. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_php5.rb +32 -0
  59. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_proxy.rb +22 -0
  60. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_proxy_ajp.rb +20 -0
  61. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_proxy_balancer.rb +20 -0
  62. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_proxy_connect.rb +20 -0
  63. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_proxy_http.rb +20 -0
  64. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_python.rb +22 -0
  65. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_rails.rb +43 -0
  66. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_rewrite.rb +20 -0
  67. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_setenvif.rb +22 -0
  68. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_ssl.rb +42 -0
  69. data/examples/chef_cloud/chef-repo/cookbooks/apache2/recipes/mod_status.rb +22 -0
  70. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/a2enmod.erb +37 -0
  71. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/apache2.conf.erb +230 -0
  72. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/apache2.god.erb +19 -0
  73. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/charset.erb +6 -0
  74. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/default-site.erb +57 -0
  75. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/README +2 -0
  76. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/alias.conf.erb +24 -0
  77. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/autoindex.conf.erb +101 -0
  78. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/deflate.conf.erb +3 -0
  79. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/dir.conf.erb +5 -0
  80. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/fcgid.conf.erb +10 -0
  81. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/mime.conf.erb +191 -0
  82. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/negotiation.conf.erb +18 -0
  83. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/proxy.conf.erb +19 -0
  84. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/setenvif.conf.erb +28 -0
  85. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/ssl.conf.erb +72 -0
  86. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/mods/status.conf.erb +16 -0
  87. data/examples/chef_cloud/chef-repo/cookbooks/apache2/templates/default/security.erb +50 -0
  88. data/examples/chef_cloud/chef-repo/cookbooks/apt/files/default/apt-cacher +9 -0
  89. data/examples/chef_cloud/chef-repo/cookbooks/apt/files/default/apt-cacher.conf +144 -0
  90. data/examples/chef_cloud/chef-repo/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
  91. data/examples/chef_cloud/chef-repo/cookbooks/apt/metadata.json +51 -0
  92. data/examples/chef_cloud/chef-repo/cookbooks/apt/metadata.rb +11 -0
  93. data/examples/chef_cloud/chef-repo/cookbooks/apt/recipes/cacher.rb +42 -0
  94. data/examples/chef_cloud/chef-repo/cookbooks/apt/recipes/default.rb +31 -0
  95. data/examples/chef_cloud/chef-repo/cookbooks/apt/recipes/proxy.rb +34 -0
  96. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/README.rdoc +165 -0
  97. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/attributes/bootstrap.rb +49 -0
  98. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/metadata.json +57 -0
  99. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/metadata.rb +10 -0
  100. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/recipes/client.rb +94 -0
  101. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/recipes/default.rb +18 -0
  102. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/recipes/server.rb +120 -0
  103. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/client.rb.erb +30 -0
  104. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/server.rb.erb +32 -0
  105. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/sv-chef-client-log-run.erb +2 -0
  106. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/sv-chef-client-run.erb +4 -0
  107. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/sv-chef-indexer-log-run.erb +2 -0
  108. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/sv-chef-indexer-run.erb +4 -0
  109. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/sv-chef-server-log-run.erb +2 -0
  110. data/examples/chef_cloud/chef-repo/cookbooks/bootstrap/templates/default/sv-chef-server-run.erb +4 -0
  111. data/examples/chef_cloud/chef-repo/cookbooks/chef/README.rdoc +221 -0
  112. data/examples/chef_cloud/chef-repo/cookbooks/chef/attributes/chef.rb +60 -0
  113. data/examples/chef_cloud/chef-repo/cookbooks/chef/metadata.json +231 -0
  114. data/examples/chef_cloud/chef-repo/cookbooks/chef/metadata.rb +87 -0
  115. data/examples/chef_cloud/chef-repo/cookbooks/chef/recipes/client.rb +76 -0
  116. data/examples/chef_cloud/chef-repo/cookbooks/chef/recipes/server.rb +75 -0
  117. data/examples/chef_cloud/chef-repo/cookbooks/chef/recipes/server_proxy.rb +59 -0
  118. data/examples/chef_cloud/chef-repo/cookbooks/chef/templates/default/chef_server.conf.erb +49 -0
  119. data/examples/chef_cloud/chef-repo/cookbooks/chef/templates/default/client.rb.erb +30 -0
  120. data/examples/chef_cloud/chef-repo/cookbooks/chef/templates/default/server.rb.erb +32 -0
  121. data/examples/chef_cloud/chef-repo/cookbooks/ec2/attributes/ec2_metadata.rb +44 -0
  122. data/examples/chef_cloud/chef-repo/cookbooks/ec2/attributes/ec2_recipe_options.rb +30 -0
  123. data/examples/chef_cloud/chef-repo/cookbooks/ec2/metadata.rb +9 -0
  124. data/examples/chef_cloud/chef-repo/cookbooks/ec2/recipes/default.rb +19 -0
  125. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/README.rdoc +8 -0
  126. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/attributes/default.rb +14 -0
  127. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/metadata.rb +12 -0
  128. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/recipes/default.rb +141 -0
  129. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/recipes/gmetad.rb +44 -0
  130. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/recipes/monitor_sshd.rb +14 -0
  131. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/recipes/monitor_watson.rb +14 -0
  132. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/recipes/web.rb +17 -0
  133. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/bin/gmetad.erb +38 -0
  134. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/bin/gmond.erb +38 -0
  135. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/bin/monitors/sshd_ganglia.sh.erb +13 -0
  136. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/bin/monitors/watson_channels.sh.erb +13 -0
  137. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/ganglia-web-conf.php.erb +191 -0
  138. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/gmetad.conf.erb +117 -0
  139. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/gmond.conf.erb +426 -0
  140. data/examples/chef_cloud/chef-repo/cookbooks/ganglia/templates/default/jaunty.sources.list.erb +6 -0
  141. data/examples/chef_cloud/chef-repo/cookbooks/ntp/attributes/ntp.rb +11 -0
  142. data/examples/chef_cloud/chef-repo/cookbooks/ntp/metadata.json +97 -0
  143. data/examples/chef_cloud/chef-repo/cookbooks/ntp/metadata.rb +31 -0
  144. data/examples/chef_cloud/chef-repo/cookbooks/ntp/recipes/default.rb +41 -0
  145. data/examples/chef_cloud/chef-repo/cookbooks/ntp/templates/default/ntp.conf.erb +21 -0
  146. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/README.rdoc +55 -0
  147. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/attributes/rsyslog.rb +24 -0
  148. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/files/default/rsyslog.default +9 -0
  149. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/files/ubuntu-8.04/rsyslog.default +13 -0
  150. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/files/ubuntu-9.10/rsyslog.default +9 -0
  151. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/metadata.json +88 -0
  152. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/metadata.rb +29 -0
  153. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/recipes/client.rb +40 -0
  154. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/recipes/default.rb +61 -0
  155. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/recipes/server.rb +48 -0
  156. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/templates/default/remote.conf.erb +6 -0
  157. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/templates/default/rsyslog.conf.erb +121 -0
  158. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/templates/default/server.conf.erb +58 -0
  159. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/templates/ubuntu-9.10/50-default.conf.erb +69 -0
  160. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/templates/ubuntu-9.10/remote.conf.erb +6 -0
  161. data/examples/chef_cloud/chef-repo/cookbooks/rsyslog/templates/ubuntu-9.10/server.conf.erb +58 -0
  162. data/examples/chef_cloud/chef-repo/cookbooks/runit/attributes/sv_bin.rb +27 -0
  163. data/examples/chef_cloud/chef-repo/cookbooks/runit/definitions/runit_service.rb +75 -0
  164. data/examples/chef_cloud/chef-repo/cookbooks/runit/files/ubuntu-6.10/runsvdir +6 -0
  165. data/examples/chef_cloud/chef-repo/cookbooks/runit/files/ubuntu-7.04/runsvdir +7 -0
  166. data/examples/chef_cloud/chef-repo/cookbooks/runit/files/ubuntu-7.10/runsvdir +7 -0
  167. data/examples/chef_cloud/chef-repo/cookbooks/runit/files/ubuntu-8.04/runsvdir +7 -0
  168. data/examples/chef_cloud/chef-repo/cookbooks/runit/metadata.json +85 -0
  169. data/examples/chef_cloud/chef-repo/cookbooks/runit/metadata.rb +30 -0
  170. data/examples/chef_cloud/chef-repo/cookbooks/runit/recipes/default.rb +46 -0
  171. data/examples/chef_cloud/chef-repo/roles/README +1 -0
  172. data/examples/chef_cloud/chef-repo/roles/chef-upgrade.rb +14 -0
  173. data/examples/chef_cloud/chef-repo/site-cookbooks/README +1 -0
  174. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/README.rdoc +9 -0
  175. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/attributes/collectd.rb +3 -0
  176. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/files/ubuntu/collectd.default +17 -0
  177. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/metadata.rb +6 -0
  178. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/recipes/default.rb +62 -0
  179. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/templates/default/collectd.conf.erb +107 -0
  180. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/templates/default/collection.conf.erb +2 -0
  181. data/examples/chef_cloud/chef-repo/site-cookbooks/collectd/templates/default/collection3.conf.erb +4 -0
  182. data/examples/chef_cloud/chef-repo/site-cookbooks/hosts/attributes/hosts.rb +1 -0
  183. data/examples/chef_cloud/chef-repo/site-cookbooks/hosts/metadata.rb +4 -0
  184. data/examples/chef_cloud/chef-repo/site-cookbooks/hosts/recipes/default.rb +3 -0
  185. data/examples/chef_cloud/chef-repo/site-cookbooks/hosts/templates/default/hosts.erb +18 -0
  186. data/examples/chef_cloud/chef-repo/site-cookbooks/sysadmin/recipes/default.rb +22 -0
  187. data/examples/chef_cloud/chef-repo/site-cookbooks/ubuntu/metadata.json +42 -0
  188. data/examples/chef_cloud/chef-repo/site-cookbooks/ubuntu/metadata.rb +7 -0
  189. data/examples/chef_cloud/chef-repo/site-cookbooks/ubuntu/recipes/default.rb +31 -0
  190. data/examples/chef_cloud/chef-repo/site-cookbooks/ubuntu/templates/default/sources.list.erb +16 -0
  191. data/examples/chef_cloud/sample +2 -0
  192. data/examples/chef_cloud.rb +24 -0
  193. data/examples/ec2_infrastructure_only.rb +80 -0
  194. data/examples/simple.rb +22 -10
  195. data/lib/cloud_providers/cloud_provider.rb +43 -63
  196. data/lib/cloud_providers/connections.rb +29 -11
  197. data/lib/cloud_providers/default/base.rb +4 -0
  198. data/lib/cloud_providers/ec2/ec2.rb +258 -143
  199. data/lib/cloud_providers/ec2/ec2_instance.rb +87 -82
  200. data/lib/cloud_providers/ec2/helpers/authorize.rb +33 -0
  201. data/lib/cloud_providers/ec2/helpers/ec2_helper.rb +30 -0
  202. data/lib/cloud_providers/ec2/helpers/elastic_auto_scaler.rb +300 -0
  203. data/lib/cloud_providers/ec2/helpers/elastic_block_store.rb +9 -0
  204. data/lib/cloud_providers/ec2/helpers/elastic_ip.rb +33 -0
  205. data/lib/cloud_providers/ec2/helpers/elastic_load_balancer.rb +200 -0
  206. data/lib/cloud_providers/ec2/helpers/revoke.rb +24 -0
  207. data/lib/cloud_providers/ec2/helpers/security_group.rb +98 -0
  208. data/lib/cloud_providers/remote_instance.rb +139 -0
  209. data/lib/cloud_providers.rb +4 -4
  210. data/lib/core/array.rb +0 -37
  211. data/lib/core/hash.rb +11 -37
  212. data/lib/core/object.rb +5 -86
  213. data/lib/core/string.rb +1 -103
  214. data/lib/keypair.rb +22 -11
  215. data/lib/poolparty/base.rb +15 -216
  216. data/lib/poolparty/chef_attribute.rb +36 -0
  217. data/lib/poolparty/cloud.rb +222 -260
  218. data/lib/poolparty/pool.rb +18 -171
  219. data/lib/poolparty.rb +6 -25
  220. data/test/fixtures/clouds/simple_cloud.rb +4 -6
  221. data/test/fixtures/ec2/ec2-describe-instances_response_body.xml +2 -2
  222. data/test/fixtures/ec2/elb-describe-load-balancers.xml +75 -0
  223. data/test/fixtures/resources/fake_plugin.rb +5 -0
  224. data/test/lib/core/array_test.rb +1 -34
  225. data/test/lib/core/hash_test.rb +12 -20
  226. data/test/lib/core/object_test.rb +6 -34
  227. data/test/lib/core/string_test.rb +2 -35
  228. data/test/lib/core/symbol_test.rb +0 -4
  229. data/test/lib/poolparty/cloud_test.rb +14 -133
  230. data/test/lib/poolparty/keypair_test.rb +1 -3
  231. data/test/lib/poolparty/pool_test.rb +5 -19
  232. data/test/test_methods.rb +6 -11
  233. data/vendor/gems/amazon-ec2/ChangeLog +289 -0
  234. data/vendor/gems/amazon-ec2/LICENSE +66 -0
  235. data/vendor/gems/amazon-ec2/README.rdoc +356 -0
  236. data/vendor/gems/amazon-ec2/README_dev.rdoc +12 -0
  237. data/vendor/gems/amazon-ec2/Rakefile +101 -0
  238. data/vendor/gems/amazon-ec2/VERSION +1 -0
  239. data/vendor/gems/amazon-ec2/amazon-ec2.gemspec +134 -0
  240. data/vendor/gems/amazon-ec2/bin/ec2-gem-example.rb +137 -0
  241. data/vendor/gems/amazon-ec2/bin/ec2-gem-profile.rb +10 -0
  242. data/vendor/gems/amazon-ec2/bin/ec2sh +62 -0
  243. data/vendor/gems/amazon-ec2/bin/setup.rb +28 -0
  244. data/vendor/gems/amazon-ec2/deps.rip +1 -0
  245. data/vendor/gems/amazon-ec2/lib/AWS/Autoscaling/autoscaling.rb +283 -0
  246. data/vendor/gems/amazon-ec2/lib/AWS/Autoscaling.rb +70 -0
  247. data/vendor/gems/amazon-ec2/lib/AWS/Cloudwatch/monitoring.rb +80 -0
  248. data/vendor/gems/amazon-ec2/lib/AWS/Cloudwatch.rb +32 -0
  249. data/vendor/gems/amazon-ec2/lib/AWS/EC2/availability_zones.rb +21 -0
  250. data/vendor/gems/amazon-ec2/lib/AWS/EC2/console.rb +23 -0
  251. data/vendor/gems/amazon-ec2/lib/AWS/EC2/elastic_ips.rb +81 -0
  252. data/vendor/gems/amazon-ec2/lib/AWS/EC2/image_attributes.rb +133 -0
  253. data/vendor/gems/amazon-ec2/lib/AWS/EC2/images.rb +101 -0
  254. data/vendor/gems/amazon-ec2/lib/AWS/EC2/instances.rb +212 -0
  255. data/vendor/gems/amazon-ec2/lib/AWS/EC2/keypairs.rb +61 -0
  256. data/vendor/gems/amazon-ec2/lib/AWS/EC2/products.rb +21 -0
  257. data/vendor/gems/amazon-ec2/lib/AWS/EC2/security_groups.rb +183 -0
  258. data/vendor/gems/amazon-ec2/lib/AWS/EC2/snapshots.rb +59 -0
  259. data/vendor/gems/amazon-ec2/lib/AWS/EC2/volumes.rb +115 -0
  260. data/vendor/gems/amazon-ec2/lib/AWS/EC2.rb +33 -0
  261. data/vendor/gems/amazon-ec2/lib/AWS/ELB/load_balancers.rb +205 -0
  262. data/vendor/gems/amazon-ec2/lib/AWS/ELB.rb +71 -0
  263. data/vendor/gems/amazon-ec2/lib/AWS/exceptions.rb +122 -0
  264. data/vendor/gems/amazon-ec2/lib/AWS/responses.rb +21 -0
  265. data/vendor/gems/amazon-ec2/lib/AWS.rb +294 -0
  266. data/vendor/gems/amazon-ec2/perftools/ec2prof +0 -0
  267. data/vendor/gems/amazon-ec2/perftools/ec2prof-results.dot +193 -0
  268. data/vendor/gems/amazon-ec2/perftools/ec2prof-results.txt +126 -0
  269. data/vendor/gems/amazon-ec2/perftools/ec2prof.symbols +129 -0
  270. data/vendor/gems/amazon-ec2/test/test_Autoscaling_groups.rb +336 -0
  271. data/vendor/gems/amazon-ec2/test/test_EC2.rb +68 -0
  272. data/vendor/gems/amazon-ec2/test/test_EC2_availability_zones.rb +49 -0
  273. data/vendor/gems/amazon-ec2/test/test_EC2_console.rb +54 -0
  274. data/vendor/gems/amazon-ec2/test/test_EC2_elastic_ips.rb +144 -0
  275. data/vendor/gems/amazon-ec2/test/test_EC2_image_attributes.rb +238 -0
  276. data/vendor/gems/amazon-ec2/test/test_EC2_images.rb +197 -0
  277. data/vendor/gems/amazon-ec2/test/test_EC2_instances.rb +429 -0
  278. data/vendor/gems/amazon-ec2/test/test_EC2_keypairs.rb +123 -0
  279. data/vendor/gems/amazon-ec2/test/test_EC2_products.rb +48 -0
  280. data/vendor/gems/amazon-ec2/test/test_EC2_responses.rb +53 -0
  281. data/vendor/gems/amazon-ec2/test/test_EC2_s3_xmlsimple.rb +80 -0
  282. data/vendor/gems/amazon-ec2/test/test_EC2_security_groups.rb +205 -0
  283. data/vendor/gems/amazon-ec2/test/test_EC2_snapshots.rb +83 -0
  284. data/vendor/gems/amazon-ec2/test/test_EC2_volumes.rb +142 -0
  285. data/vendor/gems/amazon-ec2/test/test_ELB_load_balancers.rb +239 -0
  286. data/vendor/gems/amazon-ec2/test/test_helper.rb +23 -0
  287. data/vendor/gems/amazon-ec2/wsdl/2007-08-29.ec2.wsdl +1269 -0
  288. data/vendor/gems/amazon-ec2/wsdl/2008-02-01.ec2.wsdl +1614 -0
  289. data/vendor/gems/amazon-ec2/wsdl/2008-05-05.ec2.wsdl +2052 -0
  290. data/vendor/gems/amazon-ec2/wsdl/2008-12-01.ec2.wsdl +2354 -0
  291. data/vendor/gems/searchable_paths/README.rdoc +18 -0
  292. data/vendor/gems/searchable_paths/Rakefile +56 -0
  293. data/vendor/gems/searchable_paths/lib/searchable_paths.rb +81 -0
  294. data/vendor/gems/searchable_paths/test/searchable_paths_test.rb +74 -0
  295. data/vendor/gems/searchable_paths/test/test_helper.rb +16 -0
  296. metadata +269 -886
  297. data/bin/cloud-misc +0 -34
  298. data/bin/cloud-osxcopy +0 -26
  299. data/bin/cloud-setup +0 -36
  300. data/bin/cloud-thrift +0 -91
  301. data/bin/cloud-verify +0 -40
  302. data/examples/basic.rb +0 -30
  303. data/examples/custom_bootstrap.sh +0 -7
  304. data/examples/deploy.rb +0 -5
  305. data/examples/eucalyptus.rb +0 -63
  306. data/examples/eucalyptus_test_run.sh +0 -31
  307. data/examples/monitored_cloud.rb +0 -22
  308. data/examples/ssh_garden.rb +0 -21
  309. data/examples/thrift/erlang/Emakefile +0 -5
  310. data/examples/thrift/erlang/Makefile +0 -26
  311. data/examples/thrift/erlang/deps/thrift/COPYING +0 -24
  312. data/examples/thrift/erlang/deps/thrift/LICENSE +0 -24
  313. data/examples/thrift/erlang/deps/thrift/Makefile +0 -18
  314. data/examples/thrift/erlang/deps/thrift/README +0 -31
  315. data/examples/thrift/erlang/deps/thrift/build/beamver +0 -59
  316. data/examples/thrift/erlang/deps/thrift/build/buildtargets.mk +0 -14
  317. data/examples/thrift/erlang/deps/thrift/build/colors.mk +0 -24
  318. data/examples/thrift/erlang/deps/thrift/build/docs.mk +0 -12
  319. data/examples/thrift/erlang/deps/thrift/build/mime.types +0 -98
  320. data/examples/thrift/erlang/deps/thrift/build/otp.mk +0 -146
  321. data/examples/thrift/erlang/deps/thrift/build/otp_subdir.mk +0 -85
  322. data/examples/thrift/erlang/deps/thrift/build/raw_test.mk +0 -29
  323. data/examples/thrift/erlang/deps/thrift/ebin/thrift.app +0 -44
  324. data/examples/thrift/erlang/deps/thrift/ebin/thrift.appup +0 -1
  325. data/examples/thrift/erlang/deps/thrift/include/thrift_constants.hrl +0 -40
  326. data/examples/thrift/erlang/deps/thrift/include/thrift_protocol.hrl +0 -12
  327. data/examples/thrift/erlang/deps/thrift/src/Makefile +0 -116
  328. data/examples/thrift/erlang/deps/thrift/src/test_handler.erl +0 -7
  329. data/examples/thrift/erlang/deps/thrift/src/test_service.erl +0 -10
  330. data/examples/thrift/erlang/deps/thrift/src/thrift.app.src +0 -44
  331. data/examples/thrift/erlang/deps/thrift/src/thrift.appup.src +0 -1
  332. data/examples/thrift/erlang/deps/thrift/src/thrift_app.erl +0 -55
  333. data/examples/thrift/erlang/deps/thrift/src/thrift_base64_transport.erl +0 -45
  334. data/examples/thrift/erlang/deps/thrift/src/thrift_binary_protocol.erl +0 -318
  335. data/examples/thrift/erlang/deps/thrift/src/thrift_buffered_transport.erl +0 -168
  336. data/examples/thrift/erlang/deps/thrift/src/thrift_client.erl +0 -328
  337. data/examples/thrift/erlang/deps/thrift/src/thrift_disk_log_transport.erl +0 -106
  338. data/examples/thrift/erlang/deps/thrift/src/thrift_file_transport.erl +0 -69
  339. data/examples/thrift/erlang/deps/thrift/src/thrift_framed_transport.erl +0 -196
  340. data/examples/thrift/erlang/deps/thrift/src/thrift_http_transport.erl +0 -169
  341. data/examples/thrift/erlang/deps/thrift/src/thrift_processor.erl +0 -174
  342. data/examples/thrift/erlang/deps/thrift/src/thrift_protocol.erl +0 -326
  343. data/examples/thrift/erlang/deps/thrift/src/thrift_server.erl +0 -171
  344. data/examples/thrift/erlang/deps/thrift/src/thrift_service.erl +0 -6
  345. data/examples/thrift/erlang/deps/thrift/src/thrift_socket_server.erl +0 -245
  346. data/examples/thrift/erlang/deps/thrift/src/thrift_socket_transport.erl +0 -100
  347. data/examples/thrift/erlang/deps/thrift/src/thrift_sup.erl +0 -53
  348. data/examples/thrift/erlang/deps/thrift/src/thrift_transport.erl +0 -38
  349. data/examples/thrift/erlang/deps/thrift/vsn.mk +0 -1
  350. data/examples/thrift/erlang/include/commandInterface_thrift.hrl +0 -5
  351. data/examples/thrift/erlang/include/poolparty_constants.hrl +0 -9
  352. data/examples/thrift/erlang/include/poolparty_types.hrl +0 -8
  353. data/examples/thrift/erlang/src/commandInterface_thrift.erl +0 -29
  354. data/examples/thrift/erlang/src/poolparty_types.erl +0 -30
  355. data/examples/thrift/erlang/src/thrift_example.erl +0 -32
  356. data/examples/thrift/thrift_example.py +0 -28
  357. data/examples/thrift/thrift_example.rb +0 -40
  358. data/examples/vmware.rb +0 -28
  359. data/lib/cloud_providers/cloud_provider_instance.rb +0 -288
  360. data/lib/cloud_providers/ec2/ec2_helpers.rb +0 -100
  361. data/lib/cloud_providers/ec2/ec2_response.rb +0 -79
  362. data/lib/cloud_providers/ssh/ssh.rb +0 -68
  363. data/lib/cloud_providers/ssh/ssh_instance.rb +0 -41
  364. data/lib/cloud_providers/vmware/vmware.rb +0 -130
  365. data/lib/cloud_providers/vmware/vmware_instance.rb +0 -56
  366. data/lib/core/file.rb +0 -12
  367. data/lib/core/integer.rb +0 -11
  368. data/lib/core/module.rb +0 -14
  369. data/lib/core/proc.rb +0 -55
  370. data/lib/core/time.rb +0 -62
  371. data/lib/dependency_resolver.rb +0 -11
  372. data/lib/dependency_resolvers/base.rb +0 -115
  373. data/lib/dependency_resolvers/chef/resources/chef_attributes_file.rb +0 -51
  374. data/lib/dependency_resolvers/chef/resources/chef_recipe.rb +0 -51
  375. data/lib/dependency_resolvers/chef/resources/http_request.rb +0 -39
  376. data/lib/dependency_resolvers/chef/resources/remote_directory.rb +0 -54
  377. data/lib/dependency_resolvers/chef/resources/remote_file.rb +0 -69
  378. data/lib/dependency_resolvers/chef/resources/route.rb +0 -52
  379. data/lib/dependency_resolvers/chef/resources/script.rb +0 -62
  380. data/lib/dependency_resolvers/chef.rb +0 -239
  381. data/lib/dependency_resolvers/proxy_object.rb +0 -98
  382. data/lib/mixins/askable.rb +0 -163
  383. data/lib/mixins/callbacks.rb +0 -56
  384. data/lib/mixins/delayed.rb +0 -65
  385. data/lib/mixins/pinger.rb +0 -31
  386. data/lib/mixins/printing.rb +0 -35
  387. data/lib/mixins/searchable_paths.rb +0 -87
  388. data/lib/poolparty/default.rb +0 -33
  389. data/lib/poolparty/dsl_base.rb +0 -36
  390. data/lib/poolparty/installer.rb +0 -111
  391. data/lib/poolparty/installers/ec2.rb +0 -88
  392. data/lib/poolparty/installers/vmware.rb +0 -161
  393. data/lib/poolparty/monitor.rb +0 -83
  394. data/lib/poolparty/plugin.rb +0 -8
  395. data/lib/poolparty/plugins/apache.rb +0 -228
  396. data/lib/poolparty/plugins/apache2/apache2.conf.erb +0 -630
  397. data/lib/poolparty/plugins/apache2/base.conf.erb +0 -171
  398. data/lib/poolparty/plugins/apache2/browser_fixes.conf.erb +0 -26
  399. data/lib/poolparty/plugins/apache2/default-site.conf.erb +0 -41
  400. data/lib/poolparty/plugins/apache2/mime-minimal.conf.erb +0 -15
  401. data/lib/poolparty/plugins/apache2/passenger_site.rb +0 -83
  402. data/lib/poolparty/plugins/apache2/php5.rb +0 -41
  403. data/lib/poolparty/plugins/apache2/virtual_host.rb +0 -59
  404. data/lib/poolparty/plugins/collectd/templates/collectd.conf.erb +0 -369
  405. data/lib/poolparty/plugins/collectd.rb +0 -24
  406. data/lib/poolparty/plugins/git/git_repository.rb +0 -83
  407. data/lib/poolparty/plugins/git.rb +0 -20
  408. data/lib/poolparty/plugins/hermes.rb +0 -102
  409. data/lib/poolparty/plugins/rails/app.rb +0 -29
  410. data/lib/poolparty/plugins/rails.rb +0 -25
  411. data/lib/poolparty/pool_party_log.rb +0 -47
  412. data/lib/poolparty/resource.rb +0 -296
  413. data/lib/poolparty/resources/conditional.rb +0 -65
  414. data/lib/poolparty/resources/cron.rb +0 -64
  415. data/lib/poolparty/resources/directory.rb +0 -54
  416. data/lib/poolparty/resources/exec.rb +0 -61
  417. data/lib/poolparty/resources/file.rb +0 -87
  418. data/lib/poolparty/resources/gem_package.rb +0 -55
  419. data/lib/poolparty/resources/group.rb +0 -46
  420. data/lib/poolparty/resources/line.rb +0 -67
  421. data/lib/poolparty/resources/link.rb +0 -50
  422. data/lib/poolparty/resources/mount.rb +0 -57
  423. data/lib/poolparty/resources/package.rb +0 -55
  424. data/lib/poolparty/resources/service.rb +0 -58
  425. data/lib/poolparty/resources/user.rb +0 -63
  426. data/lib/poolparty/resources/variable.rb +0 -61
  427. data/lib/proto/command_interface_handler.rb +0 -66
  428. data/lib/proto/command_query_handler.rb +0 -19
  429. data/lib/proto/gen-erl/commandInterface_thrift.erl +0 -29
  430. data/lib/proto/gen-erl/commandInterface_thrift.hrl +0 -5
  431. data/lib/proto/gen-erl/poolparty_constants.hrl +0 -9
  432. data/lib/proto/gen-erl/poolparty_types.erl +0 -30
  433. data/lib/proto/gen-erl/poolparty_types.hrl +0 -8
  434. data/lib/proto/gen-py/cloudthrift/CommandInterface-remote +0 -79
  435. data/lib/proto/gen-py/cloudthrift/CommandInterface.py +0 -251
  436. data/lib/proto/gen-py/cloudthrift/CommandInterface.pyc +0 -0
  437. data/lib/proto/gen-py/cloudthrift/__init__.py +0 -1
  438. data/lib/proto/gen-py/cloudthrift/__init__.pyc +0 -0
  439. data/lib/proto/gen-py/cloudthrift/constants.py +0 -9
  440. data/lib/proto/gen-py/cloudthrift/constants.pyc +0 -0
  441. data/lib/proto/gen-py/cloudthrift/ttypes.py +0 -160
  442. data/lib/proto/gen-py/cloudthrift/ttypes.pyc +0 -0
  443. data/lib/proto/gen-py/thrift/TSCons.py +0 -33
  444. data/lib/proto/gen-py/thrift/Thrift.py +0 -123
  445. data/lib/proto/gen-py/thrift/Thrift.pyc +0 -0
  446. data/lib/proto/gen-py/thrift/__init__.py +0 -20
  447. data/lib/proto/gen-py/thrift/__init__.pyc +0 -0
  448. data/lib/proto/gen-py/thrift/protocol/TBinaryProtocol.py +0 -259
  449. data/lib/proto/gen-py/thrift/protocol/TBinaryProtocol.pyc +0 -0
  450. data/lib/proto/gen-py/thrift/protocol/TProtocol.py +0 -205
  451. data/lib/proto/gen-py/thrift/protocol/TProtocol.pyc +0 -0
  452. data/lib/proto/gen-py/thrift/protocol/__init__.py +0 -20
  453. data/lib/proto/gen-py/thrift/protocol/__init__.pyc +0 -0
  454. data/lib/proto/gen-py/thrift/protocol/fastbinary.c +0 -1203
  455. data/lib/proto/gen-py/thrift/server/THttpServer.py +0 -63
  456. data/lib/proto/gen-py/thrift/server/TNonblockingServer.py +0 -309
  457. data/lib/proto/gen-py/thrift/server/TServer.py +0 -270
  458. data/lib/proto/gen-py/thrift/server/__init__.py +0 -20
  459. data/lib/proto/gen-py/thrift/transport/THttpClient.py +0 -100
  460. data/lib/proto/gen-py/thrift/transport/TSocket.py +0 -149
  461. data/lib/proto/gen-py/thrift/transport/TSocket.pyc +0 -0
  462. data/lib/proto/gen-py/thrift/transport/TTransport.py +0 -326
  463. data/lib/proto/gen-py/thrift/transport/TTransport.pyc +0 -0
  464. data/lib/proto/gen-py/thrift/transport/TTwisted.py +0 -181
  465. data/lib/proto/gen-py/thrift/transport/__init__.py +0 -20
  466. data/lib/proto/gen-py/thrift/transport/__init__.pyc +0 -0
  467. data/lib/proto/gen-rb/command_interface.rb +0 -84
  468. data/lib/proto/gen-rb/poolparty_constants.rb +0 -10
  469. data/lib/proto/gen-rb/poolparty_types.rb +0 -45
  470. data/lib/proto/poolparty.thrift +0 -18
  471. data/lib/provision/bootstrap_scripts/build_centos.sh +0 -72
  472. data/lib/provision/bootstrap_scripts/build_ubuntu.sh +0 -76
  473. data/lib/provision/bootstrap_scripts/determine_os.sh +0 -21
  474. data/lib/provision/bootstrapper.rb +0 -44
  475. data/lib/provision/configure_scripts/configure_centos.erb +0 -7
  476. data/lib/provision/configure_scripts/configure_ubuntu.erb +0 -7
  477. data/tasks/development.rake +0 -91
  478. data/tasks/poolparty.rake +0 -118
  479. data/tasks/test.rake +0 -40
  480. data/test/fixtures/clouds/fake_clouds.rb +0 -9
  481. data/test/lib/cloud_providers/cloud_provider_instance_test.rb +0 -68
  482. data/test/lib/cloud_providers/cloud_provider_test.rb +0 -25
  483. data/test/lib/cloud_providers/connections_test.rb +0 -71
  484. data/test/lib/cloud_providers/ec2/ec2_helpers_test.rb +0 -29
  485. data/test/lib/cloud_providers/ec2/ec2_instance_test.rb +0 -68
  486. data/test/lib/cloud_providers/ec2/ec2_response_test.rb +0 -41
  487. data/test/lib/cloud_providers/ec2/ec2_test.rb +0 -120
  488. data/test/lib/cloud_providers/ssh/ssh_test.rb +0 -61
  489. data/test/lib/cloud_providers/vmware/vmware_test.rb +0 -46
  490. data/test/lib/core/integer_test.rb +0 -19
  491. data/test/lib/core/module_test.rb +0 -38
  492. data/test/lib/core/proc_test.rb +0 -26
  493. data/test/lib/core/time_test.rb +0 -51
  494. data/test/lib/dependency_resolvers/base_test.rb +0 -42
  495. data/test/lib/dependency_resolvers/chef/resources/chef_recipe_test.rb +0 -21
  496. data/test/lib/dependency_resolvers/chef/resources/http_request_test.rb +0 -29
  497. data/test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb +0 -45
  498. data/test/lib/dependency_resolvers/chef/resources/remote_file_test.rb +0 -36
  499. data/test/lib/dependency_resolvers/chef/resources/route_test.rb +0 -37
  500. data/test/lib/dependency_resolvers/chef/resources/script_test.rb +0 -49
  501. data/test/lib/dependency_resolvers/chef_test.rb +0 -136
  502. data/test/lib/dependency_resolvers/proxy_object_test.rb +0 -75
  503. data/test/lib/mixins/callbacks_test.rb +0 -48
  504. data/test/lib/mixins/delayed_test.rb +0 -50
  505. data/test/lib/mixins/searchable_paths_test.rb +0 -83
  506. data/test/lib/poolparty/base_test.rb +0 -47
  507. data/test/lib/poolparty/default_test.rb +0 -17
  508. data/test/lib/poolparty/dsl_base_test.rb +0 -30
  509. data/test/lib/poolparty/installers/vmware_installer_test.rb +0 -16
  510. data/test/lib/poolparty/monitor_test.rb +0 -57
  511. data/test/lib/poolparty/plugins/apache2/php5_test.rb +0 -26
  512. data/test/lib/poolparty/plugins/apache2/virtual_host_test.rb +0 -28
  513. data/test/lib/poolparty/plugins/apache_test.rb +0 -35
  514. data/test/lib/poolparty/pool_party_log_test.rb +0 -17
  515. data/test/lib/poolparty/resource_test.rb +0 -162
  516. data/test/lib/poolparty/resources/conditional_test.rb +0 -50
  517. data/test/lib/poolparty/resources/cron_test.rb +0 -31
  518. data/test/lib/poolparty/resources/directory_test.rb +0 -21
  519. data/test/lib/poolparty/resources/exec_test.rb +0 -62
  520. data/test/lib/poolparty/resources/file_test.rb +0 -38
  521. data/test/lib/poolparty/resources/group_test.rb +0 -21
  522. data/test/lib/poolparty/resources/line_test.rb +0 -20
  523. data/test/lib/poolparty/resources/link_test.rb +0 -27
  524. data/test/lib/poolparty/resources/mount_test.rb +0 -32
  525. data/test/lib/poolparty/resources/package_test.rb +0 -28
  526. data/test/lib/poolparty/resources/service_test.rb +0 -31
  527. data/test/lib/poolparty/resources/user_test.rb +0 -33
  528. data/test/lib/poolparty/resources/variable_test.rb +0 -43
  529. data/test/lib/proto/command_query_handler_test.rb +0 -11
  530. data/test/lib/provision/base_test.rb +0 -16
  531. data/test/lib/provision/bootstrapper_test.rb +0 -19
  532. data/vendor/chef/apache2/README.rdoc +0 -59
  533. data/vendor/chef/apache2/attributes/apache.rb +0 -72
  534. data/vendor/chef/apache2/definitions/apache_module.rb +0 -36
  535. data/vendor/chef/apache2/definitions/apache_site.rb +0 -36
  536. data/vendor/chef/apache2/definitions/web_app.rb +0 -45
  537. data/vendor/chef/apache2/files/default/apache2_module_conf_generate.pl +0 -41
  538. data/vendor/chef/apache2/recipes/default.rb +0 -132
  539. data/vendor/chef/apache2/recipes/mod_alias.rb +0 -20
  540. data/vendor/chef/apache2/recipes/mod_auth_basic.rb +0 -20
  541. data/vendor/chef/apache2/recipes/mod_auth_digest.rb +0 -20
  542. data/vendor/chef/apache2/recipes/mod_authn_file.rb +0 -20
  543. data/vendor/chef/apache2/recipes/mod_authnz_ldap.rb +0 -20
  544. data/vendor/chef/apache2/recipes/mod_authz_default.rb +0 -20
  545. data/vendor/chef/apache2/recipes/mod_authz_groupfile.rb +0 -20
  546. data/vendor/chef/apache2/recipes/mod_authz_host.rb +0 -20
  547. data/vendor/chef/apache2/recipes/mod_authz_user.rb +0 -20
  548. data/vendor/chef/apache2/recipes/mod_autoindex.rb +0 -20
  549. data/vendor/chef/apache2/recipes/mod_cgi.rb +0 -20
  550. data/vendor/chef/apache2/recipes/mod_dav.rb +0 -20
  551. data/vendor/chef/apache2/recipes/mod_dav_svn.rb +0 -20
  552. data/vendor/chef/apache2/recipes/mod_deflate.rb +0 -20
  553. data/vendor/chef/apache2/recipes/mod_dir.rb +0 -20
  554. data/vendor/chef/apache2/recipes/mod_env.rb +0 -20
  555. data/vendor/chef/apache2/recipes/mod_expires.rb +0 -20
  556. data/vendor/chef/apache2/recipes/mod_fcgid.rb +0 -35
  557. data/vendor/chef/apache2/recipes/mod_headers.rb +0 -20
  558. data/vendor/chef/apache2/recipes/mod_ldap.rb +0 -20
  559. data/vendor/chef/apache2/recipes/mod_log_config.rb +0 -20
  560. data/vendor/chef/apache2/recipes/mod_mime.rb +0 -20
  561. data/vendor/chef/apache2/recipes/mod_negotiation.rb +0 -20
  562. data/vendor/chef/apache2/recipes/mod_php5.rb +0 -27
  563. data/vendor/chef/apache2/recipes/mod_proxy.rb +0 -20
  564. data/vendor/chef/apache2/recipes/mod_proxy_http.rb +0 -20
  565. data/vendor/chef/apache2/recipes/mod_python.rb +0 -22
  566. data/vendor/chef/apache2/recipes/mod_rewrite.rb +0 -20
  567. data/vendor/chef/apache2/recipes/mod_setenvif.rb +0 -20
  568. data/vendor/chef/apache2/recipes/mod_ssl.rb +0 -20
  569. data/vendor/chef/apache2/recipes/mod_status.rb +0 -20
  570. data/vendor/chef/apache2/templates/default/a2enmod.erb +0 -37
  571. data/vendor/chef/apache2/templates/default/apache2.conf.erb +0 -630
  572. data/vendor/chef/apache2/templates/default/default-site.erb +0 -45
  573. data/vendor/chef/chef-deploy/LICENSE +0 -201
  574. data/vendor/chef/chef-deploy/README.rdoc +0 -24
  575. data/vendor/chef/chef-deploy/Rakefile +0 -57
  576. data/vendor/chef/chef-deploy/TODO +0 -4
  577. data/vendor/chef/chef-deploy/lib/chef-deploy/cached_deploy.rb +0 -230
  578. data/vendor/chef/chef-deploy/lib/chef-deploy/git.rb +0 -132
  579. data/vendor/chef/chef-deploy/lib/chef-deploy/subversion.rb +0 -98
  580. data/vendor/chef/chef-deploy/lib/chef-deploy.rb +0 -183
  581. data/vendor/gems/colors/README.rdoc +0 -52
  582. data/vendor/gems/colors/Rakefile +0 -56
  583. data/vendor/gems/colors/VERSION.yml +0 -4
  584. data/vendor/gems/colors/colors.gemspec +0 -29
  585. data/vendor/gems/colors/lib/colors.rb +0 -45
  586. data/vendor/gems/colors/test/colors_test.rb +0 -26
  587. data/vendor/gems/colors/test/test_helper.rb +0 -10
  588. data/vendor/gems/context/History.txt +0 -10
  589. data/vendor/gems/context/License.txt +0 -20
  590. data/vendor/gems/context/Manifest.txt +0 -26
  591. data/vendor/gems/context/README.rdoc +0 -158
  592. data/vendor/gems/context/Rakefile +0 -4
  593. data/vendor/gems/context/config/hoe.rb +0 -73
  594. data/vendor/gems/context/config/requirements.rb +0 -15
  595. data/vendor/gems/context/context.gemspec +0 -44
  596. data/vendor/gems/context/countloc.rb +0 -65
  597. data/vendor/gems/context/coverage/-Library-Ruby-Gems-1_8-gems-rcov-0_8_1_2_0-lib-rcov_rb.html +0 -1598
  598. data/vendor/gems/context/coverage/index.html +0 -441
  599. data/vendor/gems/context/coverage/lib-context-context_rb.html +0 -669
  600. data/vendor/gems/context/coverage/lib-context-core_ext-string_rb.html +0 -627
  601. data/vendor/gems/context/coverage/lib-context-lifecycle_rb.html +0 -683
  602. data/vendor/gems/context/coverage/lib-context-shared_behavior_rb.html +0 -708
  603. data/vendor/gems/context/coverage/lib-context-suite_rb.html +0 -649
  604. data/vendor/gems/context/coverage/lib-context-test_rb.html +0 -637
  605. data/vendor/gems/context/coverage/lib-context-version_rb.html +0 -619
  606. data/vendor/gems/context/coverage/lib-context_rb.html +0 -623
  607. data/vendor/gems/context/lib/context/context.rb +0 -64
  608. data/vendor/gems/context/lib/context/core_ext/rails_hacks.rb +0 -10
  609. data/vendor/gems/context/lib/context/core_ext/string.rb +0 -17
  610. data/vendor/gems/context/lib/context/lifecycle.rb +0 -103
  611. data/vendor/gems/context/lib/context/shared_behavior.rb +0 -98
  612. data/vendor/gems/context/lib/context/suite.rb +0 -39
  613. data/vendor/gems/context/lib/context/test.rb +0 -37
  614. data/vendor/gems/context/lib/context/version.rb +0 -9
  615. data/vendor/gems/context/lib/context.rb +0 -19
  616. data/vendor/gems/context/setup.rb +0 -1585
  617. data/vendor/gems/context/tasks/deployment.rake +0 -34
  618. data/vendor/gems/context/tasks/environment.rake +0 -7
  619. data/vendor/gems/context/test/test_context.rb +0 -57
  620. data/vendor/gems/context/test/test_core_ext.rb +0 -21
  621. data/vendor/gems/context/test/test_helper.rb +0 -2
  622. data/vendor/gems/context/test/test_lifecycle.rb +0 -224
  623. data/vendor/gems/context/test/test_nested_lifecycle.rb +0 -44
  624. data/vendor/gems/context/test/test_shared.rb +0 -116
  625. data/vendor/gems/context/test/test_test.rb +0 -23
  626. data/vendor/gems/daemons/LICENSE +0 -29
  627. data/vendor/gems/daemons/README +0 -223
  628. data/vendor/gems/daemons/Rakefile +0 -84
  629. data/vendor/gems/daemons/Releases +0 -126
  630. data/vendor/gems/daemons/TODO +0 -6
  631. data/vendor/gems/daemons/examples/call/call.rb +0 -56
  632. data/vendor/gems/daemons/examples/call/call_monitor.rb +0 -55
  633. data/vendor/gems/daemons/examples/daemonize/daemonize.rb +0 -20
  634. data/vendor/gems/daemons/examples/run/ctrl_crash.rb +0 -17
  635. data/vendor/gems/daemons/examples/run/ctrl_exec.rb +0 -16
  636. data/vendor/gems/daemons/examples/run/ctrl_exit.rb +0 -15
  637. data/vendor/gems/daemons/examples/run/ctrl_keep_pid_files.rb +0 -17
  638. data/vendor/gems/daemons/examples/run/ctrl_monitor.rb +0 -16
  639. data/vendor/gems/daemons/examples/run/ctrl_multiple.rb +0 -16
  640. data/vendor/gems/daemons/examples/run/ctrl_normal.rb +0 -12
  641. data/vendor/gems/daemons/examples/run/ctrl_ontop.rb +0 -16
  642. data/vendor/gems/daemons/examples/run/ctrl_optionparser.rb +0 -43
  643. data/vendor/gems/daemons/examples/run/ctrl_proc.rb +0 -25
  644. data/vendor/gems/daemons/examples/run/ctrl_proc.rb.output +0 -101
  645. data/vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb +0 -22
  646. data/vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb.output +0 -2
  647. data/vendor/gems/daemons/examples/run/ctrl_proc_simple.rb +0 -17
  648. data/vendor/gems/daemons/examples/run/myserver.rb +0 -12
  649. data/vendor/gems/daemons/examples/run/myserver_crashing.rb +0 -14
  650. data/vendor/gems/daemons/examples/run/myserver_crashing.rb.output +0 -30
  651. data/vendor/gems/daemons/examples/run/myserver_exiting.rb +0 -8
  652. data/vendor/gems/daemons/lib/daemons/application.rb +0 -372
  653. data/vendor/gems/daemons/lib/daemons/application_group.rb +0 -152
  654. data/vendor/gems/daemons/lib/daemons/cmdline.rb +0 -117
  655. data/vendor/gems/daemons/lib/daemons/controller.rb +0 -134
  656. data/vendor/gems/daemons/lib/daemons/daemonize.rb +0 -263
  657. data/vendor/gems/daemons/lib/daemons/exceptions.rb +0 -28
  658. data/vendor/gems/daemons/lib/daemons/monitor.rb +0 -127
  659. data/vendor/gems/daemons/lib/daemons/pid.rb +0 -101
  660. data/vendor/gems/daemons/lib/daemons/pidfile.rb +0 -111
  661. data/vendor/gems/daemons/lib/daemons/pidmem.rb +0 -10
  662. data/vendor/gems/daemons/lib/daemons.rb +0 -283
  663. data/vendor/gems/daemons/setup.rb +0 -1360
  664. data/vendor/gems/fakeweb/CHANGELOG +0 -163
  665. data/vendor/gems/fakeweb/LICENSE.txt +0 -281
  666. data/vendor/gems/fakeweb/README.rdoc +0 -193
  667. data/vendor/gems/fakeweb/Rakefile +0 -76
  668. data/vendor/gems/fakeweb/fakeweb.gemspec +0 -21
  669. data/vendor/gems/fakeweb/lib/fake_web/ext/net_http.rb +0 -71
  670. data/vendor/gems/fakeweb/lib/fake_web/registry.rb +0 -103
  671. data/vendor/gems/fakeweb/lib/fake_web/responder.rb +0 -113
  672. data/vendor/gems/fakeweb/lib/fake_web/response.rb +0 -10
  673. data/vendor/gems/fakeweb/lib/fake_web/stub_socket.rb +0 -15
  674. data/vendor/gems/fakeweb/lib/fake_web/utility.rb +0 -22
  675. data/vendor/gems/fakeweb/lib/fake_web.rb +0 -172
  676. data/vendor/gems/fakeweb/lib/fakeweb.rb +0 -2
  677. data/vendor/gems/fakeweb/test/fixtures/google_response_from_curl +0 -12
  678. data/vendor/gems/fakeweb/test/fixtures/google_response_with_transfer_encoding +0 -17
  679. data/vendor/gems/fakeweb/test/fixtures/google_response_without_transfer_encoding +0 -11
  680. data/vendor/gems/fakeweb/test/fixtures/test_example.txt +0 -1
  681. data/vendor/gems/fakeweb/test/fixtures/test_txt_file +0 -3
  682. data/vendor/gems/fakeweb/test/test_allow_net_connect.rb +0 -85
  683. data/vendor/gems/fakeweb/test/test_deprecations.rb +0 -54
  684. data/vendor/gems/fakeweb/test/test_fake_authentication.rb +0 -92
  685. data/vendor/gems/fakeweb/test/test_fake_web.rb +0 -518
  686. data/vendor/gems/fakeweb/test/test_fake_web_open_uri.rb +0 -58
  687. data/vendor/gems/fakeweb/test/test_helper.rb +0 -74
  688. data/vendor/gems/fakeweb/test/test_missing_open_uri.rb +0 -25
  689. data/vendor/gems/fakeweb/test/test_precedence.rb +0 -51
  690. data/vendor/gems/fakeweb/test/test_query_string.rb +0 -45
  691. data/vendor/gems/fakeweb/test/test_regexes.rb +0 -103
  692. data/vendor/gems/fakeweb/test/test_response_headers.rb +0 -73
  693. data/vendor/gems/fakeweb/test/test_trailing_slashes.rb +0 -53
  694. data/vendor/gems/fakeweb/test/test_utility.rb +0 -70
  695. data/vendor/gems/gratr/Grater.xcf +0 -0
  696. data/vendor/gems/gratr/README +0 -335
  697. data/vendor/gems/gratr/Rakefile +0 -220
  698. data/vendor/gems/gratr/examples/graph_self.rb +0 -54
  699. data/vendor/gems/gratr/examples/module_graph.jpg +0 -0
  700. data/vendor/gems/gratr/examples/module_graph.rb +0 -12
  701. data/vendor/gems/gratr/examples/self_graph.dot +0 -117
  702. data/vendor/gems/gratr/examples/self_graph.jpg +0 -0
  703. data/vendor/gems/gratr/examples/visualize.dot +0 -58
  704. data/vendor/gems/gratr/examples/visualize.jpg +0 -0
  705. data/vendor/gems/gratr/examples/visualize.rb +0 -11
  706. data/vendor/gems/gratr/install.rb +0 -49
  707. data/vendor/gems/gratr/lib/gratr/adjacency_graph.rb +0 -230
  708. data/vendor/gems/gratr/lib/gratr/base.rb +0 -34
  709. data/vendor/gems/gratr/lib/gratr/biconnected.rb +0 -116
  710. data/vendor/gems/gratr/lib/gratr/chinese_postman.rb +0 -123
  711. data/vendor/gems/gratr/lib/gratr/common.rb +0 -73
  712. data/vendor/gems/gratr/lib/gratr/comparability.rb +0 -92
  713. data/vendor/gems/gratr/lib/gratr/digraph.rb +0 -115
  714. data/vendor/gems/gratr/lib/gratr/digraph_distance.rb +0 -185
  715. data/vendor/gems/gratr/lib/gratr/dot.rb +0 -95
  716. data/vendor/gems/gratr/lib/gratr/edge.rb +0 -145
  717. data/vendor/gems/gratr/lib/gratr/graph.rb +0 -315
  718. data/vendor/gems/gratr/lib/gratr/graph_api.rb +0 -82
  719. data/vendor/gems/gratr/lib/gratr/import.rb +0 -44
  720. data/vendor/gems/gratr/lib/gratr/labels.rb +0 -103
  721. data/vendor/gems/gratr/lib/gratr/maximum_flow.rb +0 -107
  722. data/vendor/gems/gratr/lib/gratr/rdot.rb +0 -332
  723. data/vendor/gems/gratr/lib/gratr/search.rb +0 -422
  724. data/vendor/gems/gratr/lib/gratr/strong_components.rb +0 -127
  725. data/vendor/gems/gratr/lib/gratr/undirected_graph.rb +0 -153
  726. data/vendor/gems/gratr/lib/gratr.rb +0 -42
  727. data/vendor/gems/gratr/lib/priority-queue/benchmark/dijkstra.rb +0 -171
  728. data/vendor/gems/gratr/lib/priority-queue/compare_comments.rb +0 -49
  729. data/vendor/gems/gratr/lib/priority-queue/ext/priority_queue/CPriorityQueue/extconf.rb +0 -2
  730. data/vendor/gems/gratr/lib/priority-queue/lib/priority_queue/c_priority_queue.rb +0 -1
  731. data/vendor/gems/gratr/lib/priority-queue/lib/priority_queue/poor_priority_queue.rb +0 -46
  732. data/vendor/gems/gratr/lib/priority-queue/lib/priority_queue/ruby_priority_queue.rb +0 -525
  733. data/vendor/gems/gratr/lib/priority-queue/lib/priority_queue.rb +0 -14
  734. data/vendor/gems/gratr/lib/priority-queue/setup.rb +0 -1551
  735. data/vendor/gems/gratr/lib/priority-queue/test/priority_queue_test.rb +0 -371
  736. data/vendor/gems/gratr/tests/TestBiconnected.rb +0 -53
  737. data/vendor/gems/gratr/tests/TestChinesePostman.rb +0 -53
  738. data/vendor/gems/gratr/tests/TestComplement.rb +0 -54
  739. data/vendor/gems/gratr/tests/TestDigraph.rb +0 -333
  740. data/vendor/gems/gratr/tests/TestDigraphDistance.rb +0 -138
  741. data/vendor/gems/gratr/tests/TestDot.rb +0 -75
  742. data/vendor/gems/gratr/tests/TestEdge.rb +0 -171
  743. data/vendor/gems/gratr/tests/TestInspection.rb +0 -57
  744. data/vendor/gems/gratr/tests/TestMultiEdge.rb +0 -57
  745. data/vendor/gems/gratr/tests/TestNeighborhood.rb +0 -64
  746. data/vendor/gems/gratr/tests/TestProperties.rb +0 -160
  747. data/vendor/gems/gratr/tests/TestSearch.rb +0 -277
  748. data/vendor/gems/gratr/tests/TestStrongComponents.rb +0 -85
  749. data/vendor/gems/gratr/tests/TestTriagulated.rb +0 -137
  750. data/vendor/gems/gratr/tests/TestUndirectedGraph.rb +0 -219
  751. data/vendor/gems/net-ssh/CHANGELOG.rdoc +0 -127
  752. data/vendor/gems/net-ssh/Manifest +0 -104
  753. data/vendor/gems/net-ssh/README.rdoc +0 -110
  754. data/vendor/gems/net-ssh/Rakefile +0 -26
  755. data/vendor/gems/net-ssh/THANKS.rdoc +0 -16
  756. data/vendor/gems/net-ssh/lib/net/ssh/authentication/agent.rb +0 -176
  757. data/vendor/gems/net-ssh/lib/net/ssh/authentication/constants.rb +0 -18
  758. data/vendor/gems/net-ssh/lib/net/ssh/authentication/key_manager.rb +0 -193
  759. data/vendor/gems/net-ssh/lib/net/ssh/authentication/methods/abstract.rb +0 -60
  760. data/vendor/gems/net-ssh/lib/net/ssh/authentication/methods/hostbased.rb +0 -71
  761. data/vendor/gems/net-ssh/lib/net/ssh/authentication/methods/keyboard_interactive.rb +0 -66
  762. data/vendor/gems/net-ssh/lib/net/ssh/authentication/methods/password.rb +0 -39
  763. data/vendor/gems/net-ssh/lib/net/ssh/authentication/methods/publickey.rb +0 -92
  764. data/vendor/gems/net-ssh/lib/net/ssh/authentication/pageant.rb +0 -183
  765. data/vendor/gems/net-ssh/lib/net/ssh/authentication/session.rb +0 -134
  766. data/vendor/gems/net-ssh/lib/net/ssh/buffer.rb +0 -340
  767. data/vendor/gems/net-ssh/lib/net/ssh/buffered_io.rb +0 -149
  768. data/vendor/gems/net-ssh/lib/net/ssh/config.rb +0 -181
  769. data/vendor/gems/net-ssh/lib/net/ssh/connection/channel.rb +0 -625
  770. data/vendor/gems/net-ssh/lib/net/ssh/connection/constants.rb +0 -33
  771. data/vendor/gems/net-ssh/lib/net/ssh/connection/session.rb +0 -596
  772. data/vendor/gems/net-ssh/lib/net/ssh/connection/term.rb +0 -178
  773. data/vendor/gems/net-ssh/lib/net/ssh/errors.rb +0 -85
  774. data/vendor/gems/net-ssh/lib/net/ssh/key_factory.rb +0 -102
  775. data/vendor/gems/net-ssh/lib/net/ssh/known_hosts.rb +0 -129
  776. data/vendor/gems/net-ssh/lib/net/ssh/loggable.rb +0 -61
  777. data/vendor/gems/net-ssh/lib/net/ssh/packet.rb +0 -102
  778. data/vendor/gems/net-ssh/lib/net/ssh/prompt.rb +0 -93
  779. data/vendor/gems/net-ssh/lib/net/ssh/proxy/errors.rb +0 -14
  780. data/vendor/gems/net-ssh/lib/net/ssh/proxy/http.rb +0 -94
  781. data/vendor/gems/net-ssh/lib/net/ssh/proxy/socks4.rb +0 -70
  782. data/vendor/gems/net-ssh/lib/net/ssh/proxy/socks5.rb +0 -129
  783. data/vendor/gems/net-ssh/lib/net/ssh/ruby_compat.rb +0 -7
  784. data/vendor/gems/net-ssh/lib/net/ssh/service/forward.rb +0 -267
  785. data/vendor/gems/net-ssh/lib/net/ssh/test/channel.rb +0 -129
  786. data/vendor/gems/net-ssh/lib/net/ssh/test/extensions.rb +0 -152
  787. data/vendor/gems/net-ssh/lib/net/ssh/test/kex.rb +0 -44
  788. data/vendor/gems/net-ssh/lib/net/ssh/test/local_packet.rb +0 -51
  789. data/vendor/gems/net-ssh/lib/net/ssh/test/packet.rb +0 -81
  790. data/vendor/gems/net-ssh/lib/net/ssh/test/remote_packet.rb +0 -38
  791. data/vendor/gems/net-ssh/lib/net/ssh/test/script.rb +0 -157
  792. data/vendor/gems/net-ssh/lib/net/ssh/test/socket.rb +0 -59
  793. data/vendor/gems/net-ssh/lib/net/ssh/test.rb +0 -89
  794. data/vendor/gems/net-ssh/lib/net/ssh/transport/algorithms.rb +0 -384
  795. data/vendor/gems/net-ssh/lib/net/ssh/transport/cipher_factory.rb +0 -80
  796. data/vendor/gems/net-ssh/lib/net/ssh/transport/constants.rb +0 -30
  797. data/vendor/gems/net-ssh/lib/net/ssh/transport/hmac/abstract.rb +0 -78
  798. data/vendor/gems/net-ssh/lib/net/ssh/transport/hmac/md5.rb +0 -12
  799. data/vendor/gems/net-ssh/lib/net/ssh/transport/hmac/md5_96.rb +0 -11
  800. data/vendor/gems/net-ssh/lib/net/ssh/transport/hmac/none.rb +0 -15
  801. data/vendor/gems/net-ssh/lib/net/ssh/transport/hmac/sha1.rb +0 -13
  802. data/vendor/gems/net-ssh/lib/net/ssh/transport/hmac/sha1_96.rb +0 -11
  803. data/vendor/gems/net-ssh/lib/net/ssh/transport/hmac.rb +0 -31
  804. data/vendor/gems/net-ssh/lib/net/ssh/transport/identity_cipher.rb +0 -55
  805. data/vendor/gems/net-ssh/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +0 -208
  806. data/vendor/gems/net-ssh/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +0 -77
  807. data/vendor/gems/net-ssh/lib/net/ssh/transport/kex.rb +0 -13
  808. data/vendor/gems/net-ssh/lib/net/ssh/transport/openssl.rb +0 -128
  809. data/vendor/gems/net-ssh/lib/net/ssh/transport/packet_stream.rb +0 -230
  810. data/vendor/gems/net-ssh/lib/net/ssh/transport/server_version.rb +0 -60
  811. data/vendor/gems/net-ssh/lib/net/ssh/transport/session.rb +0 -276
  812. data/vendor/gems/net-ssh/lib/net/ssh/transport/state.rb +0 -201
  813. data/vendor/gems/net-ssh/lib/net/ssh/verifiers/lenient.rb +0 -30
  814. data/vendor/gems/net-ssh/lib/net/ssh/verifiers/null.rb +0 -12
  815. data/vendor/gems/net-ssh/lib/net/ssh/verifiers/strict.rb +0 -53
  816. data/vendor/gems/net-ssh/lib/net/ssh/version.rb +0 -62
  817. data/vendor/gems/net-ssh/lib/net/ssh.rb +0 -215
  818. data/vendor/gems/net-ssh/net-ssh.gemspec +0 -33
  819. data/vendor/gems/net-ssh/setup.rb +0 -1585
  820. data/vendor/gems/net-ssh/test/authentication/methods/common.rb +0 -28
  821. data/vendor/gems/net-ssh/test/authentication/methods/test_abstract.rb +0 -51
  822. data/vendor/gems/net-ssh/test/authentication/methods/test_hostbased.rb +0 -114
  823. data/vendor/gems/net-ssh/test/authentication/methods/test_keyboard_interactive.rb +0 -98
  824. data/vendor/gems/net-ssh/test/authentication/methods/test_password.rb +0 -50
  825. data/vendor/gems/net-ssh/test/authentication/methods/test_publickey.rb +0 -127
  826. data/vendor/gems/net-ssh/test/authentication/test_agent.rb +0 -205
  827. data/vendor/gems/net-ssh/test/authentication/test_key_manager.rb +0 -105
  828. data/vendor/gems/net-ssh/test/authentication/test_session.rb +0 -93
  829. data/vendor/gems/net-ssh/test/common.rb +0 -106
  830. data/vendor/gems/net-ssh/test/configs/eqsign +0 -3
  831. data/vendor/gems/net-ssh/test/configs/exact_match +0 -8
  832. data/vendor/gems/net-ssh/test/configs/wild_cards +0 -14
  833. data/vendor/gems/net-ssh/test/connection/test_channel.rb +0 -452
  834. data/vendor/gems/net-ssh/test/connection/test_session.rb +0 -488
  835. data/vendor/gems/net-ssh/test/test_all.rb +0 -6
  836. data/vendor/gems/net-ssh/test/test_buffer.rb +0 -336
  837. data/vendor/gems/net-ssh/test/test_buffered_io.rb +0 -63
  838. data/vendor/gems/net-ssh/test/test_config.rb +0 -84
  839. data/vendor/gems/net-ssh/test/test_key_factory.rb +0 -67
  840. data/vendor/gems/net-ssh/test/transport/hmac/test_md5.rb +0 -39
  841. data/vendor/gems/net-ssh/test/transport/hmac/test_md5_96.rb +0 -25
  842. data/vendor/gems/net-ssh/test/transport/hmac/test_none.rb +0 -34
  843. data/vendor/gems/net-ssh/test/transport/hmac/test_sha1.rb +0 -34
  844. data/vendor/gems/net-ssh/test/transport/hmac/test_sha1_96.rb +0 -25
  845. data/vendor/gems/net-ssh/test/transport/kex/test_diffie_hellman_group1_sha1.rb +0 -146
  846. data/vendor/gems/net-ssh/test/transport/kex/test_diffie_hellman_group_exchange_sha1.rb +0 -92
  847. data/vendor/gems/net-ssh/test/transport/test_algorithms.rb +0 -302
  848. data/vendor/gems/net-ssh/test/transport/test_cipher_factory.rb +0 -171
  849. data/vendor/gems/net-ssh/test/transport/test_hmac.rb +0 -34
  850. data/vendor/gems/net-ssh/test/transport/test_identity_cipher.rb +0 -40
  851. data/vendor/gems/net-ssh/test/transport/test_packet_stream.rb +0 -435
  852. data/vendor/gems/net-ssh/test/transport/test_server_version.rb +0 -57
  853. data/vendor/gems/net-ssh/test/transport/test_session.rb +0 -315
  854. data/vendor/gems/net-ssh/test/transport/test_state.rb +0 -173
  855. data/vendor/gems/parenting/History.txt +0 -4
  856. data/vendor/gems/parenting/Manifest.txt +0 -14
  857. data/vendor/gems/parenting/PostInstall.txt +0 -2
  858. data/vendor/gems/parenting/README.rdoc +0 -47
  859. data/vendor/gems/parenting/Rakefile +0 -44
  860. data/vendor/gems/parenting/lib/parenting/parenting.rb +0 -77
  861. data/vendor/gems/parenting/lib/parenting.rb +0 -10
  862. data/vendor/gems/parenting/parenting.gemspec +0 -39
  863. data/vendor/gems/parenting/script/console +0 -10
  864. data/vendor/gems/parenting/script/destroy +0 -14
  865. data/vendor/gems/parenting/script/generate +0 -14
  866. data/vendor/gems/parenting/test/file_to_eval.rb +0 -9
  867. data/vendor/gems/parenting/test/test_helper.rb +0 -5
  868. data/vendor/gems/parenting/test/test_parenting.rb +0 -117
  869. data/vendor/gems/right_aws/History.txt +0 -246
  870. data/vendor/gems/right_aws/Manifest.txt +0 -34
  871. data/vendor/gems/right_aws/README.txt +0 -166
  872. data/vendor/gems/right_aws/Rakefile +0 -112
  873. data/vendor/gems/right_aws/lib/acf/right_acf_interface.rb +0 -379
  874. data/vendor/gems/right_aws/lib/awsbase/benchmark_fix.rb +0 -39
  875. data/vendor/gems/right_aws/lib/awsbase/right_awsbase.rb +0 -797
  876. data/vendor/gems/right_aws/lib/awsbase/support.rb +0 -111
  877. data/vendor/gems/right_aws/lib/ec2/right_ec2.rb +0 -1737
  878. data/vendor/gems/right_aws/lib/right_aws.rb +0 -69
  879. data/vendor/gems/right_aws/lib/s3/right_s3.rb +0 -1094
  880. data/vendor/gems/right_aws/lib/s3/right_s3_interface.rb +0 -1175
  881. data/vendor/gems/right_aws/lib/sdb/active_sdb.rb +0 -930
  882. data/vendor/gems/right_aws/lib/sdb/right_sdb_interface.rb +0 -698
  883. data/vendor/gems/right_aws/lib/sqs/right_sqs.rb +0 -388
  884. data/vendor/gems/right_aws/lib/sqs/right_sqs_gen2.rb +0 -286
  885. data/vendor/gems/right_aws/lib/sqs/right_sqs_gen2_interface.rb +0 -444
  886. data/vendor/gems/right_aws/lib/sqs/right_sqs_interface.rb +0 -596
  887. data/vendor/gems/right_aws/test/acf/test_helper.rb +0 -2
  888. data/vendor/gems/right_aws/test/acf/test_right_acf.rb +0 -146
  889. data/vendor/gems/right_aws/test/ec2/test_helper.rb +0 -2
  890. data/vendor/gems/right_aws/test/ec2/test_right_ec2.rb +0 -108
  891. data/vendor/gems/right_aws/test/http_connection.rb +0 -87
  892. data/vendor/gems/right_aws/test/s3/test_helper.rb +0 -2
  893. data/vendor/gems/right_aws/test/s3/test_right_s3.rb +0 -419
  894. data/vendor/gems/right_aws/test/s3/test_right_s3_stubbed.rb +0 -95
  895. data/vendor/gems/right_aws/test/sdb/test_active_sdb.rb +0 -299
  896. data/vendor/gems/right_aws/test/sdb/test_helper.rb +0 -3
  897. data/vendor/gems/right_aws/test/sdb/test_right_sdb.rb +0 -247
  898. data/vendor/gems/right_aws/test/sqs/test_helper.rb +0 -2
  899. data/vendor/gems/right_aws/test/sqs/test_right_sqs.rb +0 -291
  900. data/vendor/gems/right_aws/test/sqs/test_right_sqs_gen2.rb +0 -209
  901. data/vendor/gems/right_aws/test/test_credentials.rb +0 -37
  902. data/vendor/gems/right_aws/test/ts_right_aws.rb +0 -14
  903. data/vendor/gems/right_http_connection/History.txt +0 -59
  904. data/vendor/gems/right_http_connection/Manifest.txt +0 -7
  905. data/vendor/gems/right_http_connection/README.txt +0 -54
  906. data/vendor/gems/right_http_connection/Rakefile +0 -103
  907. data/vendor/gems/right_http_connection/lib/net_fix.rb +0 -160
  908. data/vendor/gems/right_http_connection/lib/right_http_connection.rb +0 -442
  909. data/vendor/gems/right_http_connection/right_http_connection.gemspec +0 -31
  910. data/vendor/gems/right_http_connection/setup.rb +0 -1585
  911. data/vendor/gems/shoulda/CONTRIBUTION_GUIDELINES.rdoc +0 -10
  912. data/vendor/gems/shoulda/MIT-LICENSE +0 -22
  913. data/vendor/gems/shoulda/README.rdoc +0 -171
  914. data/vendor/gems/shoulda/Rakefile +0 -72
  915. data/vendor/gems/shoulda/bin/convert_to_should_syntax +0 -42
  916. data/vendor/gems/shoulda/init.rb +0 -1
  917. data/vendor/gems/shoulda/lib/shoulda/action_controller/macros.rb +0 -240
  918. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/assign_to_matcher.rb +0 -109
  919. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/filter_param_matcher.rb +0 -57
  920. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/render_with_layout_matcher.rb +0 -81
  921. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/respond_with_content_type_matcher.rb +0 -74
  922. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/respond_with_matcher.rb +0 -81
  923. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/route_matcher.rb +0 -93
  924. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/set_session_matcher.rb +0 -87
  925. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers/set_the_flash_matcher.rb +0 -85
  926. data/vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb +0 -37
  927. data/vendor/gems/shoulda/lib/shoulda/action_controller.rb +0 -26
  928. data/vendor/gems/shoulda/lib/shoulda/action_mailer/assertions.rb +0 -38
  929. data/vendor/gems/shoulda/lib/shoulda/action_mailer.rb +0 -10
  930. data/vendor/gems/shoulda/lib/shoulda/action_view/macros.rb +0 -61
  931. data/vendor/gems/shoulda/lib/shoulda/action_view.rb +0 -10
  932. data/vendor/gems/shoulda/lib/shoulda/active_record/assertions.rb +0 -69
  933. data/vendor/gems/shoulda/lib/shoulda/active_record/helpers.rb +0 -27
  934. data/vendor/gems/shoulda/lib/shoulda/active_record/macros.rb +0 -512
  935. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/allow_mass_assignment_of_matcher.rb +0 -83
  936. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/allow_value_matcher.rb +0 -102
  937. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/association_matcher.rb +0 -226
  938. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/ensure_inclusion_of_matcher.rb +0 -87
  939. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/ensure_length_of_matcher.rb +0 -141
  940. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/have_db_column_matcher.rb +0 -169
  941. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/have_db_index_matcher.rb +0 -112
  942. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/have_named_scope_matcher.rb +0 -128
  943. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/have_readonly_attribute_matcher.rb +0 -59
  944. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/validate_acceptance_of_matcher.rb +0 -41
  945. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/validate_format_of_matcher.rb +0 -67
  946. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/validate_numericality_of_matcher.rb +0 -39
  947. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/validate_presence_of_matcher.rb +0 -60
  948. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/validate_uniqueness_of_matcher.rb +0 -148
  949. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers/validation_matcher.rb +0 -57
  950. data/vendor/gems/shoulda/lib/shoulda/active_record/matchers.rb +0 -43
  951. data/vendor/gems/shoulda/lib/shoulda/active_record.rb +0 -16
  952. data/vendor/gems/shoulda/lib/shoulda/assertions.rb +0 -71
  953. data/vendor/gems/shoulda/lib/shoulda/autoload_macros.rb +0 -46
  954. data/vendor/gems/shoulda/lib/shoulda/context.rb +0 -402
  955. data/vendor/gems/shoulda/lib/shoulda/helpers.rb +0 -8
  956. data/vendor/gems/shoulda/lib/shoulda/macros.rb +0 -133
  957. data/vendor/gems/shoulda/lib/shoulda/private_helpers.rb +0 -13
  958. data/vendor/gems/shoulda/lib/shoulda/proc_extensions.rb +0 -14
  959. data/vendor/gems/shoulda/lib/shoulda/rails.rb +0 -13
  960. data/vendor/gems/shoulda/lib/shoulda/rspec.rb +0 -11
  961. data/vendor/gems/shoulda/lib/shoulda/tasks/list_tests.rake +0 -29
  962. data/vendor/gems/shoulda/lib/shoulda/tasks/yaml_to_shoulda.rake +0 -28
  963. data/vendor/gems/shoulda/lib/shoulda/tasks.rb +0 -3
  964. data/vendor/gems/shoulda/lib/shoulda/test_unit.rb +0 -22
  965. data/vendor/gems/shoulda/lib/shoulda.rb +0 -9
  966. data/vendor/gems/shoulda/rails/init.rb +0 -7
  967. data/vendor/gems/shoulda/shoulda.gemspec +0 -31
  968. data/vendor/gems/shoulda/tasks/shoulda.rake +0 -1
  969. data/vendor/gems/shoulda/test/README +0 -36
  970. data/vendor/gems/shoulda/test/fail_macros.rb +0 -39
  971. data/vendor/gems/shoulda/test/fixtures/addresses.yml +0 -3
  972. data/vendor/gems/shoulda/test/fixtures/friendships.yml +0 -0
  973. data/vendor/gems/shoulda/test/fixtures/posts.yml +0 -5
  974. data/vendor/gems/shoulda/test/fixtures/products.yml +0 -0
  975. data/vendor/gems/shoulda/test/fixtures/taggings.yml +0 -0
  976. data/vendor/gems/shoulda/test/fixtures/tags.yml +0 -9
  977. data/vendor/gems/shoulda/test/fixtures/users.yml +0 -6
  978. data/vendor/gems/shoulda/test/functional/posts_controller_test.rb +0 -121
  979. data/vendor/gems/shoulda/test/functional/users_controller_test.rb +0 -19
  980. data/vendor/gems/shoulda/test/matchers/active_record/allow_mass_assignment_of_matcher_test.rb +0 -68
  981. data/vendor/gems/shoulda/test/matchers/active_record/allow_value_matcher_test.rb +0 -64
  982. data/vendor/gems/shoulda/test/matchers/active_record/association_matcher_test.rb +0 -263
  983. data/vendor/gems/shoulda/test/matchers/active_record/ensure_inclusion_of_matcher_test.rb +0 -80
  984. data/vendor/gems/shoulda/test/matchers/active_record/ensure_length_of_matcher_test.rb +0 -158
  985. data/vendor/gems/shoulda/test/matchers/active_record/have_db_column_matcher_test.rb +0 -169
  986. data/vendor/gems/shoulda/test/matchers/active_record/have_db_index_matcher_test.rb +0 -91
  987. data/vendor/gems/shoulda/test/matchers/active_record/have_named_scope_matcher_test.rb +0 -65
  988. data/vendor/gems/shoulda/test/matchers/active_record/have_readonly_attributes_matcher_test.rb +0 -29
  989. data/vendor/gems/shoulda/test/matchers/active_record/validate_acceptance_of_matcher_test.rb +0 -44
  990. data/vendor/gems/shoulda/test/matchers/active_record/validate_format_of_matcher_test.rb +0 -39
  991. data/vendor/gems/shoulda/test/matchers/active_record/validate_numericality_of_matcher_test.rb +0 -52
  992. data/vendor/gems/shoulda/test/matchers/active_record/validate_presence_of_matcher_test.rb +0 -86
  993. data/vendor/gems/shoulda/test/matchers/active_record/validate_uniqueness_of_matcher_test.rb +0 -147
  994. data/vendor/gems/shoulda/test/matchers/controller/assign_to_matcher_test.rb +0 -35
  995. data/vendor/gems/shoulda/test/matchers/controller/filter_param_matcher_test.rb +0 -32
  996. data/vendor/gems/shoulda/test/matchers/controller/render_with_layout_matcher_test.rb +0 -33
  997. data/vendor/gems/shoulda/test/matchers/controller/respond_with_content_type_matcher_test.rb +0 -32
  998. data/vendor/gems/shoulda/test/matchers/controller/respond_with_matcher_test.rb +0 -106
  999. data/vendor/gems/shoulda/test/matchers/controller/route_matcher_test.rb +0 -58
  1000. data/vendor/gems/shoulda/test/matchers/controller/set_session_matcher_test.rb +0 -38
  1001. data/vendor/gems/shoulda/test/matchers/controller/set_the_flash_matcher.rb +0 -41
  1002. data/vendor/gems/shoulda/test/model_builder.rb +0 -106
  1003. data/vendor/gems/shoulda/test/other/autoload_macro_test.rb +0 -18
  1004. data/vendor/gems/shoulda/test/other/context_test.rb +0 -189
  1005. data/vendor/gems/shoulda/test/other/convert_to_should_syntax_test.rb +0 -63
  1006. data/vendor/gems/shoulda/test/other/helpers_test.rb +0 -340
  1007. data/vendor/gems/shoulda/test/other/private_helpers_test.rb +0 -32
  1008. data/vendor/gems/shoulda/test/other/should_test.rb +0 -271
  1009. data/vendor/gems/shoulda/test/rails_root/app/controllers/application_controller.rb +0 -25
  1010. data/vendor/gems/shoulda/test/rails_root/app/controllers/posts_controller.rb +0 -87
  1011. data/vendor/gems/shoulda/test/rails_root/app/controllers/users_controller.rb +0 -84
  1012. data/vendor/gems/shoulda/test/rails_root/app/helpers/application_helper.rb +0 -3
  1013. data/vendor/gems/shoulda/test/rails_root/app/helpers/posts_helper.rb +0 -2
  1014. data/vendor/gems/shoulda/test/rails_root/app/helpers/users_helper.rb +0 -2
  1015. data/vendor/gems/shoulda/test/rails_root/app/models/address.rb +0 -7
  1016. data/vendor/gems/shoulda/test/rails_root/app/models/flea.rb +0 -3
  1017. data/vendor/gems/shoulda/test/rails_root/app/models/friendship.rb +0 -4
  1018. data/vendor/gems/shoulda/test/rails_root/app/models/pets/cat.rb +0 -7
  1019. data/vendor/gems/shoulda/test/rails_root/app/models/pets/dog.rb +0 -10
  1020. data/vendor/gems/shoulda/test/rails_root/app/models/post.rb +0 -12
  1021. data/vendor/gems/shoulda/test/rails_root/app/models/product.rb +0 -12
  1022. data/vendor/gems/shoulda/test/rails_root/app/models/profile.rb +0 -2
  1023. data/vendor/gems/shoulda/test/rails_root/app/models/registration.rb +0 -2
  1024. data/vendor/gems/shoulda/test/rails_root/app/models/tag.rb +0 -8
  1025. data/vendor/gems/shoulda/test/rails_root/app/models/tagging.rb +0 -4
  1026. data/vendor/gems/shoulda/test/rails_root/app/models/treat.rb +0 -3
  1027. data/vendor/gems/shoulda/test/rails_root/app/models/user.rb +0 -32
  1028. data/vendor/gems/shoulda/test/rails_root/app/views/layouts/posts.rhtml +0 -19
  1029. data/vendor/gems/shoulda/test/rails_root/app/views/layouts/users.rhtml +0 -17
  1030. data/vendor/gems/shoulda/test/rails_root/app/views/layouts/wide.html.erb +0 -1
  1031. data/vendor/gems/shoulda/test/rails_root/app/views/posts/edit.rhtml +0 -27
  1032. data/vendor/gems/shoulda/test/rails_root/app/views/posts/index.rhtml +0 -25
  1033. data/vendor/gems/shoulda/test/rails_root/app/views/posts/new.rhtml +0 -26
  1034. data/vendor/gems/shoulda/test/rails_root/app/views/posts/show.rhtml +0 -18
  1035. data/vendor/gems/shoulda/test/rails_root/app/views/users/edit.rhtml +0 -22
  1036. data/vendor/gems/shoulda/test/rails_root/app/views/users/index.rhtml +0 -22
  1037. data/vendor/gems/shoulda/test/rails_root/app/views/users/new.rhtml +0 -21
  1038. data/vendor/gems/shoulda/test/rails_root/app/views/users/show.rhtml +0 -13
  1039. data/vendor/gems/shoulda/test/rails_root/config/boot.rb +0 -110
  1040. data/vendor/gems/shoulda/test/rails_root/config/database.yml +0 -4
  1041. data/vendor/gems/shoulda/test/rails_root/config/environment.rb +0 -18
  1042. data/vendor/gems/shoulda/test/rails_root/config/environments/test.rb +0 -0
  1043. data/vendor/gems/shoulda/test/rails_root/config/initializers/new_rails_defaults.rb +0 -15
  1044. data/vendor/gems/shoulda/test/rails_root/config/initializers/shoulda.rb +0 -8
  1045. data/vendor/gems/shoulda/test/rails_root/config/routes.rb +0 -6
  1046. data/vendor/gems/shoulda/test/rails_root/db/migrate/001_create_users.rb +0 -19
  1047. data/vendor/gems/shoulda/test/rails_root/db/migrate/002_create_posts.rb +0 -13
  1048. data/vendor/gems/shoulda/test/rails_root/db/migrate/003_create_taggings.rb +0 -12
  1049. data/vendor/gems/shoulda/test/rails_root/db/migrate/004_create_tags.rb +0 -11
  1050. data/vendor/gems/shoulda/test/rails_root/db/migrate/005_create_dogs.rb +0 -12
  1051. data/vendor/gems/shoulda/test/rails_root/db/migrate/006_create_addresses.rb +0 -14
  1052. data/vendor/gems/shoulda/test/rails_root/db/migrate/007_create_fleas.rb +0 -11
  1053. data/vendor/gems/shoulda/test/rails_root/db/migrate/008_create_dogs_fleas.rb +0 -12
  1054. data/vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb +0 -17
  1055. data/vendor/gems/shoulda/test/rails_root/db/migrate/010_create_friendships.rb +0 -14
  1056. data/vendor/gems/shoulda/test/rails_root/db/migrate/011_create_treats.rb +0 -12
  1057. data/vendor/gems/shoulda/test/rails_root/db/migrate/20090506203502_create_profiles.rb +0 -12
  1058. data/vendor/gems/shoulda/test/rails_root/db/migrate/20090506203536_create_registrations.rb +0 -14
  1059. data/vendor/gems/shoulda/test/rails_root/db/migrate/20090513104502_create_cats.rb +0 -12
  1060. data/vendor/gems/shoulda/test/rails_root/db/schema.rb +0 -0
  1061. data/vendor/gems/shoulda/test/rails_root/public/404.html +0 -30
  1062. data/vendor/gems/shoulda/test/rails_root/public/422.html +0 -30
  1063. data/vendor/gems/shoulda/test/rails_root/public/500.html +0 -30
  1064. data/vendor/gems/shoulda/test/rails_root/script/console +0 -3
  1065. data/vendor/gems/shoulda/test/rails_root/script/generate +0 -3
  1066. data/vendor/gems/shoulda/test/rails_root/test/shoulda_macros/custom_macro.rb +0 -6
  1067. data/vendor/gems/shoulda/test/rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb +0 -6
  1068. data/vendor/gems/shoulda/test/rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb +0 -6
  1069. data/vendor/gems/shoulda/test/rspec_test.rb +0 -207
  1070. data/vendor/gems/shoulda/test/test_helper.rb +0 -28
  1071. data/vendor/gems/shoulda/test/unit/address_test.rb +0 -10
  1072. data/vendor/gems/shoulda/test/unit/cat_test.rb +0 -7
  1073. data/vendor/gems/shoulda/test/unit/dog_test.rb +0 -9
  1074. data/vendor/gems/shoulda/test/unit/flea_test.rb +0 -6
  1075. data/vendor/gems/shoulda/test/unit/friendship_test.rb +0 -6
  1076. data/vendor/gems/shoulda/test/unit/post_test.rb +0 -19
  1077. data/vendor/gems/shoulda/test/unit/product_test.rb +0 -23
  1078. data/vendor/gems/shoulda/test/unit/tag_test.rb +0 -15
  1079. data/vendor/gems/shoulda/test/unit/tagging_test.rb +0 -6
  1080. data/vendor/gems/shoulda/test/unit/user_test.rb +0 -80
  1081. data/vendor/gems/thrift/CHANGELOG +0 -1
  1082. data/vendor/gems/thrift/Makefile.am +0 -47
  1083. data/vendor/gems/thrift/Manifest +0 -81
  1084. data/vendor/gems/thrift/README +0 -43
  1085. data/vendor/gems/thrift/Rakefile +0 -104
  1086. data/vendor/gems/thrift/benchmark/Benchmark.thrift +0 -24
  1087. data/vendor/gems/thrift/benchmark/benchmark.rb +0 -271
  1088. data/vendor/gems/thrift/benchmark/client.rb +0 -74
  1089. data/vendor/gems/thrift/benchmark/server.rb +0 -82
  1090. data/vendor/gems/thrift/benchmark/thin_server.rb +0 -44
  1091. data/vendor/gems/thrift/ext/binary_protocol_accelerated.c +0 -474
  1092. data/vendor/gems/thrift/ext/binary_protocol_accelerated.h +0 -20
  1093. data/vendor/gems/thrift/ext/compact_protocol.c +0 -665
  1094. data/vendor/gems/thrift/ext/compact_protocol.h +0 -20
  1095. data/vendor/gems/thrift/ext/constants.h +0 -95
  1096. data/vendor/gems/thrift/ext/extconf.rb +0 -26
  1097. data/vendor/gems/thrift/ext/macros.h +0 -41
  1098. data/vendor/gems/thrift/ext/memory_buffer.c +0 -76
  1099. data/vendor/gems/thrift/ext/memory_buffer.h +0 -20
  1100. data/vendor/gems/thrift/ext/protocol.c +0 -185
  1101. data/vendor/gems/thrift/ext/protocol.h +0 -20
  1102. data/vendor/gems/thrift/ext/struct.c +0 -606
  1103. data/vendor/gems/thrift/ext/struct.h +0 -67
  1104. data/vendor/gems/thrift/ext/thrift_native.c +0 -194
  1105. data/vendor/gems/thrift/lib/thrift/client.rb +0 -62
  1106. data/vendor/gems/thrift/lib/thrift/core_ext/fixnum.rb +0 -29
  1107. data/vendor/gems/thrift/lib/thrift/core_ext.rb +0 -23
  1108. data/vendor/gems/thrift/lib/thrift/exceptions.rb +0 -82
  1109. data/vendor/gems/thrift/lib/thrift/processor.rb +0 -57
  1110. data/vendor/gems/thrift/lib/thrift/protocol/base_protocol.rb +0 -290
  1111. data/vendor/gems/thrift/lib/thrift/protocol/binary_protocol.rb +0 -225
  1112. data/vendor/gems/thrift/lib/thrift/protocol/binary_protocol_accelerated.rb +0 -35
  1113. data/vendor/gems/thrift/lib/thrift/protocol/compact_protocol.rb +0 -422
  1114. data/vendor/gems/thrift/lib/thrift/serializer/deserializer.rb +0 -33
  1115. data/vendor/gems/thrift/lib/thrift/serializer/serializer.rb +0 -34
  1116. data/vendor/gems/thrift/lib/thrift/server/base_server.rb +0 -31
  1117. data/vendor/gems/thrift/lib/thrift/server/mongrel_http_server.rb +0 -58
  1118. data/vendor/gems/thrift/lib/thrift/server/nonblocking_server.rb +0 -296
  1119. data/vendor/gems/thrift/lib/thrift/server/simple_server.rb +0 -43
  1120. data/vendor/gems/thrift/lib/thrift/server/thread_pool_server.rb +0 -75
  1121. data/vendor/gems/thrift/lib/thrift/server/threaded_server.rb +0 -47
  1122. data/vendor/gems/thrift/lib/thrift/struct.rb +0 -298
  1123. data/vendor/gems/thrift/lib/thrift/thrift_native.rb +0 -24
  1124. data/vendor/gems/thrift/lib/thrift/transport/base_server_transport.rb +0 -37
  1125. data/vendor/gems/thrift/lib/thrift/transport/base_transport.rb +0 -70
  1126. data/vendor/gems/thrift/lib/thrift/transport/buffered_transport.rb +0 -77
  1127. data/vendor/gems/thrift/lib/thrift/transport/framed_transport.rb +0 -90
  1128. data/vendor/gems/thrift/lib/thrift/transport/http_client_transport.rb +0 -45
  1129. data/vendor/gems/thrift/lib/thrift/transport/io_stream_transport.rb +0 -39
  1130. data/vendor/gems/thrift/lib/thrift/transport/memory_buffer_transport.rb +0 -96
  1131. data/vendor/gems/thrift/lib/thrift/transport/server_socket.rb +0 -63
  1132. data/vendor/gems/thrift/lib/thrift/transport/socket.rb +0 -136
  1133. data/vendor/gems/thrift/lib/thrift/transport/unix_server_socket.rb +0 -60
  1134. data/vendor/gems/thrift/lib/thrift/transport/unix_socket.rb +0 -40
  1135. data/vendor/gems/thrift/lib/thrift/types.rb +0 -101
  1136. data/vendor/gems/thrift/lib/thrift.rb +0 -59
  1137. data/vendor/gems/thrift/script/proto_benchmark.rb +0 -121
  1138. data/vendor/gems/thrift/script/read_struct.rb +0 -43
  1139. data/vendor/gems/thrift/script/write_struct.rb +0 -30
  1140. data/vendor/gems/thrift/setup.rb +0 -1585
  1141. data/vendor/gems/thrift/spec/ThriftSpec.thrift +0 -84
  1142. data/vendor/gems/thrift/spec/base_protocol_spec.rb +0 -160
  1143. data/vendor/gems/thrift/spec/base_transport_spec.rb +0 -351
  1144. data/vendor/gems/thrift/spec/binary_protocol_accelerated_spec.rb +0 -41
  1145. data/vendor/gems/thrift/spec/binary_protocol_spec.rb +0 -63
  1146. data/vendor/gems/thrift/spec/binary_protocol_spec_shared.rb +0 -375
  1147. data/vendor/gems/thrift/spec/client_spec.rb +0 -100
  1148. data/vendor/gems/thrift/spec/compact_protocol_spec.rb +0 -117
  1149. data/vendor/gems/thrift/spec/exception_spec.rb +0 -142
  1150. data/vendor/gems/thrift/spec/http_client_spec.rb +0 -49
  1151. data/vendor/gems/thrift/spec/mongrel_http_server_spec.rb +0 -117
  1152. data/vendor/gems/thrift/spec/nonblocking_server_spec.rb +0 -265
  1153. data/vendor/gems/thrift/spec/processor_spec.rb +0 -83
  1154. data/vendor/gems/thrift/spec/serializer_spec.rb +0 -69
  1155. data/vendor/gems/thrift/spec/server_socket_spec.rb +0 -80
  1156. data/vendor/gems/thrift/spec/server_spec.rb +0 -160
  1157. data/vendor/gems/thrift/spec/socket_spec.rb +0 -61
  1158. data/vendor/gems/thrift/spec/socket_spec_shared.rb +0 -104
  1159. data/vendor/gems/thrift/spec/spec_helper.rb +0 -60
  1160. data/vendor/gems/thrift/spec/struct_spec.rb +0 -252
  1161. data/vendor/gems/thrift/spec/types_spec.rb +0 -116
  1162. data/vendor/gems/thrift/spec/unix_socket_spec.rb +0 -108
  1163. /data/{vendor/chef → examples/chef_cloud/chef-repo/cookbooks}/apache2/templates/default/a2dismod.erb +0 -0
  1164. /data/{vendor/chef → examples/chef_cloud/chef-repo/cookbooks}/apache2/templates/default/a2dissite.erb +0 -0
  1165. /data/{vendor/chef → examples/chef_cloud/chef-repo/cookbooks}/apache2/templates/default/a2ensite.erb +0 -0
  1166. /data/{vendor/chef → examples/chef_cloud/chef-repo/cookbooks}/apache2/templates/default/port_apache.erb +0 -0
  1167. /data/{vendor/chef → examples/chef_cloud/chef-repo/cookbooks}/apache2/templates/default/ports.conf.erb +0 -0
  1168. /data/{vendor/chef → examples/chef_cloud/chef-repo/cookbooks}/apache2/templates/default/web_app.conf.erb +0 -0
  1169. /data/{lib/proto/gen-py/__init__.py → examples/chef_cloud/chef-repo/cookbooks/chef/recipes/default.rb} +0 -0
  1170. /data/{vendor/gems/context/PostInstall.txt → lib/cloud_providers/default/helpers/base_helper.rb} +0 -0
  1171. /data/vendor/gems/{colors → searchable_paths}/LICENSE +0 -0
@@ -1,625 +0,0 @@
1
- require 'net/ssh/loggable'
2
- require 'net/ssh/connection/constants'
3
- require 'net/ssh/connection/term'
4
-
5
- module Net; module SSH; module Connection
6
-
7
- # The channel abstraction. Multiple "channels" can be multiplexed onto a
8
- # single SSH channel, each operating independently and seemingly in parallel.
9
- # This class represents a single such channel. Most operations performed
10
- # with the Net::SSH library will involve using one or more channels.
11
- #
12
- # Channels are intended to be used asynchronously. You request that one be
13
- # opened (via Connection::Session#open_channel), and when it is opened, your
14
- # callback is invoked. Then, you set various other callbacks on the newly
15
- # opened channel, which are called in response to the corresponding events.
16
- # Programming with Net::SSH works best if you think of your programs as
17
- # state machines. Complex programs are best implemented as objects that
18
- # wrap a channel. See Net::SCP and Net::SFTP for examples of how complex
19
- # state machines can be built on top of the SSH protocol.
20
- #
21
- # ssh.open_channel do |channel|
22
- # channel.exec("/invoke/some/command") do |ch, success|
23
- # abort "could not execute command" unless success
24
- #
25
- # channel.on_data do |ch, data|
26
- # puts "got stdout: #{data}"
27
- # channel.send_data "something for stdin\n"
28
- # end
29
- #
30
- # channel.on_extended_data do |ch, type, data|
31
- # puts "got stderr: #{data}"
32
- # end
33
- #
34
- # channel.on_close do |ch|
35
- # puts "channel is closing!"
36
- # end
37
- # end
38
- # end
39
- #
40
- # ssh.loop
41
- #
42
- # Channels also have a basic hash-like interface, that allows programs to
43
- # store arbitrary state information on a channel object. This helps simplify
44
- # the writing of state machines, especially when you may be juggling
45
- # multiple open channels at the same time.
46
- #
47
- # Note that data sent across SSH channels are governed by maximum packet
48
- # sizes and maximum window sizes. These details are managed internally
49
- # by Net::SSH::Connection::Channel, so you may remain blissfully ignorant
50
- # if you so desire, but you can always inspect the current maximums, as
51
- # well as the remaining window size, using the reader attributes for those
52
- # values.
53
- class Channel
54
- include Constants, Loggable
55
-
56
- # The local id for this channel, assigned by the Net::SSH::Connection::Session instance.
57
- attr_reader :local_id
58
-
59
- # The remote id for this channel, assigned by the remote host.
60
- attr_reader :remote_id
61
-
62
- # The type of this channel, usually "session".
63
- attr_reader :type
64
-
65
- # The underlying Net::SSH::Connection::Session instance that supports this channel.
66
- attr_reader :connection
67
-
68
- # The maximum packet size that the local host can receive.
69
- attr_reader :local_maximum_packet_size
70
-
71
- # The maximum amount of data that the local end of this channel can
72
- # receive. This is a total, not per-packet.
73
- attr_reader :local_maximum_window_size
74
-
75
- # The maximum packet size that the remote host can receive.
76
- attr_reader :remote_maximum_packet_size
77
-
78
- # The maximum amount of data that the remote end of this channel can
79
- # receive. This is a total, not per-packet.
80
- attr_reader :remote_maximum_window_size
81
-
82
- # This is the remaining window size on the local end of this channel. When
83
- # this reaches zero, no more data can be received.
84
- attr_reader :local_window_size
85
-
86
- # This is the remaining window size on the remote end of this channel. When
87
- # this reaches zero, no more data can be sent.
88
- attr_reader :remote_window_size
89
-
90
- # A hash of properties for this channel. These can be used to store state
91
- # information about this channel. See also #[] and #[]=.
92
- attr_reader :properties
93
-
94
- # The output buffer for this channel. Data written to the channel is
95
- # enqueued here, to be written as CHANNEL_DATA packets during each pass of
96
- # the event loop. See Connection::Session#process and #enqueue_pending_output.
97
- attr_reader :output #:nodoc:
98
-
99
- # The list of pending requests. Each time a request is sent which requires
100
- # a reply, the corresponding callback is pushed onto this queue. As responses
101
- # arrive, they are shifted off the front and handled.
102
- attr_reader :pending_requests #:nodoc:
103
-
104
- # Instantiates a new channel on the given connection, of the given type,
105
- # and with the given id. If a block is given, it will be remembered until
106
- # the channel is confirmed open by the server, and will be invoked at
107
- # that time (see #do_open_confirmation).
108
- #
109
- # This also sets the default maximum packet size and maximum window size.
110
- def initialize(connection, type, local_id, &on_confirm_open)
111
- self.logger = connection.logger
112
-
113
- @connection = connection
114
- @type = type
115
- @local_id = local_id
116
-
117
- @local_maximum_packet_size = 0x10000
118
- @local_window_size = @local_maximum_window_size = 0x20000
119
-
120
- @on_confirm_open = on_confirm_open
121
-
122
- @output = Buffer.new
123
-
124
- @properties = {}
125
-
126
- @pending_requests = []
127
- @on_open_failed = @on_data = @on_extended_data = @on_process = @on_close = @on_eof = nil
128
- @on_request = {}
129
- @closing = @eof = false
130
- end
131
-
132
- # A shortcut for accessing properties of the channel (see #properties).
133
- def [](name)
134
- @properties[name]
135
- end
136
-
137
- # A shortcut for setting properties of the channel (see #properties).
138
- def []=(name, value)
139
- @properties[name] = value
140
- end
141
-
142
- # Syntactic sugar for executing a command. Sends a channel request asking
143
- # that the given command be invoked. If the block is given, it will be
144
- # called when the server responds. The first parameter will be the
145
- # channel, and the second will be true or false, indicating whether the
146
- # request succeeded or not. In this case, success means that the command
147
- # is being executed, not that it has completed, and failure means that the
148
- # command altogether failed to be executed.
149
- #
150
- # channel.exec "ls -l /home" do |ch, success|
151
- # if success
152
- # puts "command has begun executing..."
153
- # # this is a good place to hang callbacks like #on_data...
154
- # else
155
- # puts "alas! the command could not be invoked!"
156
- # end
157
- # end
158
- def exec(command, &block)
159
- send_channel_request("exec", :string, command, &block)
160
- end
161
-
162
- # Syntactic sugar for requesting that a subsystem be started. Subsystems
163
- # are a way for other protocols (like SFTP) to be run, using SSH as
164
- # the transport. Generally, you'll never need to call this directly unless
165
- # you are the implementor of something that consumes an SSH subsystem, like
166
- # SFTP.
167
- #
168
- # channel.subsystem("sftp") do |ch, success|
169
- # if success
170
- # puts "subsystem successfully started"
171
- # else
172
- # puts "subsystem could not be started"
173
- # end
174
- # end
175
- def subsystem(subsystem, &block)
176
- send_channel_request("subsystem", :string, subsystem, &block)
177
- end
178
-
179
- # Syntactic sugar for setting an environment variable in the remote
180
- # process' environment. Note that for security reasons, the server may
181
- # refuse to set certain environment variables, or all, at the server's
182
- # discretion. If you are connecting to an OpenSSH server, you will
183
- # need to update the AcceptEnv setting in the sshd_config to include the
184
- # environment variables you want to send.
185
- #
186
- # channel.env "PATH", "/usr/local/bin"
187
- def env(variable_name, variable_value, &block)
188
- send_channel_request("env", :string, variable_name, :string, variable_value, &block)
189
- end
190
-
191
- # A hash of the valid PTY options (see #request_pty).
192
- VALID_PTY_OPTIONS = { :term => "xterm",
193
- :chars_wide => 80,
194
- :chars_high => 24,
195
- :pixels_wide => 640,
196
- :pixels_high => 480,
197
- :modes => {} }
198
-
199
- # Requests that a pseudo-tty (or "pty") be made available for this channel.
200
- # This is useful when you want to invoke and interact with some kind of
201
- # screen-based program (e.g., vim, or some menuing system).
202
- #
203
- # Note, that without a pty some programs (e.g. sudo, or subversion) on
204
- # some systems, will not be able to run interactively, and will error
205
- # instead of prompt if they ever need some user interaction.
206
- #
207
- # Note, too, that when a pty is requested, user's shell configuration
208
- # scripts (.bashrc and such) are not run by default, whereas they are
209
- # run when a pty is not present.
210
- #
211
- # channel.request_pty do |ch, success|
212
- # if success
213
- # puts "pty successfully obtained"
214
- # else
215
- # puts "could not obtain pty"
216
- # end
217
- # end
218
- def request_pty(opts={}, &block)
219
- extra = opts.keys - VALID_PTY_OPTIONS.keys
220
- raise ArgumentError, "invalid option(s) to request_pty: #{extra.inspect}" if extra.any?
221
-
222
- opts = VALID_PTY_OPTIONS.merge(opts)
223
-
224
- modes = opts[:modes].inject(Buffer.new) do |memo, (mode, data)|
225
- memo.write_byte(mode).write_long(data)
226
- end
227
- # mark the end of the mode opcode list with a 0 byte
228
- modes.write_byte(0)
229
-
230
- send_channel_request("pty-req", :string, opts[:term],
231
- :long, opts[:chars_wide], :long, opts[:chars_high],
232
- :long, opts[:pixels_wide], :long, opts[:pixels_high],
233
- :string, modes.to_s, &block)
234
- end
235
-
236
- # Sends data to the channel's remote endpoint. This usually has the
237
- # effect of sending the given string to the remote process' stdin stream.
238
- # Note that it does not immediately send the data across the channel,
239
- # but instead merely appends the given data to the channel's output buffer,
240
- # preparatory to being packaged up and sent out the next time the connection
241
- # is accepting data. (A connection might not be accepting data if, for
242
- # instance, it has filled its data window and has not yet been resized by
243
- # the remote end-point.)
244
- #
245
- # This will raise an exception if the channel has previously declared
246
- # that no more data will be sent (see #eof!).
247
- #
248
- # channel.send_data("the password\n")
249
- def send_data(data)
250
- raise EOFError, "cannot send data if channel has declared eof" if eof?
251
- output.append(data.to_s)
252
- end
253
-
254
- # Returns true if the channel exists in the channel list of the session,
255
- # and false otherwise. This can be used to determine whether a channel has
256
- # been closed or not.
257
- #
258
- # ssh.loop { channel.active? }
259
- def active?
260
- connection.channels.key?(local_id)
261
- end
262
-
263
- # Runs the SSH event loop until the channel is no longer active. This is
264
- # handy for blocking while you wait for some channel to finish.
265
- #
266
- # channel.exec("grep ...") { ... }
267
- # channel.wait
268
- def wait
269
- connection.loop { active? }
270
- end
271
-
272
- # Returns true if the channel is currently closing, but not actually
273
- # closed. A channel is closing when, for instance, #close has been
274
- # invoked, but the server has not yet responded with a CHANNEL_CLOSE
275
- # packet of its own.
276
- def closing?
277
- @closing
278
- end
279
-
280
- # Requests that the channel be closed. If the channel is already closing,
281
- # this does nothing, nor does it do anything if the channel has not yet
282
- # been confirmed open (see #do_open_confirmation). Otherwise, it sends a
283
- # CHANNEL_CLOSE message and marks the channel as closing.
284
- def close
285
- return if @closing
286
- if remote_id
287
- @closing = true
288
- connection.send_message(Buffer.from(:byte, CHANNEL_CLOSE, :long, remote_id))
289
- end
290
- end
291
-
292
- # Returns true if the local end of the channel has declared that no more
293
- # data is forthcoming (see #eof!). Trying to send data via #send_data when
294
- # this is true will result in an exception being raised.
295
- def eof?
296
- @eof
297
- end
298
-
299
- # Tells the remote end of the channel that no more data is forthcoming
300
- # from this end of the channel. The remote end may still send data.
301
- def eof!
302
- return if eof?
303
- @eof = true
304
- connection.send_message(Buffer.from(:byte, CHANNEL_EOF, :long, remote_id))
305
- end
306
-
307
- # If an #on_process handler has been set up, this will cause it to be
308
- # invoked (passing the channel itself as an argument). It also causes all
309
- # pending output to be enqueued as CHANNEL_DATA packets (see #enqueue_pending_output).
310
- def process
311
- @on_process.call(self) if @on_process
312
- enqueue_pending_output
313
- end
314
-
315
- # Registers a callback to be invoked when data packets are received by the
316
- # channel. The callback is called with the channel as the first argument,
317
- # and the data as the second.
318
- #
319
- # channel.on_data do |ch, data|
320
- # puts "got data: #{data.inspect}"
321
- # end
322
- #
323
- # Data received this way is typically the data written by the remote
324
- # process to its +stdout+ stream.
325
- def on_data(&block)
326
- old, @on_data = @on_data, block
327
- old
328
- end
329
-
330
- # Registers a callback to be invoked when extended data packets are received
331
- # by the channel. The callback is called with the channel as the first
332
- # argument, the data type (as an integer) as the second, and the data as
333
- # the third. Extended data is almost exclusively used to send +stderr+ data
334
- # (+type+ == 1). Other extended data types are not defined by the SSH
335
- # protocol.
336
- #
337
- # channel.on_extended_data do |ch, type, data|
338
- # puts "got stderr: #{data.inspect}"
339
- # end
340
- def on_extended_data(&block)
341
- old, @on_extended_data = @on_extended_data, block
342
- old
343
- end
344
-
345
- # Registers a callback to be invoked for each pass of the event loop for
346
- # this channel. There are no guarantees on timeliness in the event loop,
347
- # but it will be called roughly once for each packet received by the
348
- # connection (not the channel). This callback is invoked with the channel
349
- # as the sole argument.
350
- #
351
- # Here's an example that accumulates the channel data into a variable on
352
- # the channel itself, and displays individual lines in the input one
353
- # at a time when the channel is processed:
354
- #
355
- # channel[:data] = ""
356
- #
357
- # channel.on_data do |ch, data|
358
- # channel[:data] << data
359
- # end
360
- #
361
- # channel.on_process do |ch|
362
- # if channel[:data] =~ /^.*?\n/
363
- # puts $&
364
- # channel[:data] = $'
365
- # end
366
- # end
367
- def on_process(&block)
368
- old, @on_process = @on_process, block
369
- old
370
- end
371
-
372
- # Registers a callback to be invoked when the server acknowledges that a
373
- # channel is closed. This is invoked with the channel as the sole argument.
374
- #
375
- # channel.on_close do |ch|
376
- # puts "remote end is closing!"
377
- # end
378
- def on_close(&block)
379
- old, @on_close = @on_close, block
380
- old
381
- end
382
-
383
- # Registers a callback to be invoked when the server indicates that no more
384
- # data will be sent to the channel (although the channel can still send
385
- # data to the server). The channel is the sole argument to the callback.
386
- #
387
- # channel.on_eof do |ch|
388
- # puts "remote end is done sending data"
389
- # end
390
- def on_eof(&block)
391
- old, @on_eof = @on_eof, block
392
- old
393
- end
394
-
395
- # Registers a callback to be invoked when the server was unable to open
396
- # the requested channel. The channel itself will be passed to the block,
397
- # along with the integer "reason code" for the failure, and a textual
398
- # description of the failure from the server.
399
- #
400
- # channel = session.open_channel do |ch|
401
- # # ..
402
- # end
403
- #
404
- # channel.on_open_failed { |ch, code, desc| ... }
405
- def on_open_failed(&block)
406
- old, @on_open_failed = @on_open_failed, block
407
- old
408
- end
409
-
410
- # Registers a callback to be invoked when a channel request of the given
411
- # type is received. The callback will receive the channel as the first
412
- # argument, and the associated (unparsed) data as the second. The data
413
- # will be a Net::SSH::Buffer that you will need to parse, yourself,
414
- # according to the kind of request you are watching.
415
- #
416
- # By default, if the request wants a reply, Net::SSH will send a
417
- # CHANNEL_SUCCESS response for any request that was handled by a registered
418
- # callback, and CHANNEL_FAILURE for any that wasn't, but if you want your
419
- # registered callback to result in a CHANNEL_FAILURE response, just raise
420
- # Net::SSH::ChannelRequestFailed.
421
- #
422
- # Some common channel requests that your programs might want to listen
423
- # for are:
424
- #
425
- # * "exit-status" : the exit status of the remote process will be reported
426
- # as a long integer in the data buffer, which you can grab via
427
- # data.read_long.
428
- # * "exit-signal" : if the remote process died as a result of a signal
429
- # being sent to it, the signal will be reported as a string in the
430
- # data, via data.read_string. (Not all SSH servers support this channel
431
- # request type.)
432
- #
433
- # channel.on_request "exit-status" do |ch, data|
434
- # puts "process terminated with exit status: #{data.read_long}"
435
- # end
436
- def on_request(type, &block)
437
- old, @on_request[type] = @on_request[type], block
438
- old
439
- end
440
-
441
- # Sends a new channel request with the given name. The extra +data+
442
- # parameter must either be empty, or consist of an even number of
443
- # arguments. See Net::SSH::Buffer.from for a description of their format.
444
- # If a block is given, it is registered as a callback for a pending
445
- # request, and the packet will be flagged so that the server knows a
446
- # reply is required. If no block is given, the server will send no
447
- # response to this request. Responses, where required, will cause the
448
- # callback to be invoked with the channel as the first argument, and
449
- # either true or false as the second, depending on whether the request
450
- # succeeded or not. The meaning of "success" and "failure" in this context
451
- # is dependent on the specific request that was sent.
452
- #
453
- # channel.send_channel_request "shell" do |ch, success|
454
- # if success
455
- # puts "user shell started successfully"
456
- # else
457
- # puts "could not start user shell"
458
- # end
459
- # end
460
- #
461
- # Most channel requests you'll want to send are already wrapped in more
462
- # convenient helper methods (see #exec and #subsystem).
463
- def send_channel_request(request_name, *data, &callback)
464
- info { "sending channel request #{request_name.inspect}" }
465
- msg = Buffer.from(:byte, CHANNEL_REQUEST,
466
- :long, remote_id, :string, request_name,
467
- :bool, !callback.nil?, *data)
468
- connection.send_message(msg)
469
- pending_requests << callback if callback
470
- end
471
-
472
- public # these methods are public, but for Net::SSH internal use only
473
-
474
- # Enqueues pending output at the connection as CHANNEL_DATA packets. This
475
- # does nothing if the channel has not yet been confirmed open (see
476
- # #do_open_confirmation). This is called automatically by #process, which
477
- # is called from the event loop (Connection::Session#process). You will
478
- # generally not need to invoke it directly.
479
- def enqueue_pending_output #:nodoc:
480
- return unless remote_id
481
-
482
- while output.length > 0
483
- length = output.length
484
- length = remote_window_size if length > remote_window_size
485
- length = remote_maximum_packet_size if length > remote_maximum_packet_size
486
-
487
- if length > 0
488
- connection.send_message(Buffer.from(:byte, CHANNEL_DATA, :long, remote_id, :string, output.read(length)))
489
- output.consume!
490
- @remote_window_size -= length
491
- else
492
- break
493
- end
494
- end
495
- end
496
-
497
- # Invoked when the server confirms that a channel has been opened.
498
- # The remote_id is the id of the channel as assigned by the remote host,
499
- # and max_window and max_packet are the maximum window and maximum
500
- # packet sizes, respectively. If an open-confirmation callback was
501
- # given when the channel was created, it is invoked at this time with
502
- # the channel itself as the sole argument.
503
- def do_open_confirmation(remote_id, max_window, max_packet) #:nodoc:
504
- @remote_id = remote_id
505
- @remote_window_size = @remote_maximum_window_size = max_window
506
- @remote_maximum_packet_size = max_packet
507
- connection.forward.agent(self) if connection.options[:forward_agent] && type == "session"
508
- @on_confirm_open.call(self) if @on_confirm_open
509
- end
510
-
511
- # Invoked when the server failed to open the channel. If an #on_open_failed
512
- # callback was specified, it will be invoked with the channel, reason code,
513
- # and description as arguments. Otherwise, a ChannelOpenFailed exception
514
- # will be raised.
515
- def do_open_failed(reason_code, description)
516
- if @on_open_failed
517
- @on_open_failed.call(self, reason_code, description)
518
- else
519
- raise ChannelOpenFailed.new(reason_code, description)
520
- end
521
- end
522
-
523
- # Invoked when the server sends a CHANNEL_WINDOW_ADJUST packet, and
524
- # causes the remote window size to be adjusted upwards by the given
525
- # number of bytes. This has the effect of allowing more data to be sent
526
- # from the local end to the remote end of the channel.
527
- def do_window_adjust(bytes) #:nodoc:
528
- @remote_maximum_window_size += bytes
529
- @remote_window_size += bytes
530
- end
531
-
532
- # Invoked when the server sends a channel request. If any #on_request
533
- # callback has been registered for the specific type of this request,
534
- # it is invoked. If +want_reply+ is true, a packet will be sent of
535
- # either CHANNEL_SUCCESS or CHANNEL_FAILURE type. If there was no callback
536
- # to handle the request, CHANNEL_FAILURE will be sent. Otherwise,
537
- # CHANNEL_SUCCESS, unless the callback raised ChannelRequestFailed. The
538
- # callback should accept the channel as the first argument, and the
539
- # request-specific data as the second.
540
- def do_request(request, want_reply, data) #:nodoc:
541
- result = true
542
-
543
- begin
544
- callback = @on_request[request] or raise ChannelRequestFailed
545
- callback.call(self, data)
546
- rescue ChannelRequestFailed
547
- result = false
548
- end
549
-
550
- if want_reply
551
- msg = Buffer.from(:byte, result ? CHANNEL_SUCCESS : CHANNEL_FAILURE, :long, remote_id)
552
- connection.send_message(msg)
553
- end
554
- end
555
-
556
- # Invokes the #on_data callback when the server sends data to the
557
- # channel. This will reduce the available window size on the local end,
558
- # but does not actually throttle requests that come in illegally when
559
- # the window size is too small. The callback is invoked with the channel
560
- # as the first argument, and the data as the second.
561
- def do_data(data) #:nodoc:
562
- update_local_window_size(data.length)
563
- @on_data.call(self, data) if @on_data
564
- end
565
-
566
- # Invokes the #on_extended_data callback when the server sends
567
- # extended data to the channel. This will reduce the available window
568
- # size on the local end. The callback is invoked with the channel,
569
- # type, and data.
570
- def do_extended_data(type, data)
571
- update_local_window_size(data.length)
572
- @on_extended_data.call(self, type, data) if @on_extended_data
573
- end
574
-
575
- # Invokes the #on_eof callback when the server indicates that no
576
- # further data is forthcoming. The callback is invoked with the channel
577
- # as the argument.
578
- def do_eof
579
- @on_eof.call(self) if @on_eof
580
- end
581
-
582
- # Invokes the #on_close callback when the server closes a channel.
583
- # The channel is the only argument.
584
- def do_close
585
- @on_close.call(self) if @on_close
586
- end
587
-
588
- # Invokes the next pending request callback with +false+ as the second
589
- # argument.
590
- def do_failure
591
- if callback = pending_requests.shift
592
- callback.call(self, false)
593
- else
594
- error { "channel failure recieved with no pending request to handle it (bug?)" }
595
- end
596
- end
597
-
598
- # Invokes the next pending request callback with +true+ as the second
599
- # argument.
600
- def do_success
601
- if callback = pending_requests.shift
602
- callback.call(self, true)
603
- else
604
- error { "channel success recieved with no pending request to handle it (bug?)" }
605
- end
606
- end
607
-
608
- private
609
-
610
- # Updates the local window size by the given amount. If the window
611
- # size drops to less than half of the local maximum (an arbitrary
612
- # threshold), a CHANNEL_WINDOW_ADJUST message will be sent to the
613
- # server telling it that the window size has grown.
614
- def update_local_window_size(size)
615
- @local_window_size -= size
616
- if local_window_size < local_maximum_window_size/2
617
- connection.send_message(Buffer.from(:byte, CHANNEL_WINDOW_ADJUST,
618
- :long, remote_id, :long, 0x20000))
619
- @local_window_size += 0x20000
620
- @local_maximum_window_size += 0x20000
621
- end
622
- end
623
- end
624
-
625
- end; end; end
@@ -1,33 +0,0 @@
1
- module Net; module SSH; module Connection
2
-
3
- # Definitions of constants that are specific to the connection layer of the
4
- # SSH protocol.
5
- module Constants
6
-
7
- #--
8
- # Connection protocol generic messages
9
- #++
10
-
11
- GLOBAL_REQUEST = 80
12
- REQUEST_SUCCESS = 81
13
- REQUEST_FAILURE = 82
14
-
15
- #--
16
- # Channel related messages
17
- #++
18
-
19
- CHANNEL_OPEN = 90
20
- CHANNEL_OPEN_CONFIRMATION = 91
21
- CHANNEL_OPEN_FAILURE = 92
22
- CHANNEL_WINDOW_ADJUST = 93
23
- CHANNEL_DATA = 94
24
- CHANNEL_EXTENDED_DATA = 95
25
- CHANNEL_EOF = 96
26
- CHANNEL_CLOSE = 97
27
- CHANNEL_REQUEST = 98
28
- CHANNEL_SUCCESS = 99
29
- CHANNEL_FAILURE = 100
30
-
31
- end
32
-
33
- end; end end