poolparty 0.2.18 → 0.2.69

Sign up to get free protection for your applications and to get access to all the features.
Files changed (335) hide show
  1. data/Manifest.txt +142 -47
  2. data/PostInstall.txt +5 -5
  3. data/README.txt +25 -4
  4. data/Rakefile +46 -2
  5. data/bin/cloud +12 -21
  6. data/bin/cloud-add-keypair +18 -13
  7. data/bin/cloud-configure +11 -18
  8. data/bin/cloud-contract +7 -17
  9. data/bin/cloud-ensure-provisioning +39 -0
  10. data/bin/cloud-expand +9 -17
  11. data/bin/cloud-handle-load +27 -0
  12. data/bin/cloud-list +3 -9
  13. data/bin/cloud-maintain +12 -18
  14. data/bin/cloud-osxcopy +3 -9
  15. data/bin/cloud-provision +20 -21
  16. data/bin/cloud-refresh +4 -13
  17. data/bin/cloud-run +3 -4
  18. data/bin/cloud-ssh +3 -2
  19. data/bin/cloud-start +18 -21
  20. data/bin/cloud-stats +17 -0
  21. data/bin/cloud-terminate +4 -7
  22. data/bin/messenger-get-current-nodes +14 -0
  23. data/bin/pool +12 -12
  24. data/bin/pool-describe +0 -1
  25. data/bin/{pool-spec → pool-generate} +1 -0
  26. data/bin/pool-init +28 -0
  27. data/bin/pool-list +14 -12
  28. data/bin/pool-start +11 -17
  29. data/bin/server-build-messenger +13 -6
  30. data/bin/server-fire-cmd +1 -1
  31. data/bin/server-get-load +5 -16
  32. data/bin/server-list-active +3 -10
  33. data/bin/server-rerun +4 -4
  34. data/bin/server-send-command +18 -0
  35. data/bin/server-show-stats +17 -0
  36. data/bin/server-start-client +29 -0
  37. data/bin/server-start-master +13 -14
  38. data/bin/server-start-node +14 -15
  39. data/bin/server-stop-client +3 -0
  40. data/bin/server-stop-master +3 -0
  41. data/bin/server-stop-node +3 -0
  42. data/bin/server-update-hosts +48 -0
  43. data/config/hoe.rb +4 -3
  44. data/examples/plugin_without_plugin_directory.rb +1 -2
  45. data/generators/poolspec/USAGE +2 -2
  46. data/generators/poolspec/poolspec_generator.rb +2 -1
  47. data/generators/poolspec/templates/pool_spec_template.erb +3 -2
  48. data/lib/erlang/messenger/Rakefile +12 -0
  49. data/lib/erlang/messenger/ebin/client.app +19 -0
  50. data/lib/erlang/messenger/ebin/master.app +1 -1
  51. data/lib/erlang/messenger/ebin/node.app +1 -1
  52. data/lib/erlang/messenger/ebin/pm_client_rel-0.1.rel +1 -0
  53. data/lib/erlang/messenger/ebin/pm_master_rel-0.1.rel +1 -1
  54. data/lib/erlang/messenger/ebin/pm_node_rel-0.1.rel +1 -1
  55. data/lib/erlang/messenger/include/defines.hrl +27 -0
  56. data/lib/erlang/messenger/lib/eunit/.svn/all-wcprops +53 -0
  57. data/lib/erlang/messenger/lib/eunit/.svn/entries +140 -0
  58. data/lib/erlang/messenger/lib/eunit/.svn/format +1 -0
  59. data/lib/erlang/messenger/lib/eunit/.svn/prop-base/NOTES.svn-base +5 -0
  60. data/lib/erlang/messenger/lib/eunit/.svn/text-base/AUTHORS.svn-base +2 -0
  61. data/lib/erlang/messenger/lib/eunit/.svn/text-base/CHANGELOG.svn-base +14 -0
  62. data/lib/erlang/messenger/lib/eunit/.svn/text-base/COPYING.svn-base +504 -0
  63. data/lib/erlang/messenger/lib/eunit/.svn/text-base/NOTES.svn-base +276 -0
  64. data/lib/erlang/messenger/lib/eunit/.svn/text-base/README.svn-base +3 -0
  65. data/lib/erlang/messenger/lib/eunit/.svn/text-base/sys.config.svn-base +9 -0
  66. data/lib/erlang/messenger/lib/eunit/.svn/text-base/vsn.mk.svn-base +1 -0
  67. data/lib/erlang/messenger/lib/eunit/doc/.svn/all-wcprops +59 -0
  68. data/lib/erlang/messenger/lib/eunit/doc/.svn/entries +142 -0
  69. data/lib/erlang/messenger/lib/eunit/doc/.svn/format +1 -0
  70. data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/erlang.png.svn-base +5 -0
  71. data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/eunit.html.svn-base +5 -0
  72. data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/index.html.svn-base +5 -0
  73. data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/modules-frame.html.svn-base +5 -0
  74. data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/overview-summary.html.svn-base +5 -0
  75. data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/packages-frame.html.svn-base +5 -0
  76. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/edoc-info.svn-base +3 -0
  77. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/erlang.png.svn-base +0 -0
  78. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/eunit.html.svn-base +172 -0
  79. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/index.html.svn-base +17 -0
  80. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/modules-frame.html.svn-base +12 -0
  81. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview-summary.html.svn-base +984 -0
  82. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview.edoc.svn-base +980 -0
  83. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/packages-frame.html.svn-base +11 -0
  84. data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/stylesheet.css.svn-base +55 -0
  85. data/lib/erlang/messenger/lib/eunit/ebin/.svn/all-wcprops +5 -0
  86. data/lib/erlang/messenger/lib/eunit/ebin/.svn/dir-prop-base +8 -0
  87. data/lib/erlang/messenger/lib/eunit/ebin/.svn/entries +28 -0
  88. data/lib/erlang/messenger/lib/eunit/ebin/.svn/format +1 -0
  89. data/lib/erlang/messenger/lib/eunit/examples/.svn/all-wcprops +23 -0
  90. data/lib/erlang/messenger/lib/eunit/examples/.svn/entries +66 -0
  91. data/lib/erlang/messenger/lib/eunit/examples/.svn/format +1 -0
  92. data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/eunit_examples.erl.svn-base +5 -0
  93. data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/fib.erl.svn-base +5 -0
  94. data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/eunit_examples.erl.svn-base +339 -0
  95. data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/fib.erl.svn-base +19 -0
  96. data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/tests.txt.svn-base +1 -0
  97. data/lib/erlang/messenger/lib/eunit/include/.svn/all-wcprops +11 -0
  98. data/lib/erlang/messenger/lib/eunit/include/.svn/entries +41 -0
  99. data/lib/erlang/messenger/lib/eunit/include/.svn/format +1 -0
  100. data/lib/erlang/messenger/lib/eunit/include/.svn/prop-base/eunit.hrl.svn-base +5 -0
  101. data/lib/erlang/messenger/lib/eunit/include/.svn/text-base/eunit.hrl.svn-base +313 -0
  102. data/lib/erlang/messenger/lib/eunit/src/.svn/all-wcprops +113 -0
  103. data/lib/erlang/messenger/lib/eunit/src/.svn/entries +259 -0
  104. data/lib/erlang/messenger/lib/eunit/src/.svn/format +1 -0
  105. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/autoload.erl.svn-base +5 -0
  106. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/code_monitor.erl.svn-base +5 -0
  107. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit.erl.svn-base +5 -0
  108. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_autoexport.erl.svn-base +5 -0
  109. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_data.erl.svn-base +5 -0
  110. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_internal.hrl.svn-base +5 -0
  111. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_lib.erl.svn-base +5 -0
  112. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_proc.erl.svn-base +5 -0
  113. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_serial.erl.svn-base +5 -0
  114. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_server.erl.svn-base +5 -0
  115. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_striptests.erl.svn-base +5 -0
  116. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_test.erl.svn-base +5 -0
  117. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tests.erl.svn-base +5 -0
  118. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tty.erl.svn-base +5 -0
  119. data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/file_monitor.erl.svn-base +5 -0
  120. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/autoload.erl.svn-base +388 -0
  121. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/code_monitor.erl.svn-base +243 -0
  122. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.app.src.svn-base +21 -0
  123. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.appup.src.svn-base +1 -0
  124. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.erl.svn-base +196 -0
  125. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_autoexport.erl.svn-base +102 -0
  126. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_data.erl.svn-base +798 -0
  127. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_internal.hrl.svn-base +48 -0
  128. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_lib.erl.svn-base +682 -0
  129. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_proc.erl.svn-base +552 -0
  130. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_serial.erl.svn-base +157 -0
  131. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_server.erl.svn-base +340 -0
  132. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_striptests.erl.svn-base +64 -0
  133. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_test.erl.svn-base +334 -0
  134. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tests.erl.svn-base +45 -0
  135. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tty.erl.svn-base +272 -0
  136. data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/file_monitor.erl.svn-base +409 -0
  137. data/lib/erlang/messenger/pm_client_rel-0.1.boot +0 -0
  138. data/lib/erlang/messenger/pm_client_rel-0.1.script +238 -0
  139. data/lib/erlang/messenger/pm_master_rel-0.1.boot +0 -0
  140. data/lib/erlang/messenger/pm_master_rel-0.1.script +82 -85
  141. data/lib/erlang/messenger/pm_node_rel-0.1.boot +0 -0
  142. data/lib/erlang/messenger/pm_node_rel-0.1.script +80 -85
  143. data/lib/erlang/messenger/src/client_app.erl +39 -0
  144. data/lib/erlang/messenger/src/client_server.erl +60 -0
  145. data/lib/erlang/messenger/src/pm_client.erl +48 -18
  146. data/lib/erlang/messenger/src/pm_client_old.erl +52 -0
  147. data/lib/erlang/messenger/src/pm_client_supervisor.erl +38 -0
  148. data/lib/erlang/messenger/src/pm_cluster.erl +20 -16
  149. data/lib/erlang/messenger/src/pm_event_manager.erl +27 -0
  150. data/lib/erlang/messenger/src/pm_master.erl +126 -34
  151. data/lib/erlang/messenger/src/pm_master_event_handler.erl +72 -0
  152. data/lib/erlang/messenger/src/pm_master_supervisor.erl +9 -10
  153. data/lib/erlang/messenger/src/pm_node.erl +107 -30
  154. data/lib/erlang/messenger/src/pm_node_supervisor.erl +13 -15
  155. data/lib/erlang/messenger/src/pm_packager.erl +5 -2
  156. data/lib/erlang/messenger/src/pm_strings.erl +11 -0
  157. data/lib/erlang/messenger/src/utils.erl +43 -8
  158. data/lib/erlang/messenger/useful_snippets +17 -0
  159. data/lib/poolparty/aska/aska.rb +150 -0
  160. data/lib/poolparty/base_packages/haproxy.rb +19 -26
  161. data/lib/poolparty/base_packages/heartbeat.rb +48 -47
  162. data/lib/poolparty/base_packages/poolparty.rb +88 -36
  163. data/lib/poolparty/base_packages/runit.rb +21 -0
  164. data/lib/poolparty/config/postlaunchmessage.txt +5 -0
  165. data/lib/poolparty/core/array.rb +4 -1
  166. data/lib/poolparty/core/class.rb +2 -0
  167. data/lib/poolparty/core/exception.rb +2 -1
  168. data/lib/poolparty/core/hash.rb +2 -2
  169. data/lib/poolparty/core/kernel.rb +3 -3
  170. data/lib/poolparty/core/metaid.rb +15 -0
  171. data/lib/poolparty/core/object.rb +42 -2
  172. data/lib/poolparty/core/string.rb +21 -6
  173. data/lib/poolparty/core/symbol.rb +9 -0
  174. data/lib/poolparty/dependency_resolutions/puppet.rb +20 -7
  175. data/lib/poolparty/exceptions/CloudNotFoundException.rb +7 -0
  176. data/lib/poolparty/exceptions/LoadRulesException.rb +7 -0
  177. data/lib/poolparty/exceptions/MasterException.rb +10 -0
  178. data/lib/poolparty/helpers/binary.rb +37 -4
  179. data/lib/poolparty/helpers/console.rb +25 -8
  180. data/lib/poolparty/helpers/nice_printer.rb +36 -0
  181. data/lib/poolparty/helpers/optioner.rb +51 -16
  182. data/lib/poolparty/helpers/provisioner_base.rb +117 -28
  183. data/lib/poolparty/helpers/provisioners/master.rb +102 -35
  184. data/lib/poolparty/helpers/provisioners/slave.rb +25 -9
  185. data/lib/poolparty/modules/cloud_dsl.rb +13 -0
  186. data/lib/poolparty/modules/cloud_resourcer.rb +51 -8
  187. data/lib/poolparty/modules/configurable.rb +1 -1
  188. data/lib/poolparty/modules/definable_resource.rb +2 -2
  189. data/lib/poolparty/modules/file_writer.rb +37 -6
  190. data/lib/poolparty/modules/method_missing_sugar.rb +8 -3
  191. data/lib/poolparty/modules/pretty_printer.rb +1 -0
  192. data/lib/poolparty/modules/resourcing_dsl.rb +4 -2
  193. data/lib/poolparty/modules/thread_pool.rb +106 -0
  194. data/lib/poolparty/monitors/base_monitor.rb +65 -6
  195. data/lib/poolparty/monitors/monitors/cpu_monitor.rb +1 -1
  196. data/lib/poolparty/monitors/monitors/memory_monitor.rb +28 -1
  197. data/lib/poolparty/monitors/monitors/web_monitor.rb +18 -0
  198. data/lib/poolparty/net/messenger.rb +72 -0
  199. data/lib/poolparty/net/remote.rb +5 -2
  200. data/lib/poolparty/net/remote_bases/ec2/ec2_response_object.rb +66 -0
  201. data/lib/poolparty/net/remote_bases/ec2.rb +133 -131
  202. data/lib/poolparty/net/remote_instance.rb +28 -6
  203. data/lib/poolparty/net/remoter.rb +117 -64
  204. data/lib/poolparty/net/remoter_base.rb +49 -11
  205. data/lib/poolparty/plugins/deploydirectory.rb +66 -0
  206. data/lib/poolparty/plugins/line.rb +5 -4
  207. data/lib/poolparty/plugins/rsyncmirror.rb +26 -0
  208. data/lib/poolparty/plugins/runit.rb +96 -0
  209. data/lib/poolparty/plugins/svn.rb +1 -1
  210. data/lib/poolparty/pool/base.rb +47 -18
  211. data/lib/poolparty/pool/cloud.rb +121 -65
  212. data/lib/poolparty/pool/custom_resource.rb +4 -20
  213. data/lib/poolparty/pool/loggable.rb +3 -8
  214. data/lib/poolparty/pool/plugin.rb +14 -19
  215. data/lib/poolparty/pool/plugin_model.rb +8 -8
  216. data/lib/poolparty/pool/pool.rb +28 -11
  217. data/lib/poolparty/pool/resource.rb +109 -40
  218. data/lib/poolparty/pool/resources/class_package.rb +74 -33
  219. data/lib/poolparty/pool/resources/conditional.rb +32 -10
  220. data/lib/poolparty/pool/resources/custom_service.rb +30 -0
  221. data/lib/poolparty/pool/resources/exec.rb +6 -5
  222. data/lib/poolparty/pool/resources/gem_package.rb +52 -0
  223. data/lib/poolparty/pool/resources/mount.rb +22 -0
  224. data/lib/poolparty/pool/resources/package.rb +13 -3
  225. data/lib/poolparty/pool/resources/sshkey.rb +1 -1
  226. data/lib/poolparty/pool/resources/variable.rb +4 -0
  227. data/lib/poolparty/pool/script.rb +8 -6
  228. data/lib/poolparty/templates/haproxy.conf +1 -1
  229. data/lib/poolparty/templates/messenger/client/log-run.erb +2 -0
  230. data/lib/poolparty/templates/messenger/client/run.erb +4 -0
  231. data/lib/poolparty/templates/messenger/master/log-run.erb +2 -0
  232. data/lib/poolparty/templates/messenger/master/run.erb +4 -0
  233. data/lib/poolparty/templates/messenger/node/log-run.erb +2 -0
  234. data/lib/poolparty/templates/messenger/node/run.erb +4 -0
  235. data/lib/poolparty/templates/poolparty.monitor +1 -1
  236. data/lib/poolparty/templates/puppet.conf +0 -0
  237. data/lib/poolparty/templates/puppetcleaner +6 -0
  238. data/lib/poolparty/templates/puppetrerun +9 -0
  239. data/lib/poolparty/templates/puppetrunner +8 -0
  240. data/lib/poolparty/templates/yaws.conf +19 -0
  241. data/lib/poolparty/version.rb +1 -1
  242. data/lib/poolparty.rb +35 -6
  243. data/lib/poolpartycl.rb +4 -0
  244. data/log/pool.logs +0 -0
  245. data/poolparty.gemspec +574 -61
  246. data/spec/poolparty/aska/aska_spec.rb +122 -0
  247. data/spec/poolparty/bin/console_spec.rb +18 -0
  248. data/spec/poolparty/core/hash_spec.rb +4 -4
  249. data/spec/poolparty/core/object_spec.rb +29 -0
  250. data/spec/poolparty/core/string_spec.rb +6 -0
  251. data/spec/poolparty/core/time_spec.rb +0 -3
  252. data/spec/poolparty/helpers/binary_spec.rb +2 -2
  253. data/spec/poolparty/helpers/optioner_spec.rb +1 -4
  254. data/spec/poolparty/helpers/provisioner_base_spec.rb +14 -1
  255. data/spec/poolparty/helpers/provisioners/master_spec.rb +3 -3
  256. data/spec/poolparty/modules/cloud_resourcer_spec.rb +3 -3
  257. data/spec/poolparty/modules/configurable_spec.rb +4 -1
  258. data/spec/poolparty/monitors/base_monitor_spec.rb +94 -2
  259. data/spec/poolparty/monitors/monitors/cpu_monitor_spec.rb +0 -1
  260. data/spec/poolparty/monitors/monitors/memory_monitor_spec.rb +47 -0
  261. data/spec/poolparty/{helpers → net}/messenger_spec.rb +3 -1
  262. data/spec/poolparty/net/remote_bases/ec2_spec.rb +46 -5
  263. data/spec/poolparty/net/remote_instance_spec.rb +2 -1
  264. data/spec/poolparty/net/remote_spec.rb +30 -8
  265. data/spec/poolparty/net/remoter_base_spec.rb +4 -1
  266. data/spec/poolparty/net/remoter_spec.rb +11 -108
  267. data/spec/poolparty/plugins/deploydirectory_spec.rb +51 -0
  268. data/spec/poolparty/pool/base_spec.rb +43 -33
  269. data/spec/poolparty/pool/cloud_spec.rb +299 -248
  270. data/spec/poolparty/pool/custom_resource_spec.rb +10 -5
  271. data/spec/poolparty/pool/example_spec.rb +0 -84
  272. data/spec/poolparty/pool/plugin_model_spec.rb +3 -2
  273. data/spec/poolparty/pool/plugin_spec.rb +89 -62
  274. data/spec/poolparty/pool/pool_spec.rb +17 -2
  275. data/spec/poolparty/pool/resource_spec.rb +341 -236
  276. data/spec/poolparty/pool/resources/class_package_spec.rb +102 -66
  277. data/spec/poolparty/pool/resources/conditional_spec.rb +65 -26
  278. data/spec/poolparty/pool/resources/cron_spec.rb +3 -2
  279. data/spec/poolparty/pool/resources/exec_spec.rb +1 -1
  280. data/spec/poolparty/pool/resources/gem_spec.rb +18 -14
  281. data/spec/poolparty/pool/resources/remote_file_spec.rb +1 -1
  282. data/spec/poolparty/pool/resources/variable_spec.rb +1 -1
  283. data/spec/poolparty/pool/script_spec.rb +58 -37
  284. data/spec/poolparty/pool/test_plugins/webserver.rb +1 -0
  285. data/spec/poolparty/spec_helper.rb +16 -5
  286. data/tasks/deployment.rake +19 -3
  287. data/tasks/development.rake +11 -2
  288. data/tasks/ec2.rake +9 -1
  289. data/website/index.html +2 -2
  290. metadata +167 -70
  291. data/bin/pool-provision +0 -34
  292. data/erl_crash.dump +0 -8409
  293. data/examples/with_apache_plugin.rb +0 -22
  294. data/lib/erlang/messenger/Makefile +0 -15
  295. data/lib/erlang/messenger/ebin/master_app.beam +0 -0
  296. data/lib/erlang/messenger/ebin/node_app.beam +0 -0
  297. data/lib/erlang/messenger/ebin/pm_client.beam +0 -0
  298. data/lib/erlang/messenger/ebin/pm_cluster.beam +0 -0
  299. data/lib/erlang/messenger/ebin/pm_event_handler.beam +0 -0
  300. data/lib/erlang/messenger/ebin/pm_master.beam +0 -0
  301. data/lib/erlang/messenger/ebin/pm_master_supervisor.beam +0 -0
  302. data/lib/erlang/messenger/ebin/pm_node.beam +0 -0
  303. data/lib/erlang/messenger/ebin/pm_node_supervisor.beam +0 -0
  304. data/lib/erlang/messenger/ebin/pm_packager.beam +0 -0
  305. data/lib/erlang/messenger/ebin/utils.beam +0 -0
  306. data/lib/erlang/messenger/lib/eunit/Makefile +0 -28
  307. data/lib/erlang/messenger/lib/eunit/ebin/autoload.beam +0 -0
  308. data/lib/erlang/messenger/lib/eunit/ebin/code_monitor.beam +0 -0
  309. data/lib/erlang/messenger/lib/eunit/ebin/eunit.beam +0 -0
  310. data/lib/erlang/messenger/lib/eunit/ebin/eunit_autoexport.beam +0 -0
  311. data/lib/erlang/messenger/lib/eunit/ebin/eunit_data.beam +0 -0
  312. data/lib/erlang/messenger/lib/eunit/ebin/eunit_lib.beam +0 -0
  313. data/lib/erlang/messenger/lib/eunit/ebin/eunit_proc.beam +0 -0
  314. data/lib/erlang/messenger/lib/eunit/ebin/eunit_serial.beam +0 -0
  315. data/lib/erlang/messenger/lib/eunit/ebin/eunit_server.beam +0 -0
  316. data/lib/erlang/messenger/lib/eunit/ebin/eunit_striptests.beam +0 -0
  317. data/lib/erlang/messenger/lib/eunit/ebin/eunit_test.beam +0 -0
  318. data/lib/erlang/messenger/lib/eunit/ebin/eunit_tests.beam +0 -0
  319. data/lib/erlang/messenger/lib/eunit/ebin/eunit_tty.beam +0 -0
  320. data/lib/erlang/messenger/lib/eunit/ebin/file_monitor.beam +0 -0
  321. data/lib/erlang/messenger/lib/eunit/src/Makefile +0 -46
  322. data/lib/erlang/messenger/src/pm_event_handler.erl +0 -21
  323. data/lib/poolparty/config/allowed_commands.yml +0 -1
  324. data/lib/poolparty/helpers/messenger.rb +0 -29
  325. data/lib/poolparty/plugins/git.rb +0 -39
  326. data/lib/poolparty/pool/resources/gem.rb +0 -28
  327. data/lib/poolparty/pool/tmp/.ppkeys +0 -3
  328. data/lib/poolparty/pool/tmp/happydayz +0 -1
  329. data/lib/poolparty/pool/tmp/install_master.sh +0 -33
  330. data/lib/poolparty/pool/tmp/pool.spec +0 -11
  331. data/lib/poolparty/pool/tmp/poolparty.pp +0 -600
  332. data/lib/poolparty/pool/tmp/tc-instances.list +0 -1
  333. data/lib/poolparty/templates/fileserver.conf +0 -4
  334. data/spec/poolparty/plugins/git_spec.rb +0 -33
  335. data/test_manifest.pp +0 -658
@@ -0,0 +1,276 @@
1
+
2
+ EUnit Developer notebook
3
+ ========================
4
+
5
+ Concepts and features
6
+ ---------------------
7
+
8
+ - Separation of tests and test runners (different ways of reporting)
9
+
10
+ * Tests are represented by data structures
11
+ * Traversal and execution are separated
12
+ * TODO: Cannot enumerate all tests in advance for really large sets
13
+
14
+ - Test engine as a producer/iterator: run next, step back, repeat...
15
+
16
+ * Iterators working (reverse/single stepping currently not used)
17
+ * TODO: Need to be able to stop after N failures
18
+
19
+ - Test module - a container (as in 'eunit:run(M)'); automatic test collection
20
+
21
+ * Works; a module name can be used to represent its set of tests.
22
+
23
+ - Single tests (exported nullary functions, to be called directly)
24
+
25
+ * Works; has drawbacks (no comments, context, or order, many
26
+ functions)
27
+
28
+ - Abstraction of tests, for reuse
29
+
30
+ * Tests are just nullary funs; this is both simple and powerful
31
+ * You can use 'fun name/arity' or 'fun module:name/arity' for sharing code
32
+ * Generator functions are used to create specialized test funs
33
+
34
+ - Executing a test by calling directly should have observable
35
+ failure/success, and tests should not in themselves output test
36
+ results to console or otherwise
37
+
38
+ * Tests succeed by returning properly (any return value)
39
+ * Tests fail by throwing an exception (any exception)
40
+
41
+ - It should be possible to run single tests without eunit runtime support
42
+
43
+ * Just apply a test function to an empty argument list and see if it
44
+ throws an exception or not
45
+ * More complex test representations (grouping, setup/teardown etc.)
46
+ need eunit support functions
47
+
48
+ - It should be possible to write tests without requiring eunit headers
49
+
50
+ * Using plain tuples, funs, atoms, and lists to represent tests; not
51
+ more difficult, just less convenient.
52
+
53
+ - Tests are identified by: module/sourcefile, test function name, and
54
+ line number (if available)
55
+
56
+ * This is also used in listings of test sets
57
+ * Funs have useful metadata, which allows most of the identifying
58
+ info to be extracted automatically
59
+
60
+ - Test functions must be identified as either directly callable or as
61
+ returning one or more test representations (the latter is referred to
62
+ as a "generator"). We cannot just try to call any function and check
63
+ the result - it would not be possible to _collect_ tests without
64
+ accidentally _executing_ tests in that case. So, the simplest form of
65
+ test generator function should return a nullary fun. This can be
66
+ tested directly and easily by a user.
67
+
68
+ * Using a '_test_' suffix (as opposed to a '_test' suffix) for test
69
+ generator functions (that return test *representations*) is a good
70
+ idea, since it makes it easy to accomodate both styles of writing
71
+ tests, does not break existing code, allows both types of functions
72
+ to be automatically detected, and makes it easy to write wrapper
73
+ functions. The underscore just before the opening parenthesis makes
74
+ it more visible than most other variants.
75
+
76
+ - Conditional compilation of test code
77
+
78
+ * Defining the NOTEST macro is used to disable testing code; this is
79
+ used by all the eunit header files.
80
+ * Testing can be disabled by default by including eunit_off.hrl
81
+ instead of eunit.hrl, or before any other eunit header file; then,
82
+ defining the TEST macro externally will enable the testing code.
83
+ The same effect is achieved by defining NOTEST before including
84
+ eunit.hrl or any other eunit header file, but using eunit_off.hrl
85
+ is always independent of the actual macro name used for control.
86
+
87
+ - Exporting test functions manually is annoying and easy to forget
88
+ - Decorating a normal module with common eunit entry functions
89
+
90
+ * Including eunit.hrl inserts a parse transform (unless NOTEST or
91
+ EUNIT_NOAUTO is defined) which automatically exports functions
92
+ identified as test functions with the proper suffixes and arity,
93
+ and adds a test/0 function to the module (unless it exists).
94
+
95
+ - Label of a single test
96
+
97
+ * {"...", Test}, also works for groups.
98
+
99
+ - Context of a single test; set up and tear down of context; multiple
100
+ tests within same context (single set up/tear down)
101
+
102
+ * {setup, Setup, Teardown, Generator}
103
+ * {setup, Setup, Generator} works as a simple let-binding
104
+
105
+ - Multiple tests using same context (individual set up/tear down)
106
+
107
+ * {foreach, Setup, Teardown, [Generator]}
108
+ {foreach1, Setup, Teardown, [{Arg, Generator}]}
109
+
110
+ - Aggregation of tests in an order-dependent sequence; aggregation of
111
+ tests in explicitly parallel sets
112
+
113
+ * {inorder, T} | {inparallel, T}
114
+
115
+ - Aggregation of tests in unspecified-order sets
116
+
117
+ * Deep lists represent generic test sets
118
+
119
+ - Test suites: label of a test suite, composition of test suites
120
+
121
+ * Deep lists and {"label", DeepList} work fine for this purpose
122
+
123
+ - Defining test suites without modifying code or creating new modules.
124
+
125
+ * This does not create new tests - just select specific modules or
126
+ functions. If there is need for expressiveness beyond a simple list
127
+ of constant terms (no funs), it should be put in a module. Hence, a
128
+ facility for "consulting" files should be sufficient.
129
+ * Works (simply writing "filename" or {file, "filename"}).
130
+
131
+ - Extra header files for better macro namespace separation (eunit_...)
132
+
133
+ * Seems to be overkill - the leading underscore in the normal macros
134
+ lessens the need for such double definitions
135
+
136
+ - Running tests in parallel
137
+
138
+ * Works (also running N tests at a time)
139
+ * TODO: Restructure to start new job as soon as slot is available
140
+
141
+ - Running a test or set of tests in a new process (like setup/teardown)
142
+
143
+ * Works
144
+
145
+ - Running tests on a separate (existing) node
146
+
147
+ * Implemented as {spawn, Node, Tests}: assuming a specific node
148
+ exists, run a set of tests on that node, rather than locally, the
149
+ main idea being that a number of test sets could be run in parallel
150
+ on separate machines (and maybe none are run locally)
151
+
152
+ - Running OS commands, testing output and result values
153
+
154
+ * Works; output is normalized to LF only for linebreaks on all platforms
155
+ * TODO: Better Windows support (not much tested)
156
+ * TODO: Is it possible to capture stderr separately somehow?
157
+
158
+ - Starting one or more additional nodes to run tests or suites on
159
+
160
+ * {node, foo@bar.baz, Instantiator}
161
+ * {node, foo, Instantiator}
162
+
163
+ - Whole-application testing (using .app files?)
164
+
165
+ * {application, AppName}
166
+ * {file, AppFile}
167
+
168
+ - Identification of tests within a test set (e.g., which succeeded,
169
+ which failed, repeating selected tests or groups of tests, etc.)
170
+
171
+ * The numbering scheme in listings take care of this point
172
+
173
+ - Running EUnit from command line, as a standalone tool
174
+
175
+ * TODO: Command line interface similar to that of edoc
176
+
177
+ - Open source (licensed under the GNU Lesser General Public Licence)
178
+
179
+ * Header files can be used without tainting, according to LGPL
180
+
181
+ - Marking tests as known failures, for handling known bugs
182
+
183
+ * TODO: Known-failure is necessary to avoid writing "inverted-logic" tests
184
+ * TODO: Is it possible to handle known timout/setup failures?
185
+
186
+ - Diagnostic tests which never fail, but may cause warnings
187
+
188
+ Assorted notes which may or may not be useful, e.g. for documentation
189
+ ---------------------------------------------------------------------
190
+
191
+ Tests for exported functions of a module should preferably be in a
192
+ separate module. This is good in many ways, but mainly boils down to
193
+ that modifying test code should not have to imply modifying source code,
194
+ and vice versa. At the same time, it should be possible for a module to
195
+ export test functions for private functions, and to have these tests
196
+ conditionally compiled (use -ifdef(EUNIT) or -ifdef(TEST) for this).
197
+
198
+ Pyunit uses 'failIf' and 'failUnless' as standard test names, and
199
+ 'assert' as a synonym for 'failUnless'. I have settled on 'assert' and
200
+ 'assertNot' as the standard names. Maybe I'll add 'failUnless' and
201
+ 'failIf' as synonyms, if users ask for it.
202
+
203
+ Junit/Pyunit get a lot of context embedding for free due to the object
204
+ oriented languages (using class members and inheritance); in Erlang,
205
+ context must be passed to tests as arguments or through local variable
206
+ bindings if there are multiple tests within a function clause. This is
207
+ particularly important for reuse of tests with small variations. To be
208
+ able to instantiate the environment of a set of tests when executing a
209
+ setup, the setup must be a function which returns the test set and the
210
+ cleanup function.
211
+
212
+ A list of tests represents an order-independent set. Usually, the tests
213
+ will be run in order, but it is not required and tests may also be
214
+ executed in parallel if they are included in an 'inparallel'-context.
215
+ Labeling a set of tests does not change its meaning in any way.
216
+
217
+ Wrapping a set of tests in a 'setup' implies that the setup is executed,
218
+ then _all_ the tests (those returned by the generator fun) are executed,
219
+ and finally the cleanup is executed regardless of whether any tests
220
+ failed or not. If the setup itself failed, the whole test set _and_ the
221
+ cleanup is skipped (there is no setup-result that can be passed to the
222
+ cleanup).
223
+
224
+ Wrapping a (deep) list of generators in a 'foreach' is equivalent to
225
+ wrapping each individual generator in the list in a corresponding
226
+ 'setup', regardless of nesting depth. E.g., foreach(a, [foreach(b, [t1,
227
+ t2]), foreach(c, [t3, t4])]) is equivalent to [setup(a, setup(b, t1)),
228
+ setup(a, setup(b, t2)), setup(a, setup(c, t3)), setup(a, setup(c, t4))].
229
+ Note that 'foreach' does not distribute over 'setup', since the nesting
230
+ level of 'setup' must be preserved.
231
+
232
+ While a plain 'foreach' can be done over any set of generators, a
233
+ 'foreach1' requires that there is a pairing of argument+generator for
234
+ each element.
235
+
236
+ See the file eunit_data.erl for a description of test representations.
237
+
238
+ Lists of tests/generators/arg-generator-pairs can all be deep, but every
239
+ sublist must be a proper list, i.e., nil-terminated.
240
+
241
+ Test Set Traversal Operations (traversal only - no execution here):
242
+
243
+ Init: create iterator from test representation.
244
+ Next: the most common operation - get the next test or group
245
+ Previous: step back to the previous operation (in the group)
246
+ Enter: enter a group, executing any side effects
247
+ Browse: enter a group without triggering side effects
248
+ Up: leave the current group
249
+
250
+ Problem: cannot browse a 'setup'-group unless you are able to instantiate
251
+ the generator fun, and to do that you either need the actual result from
252
+ the 'setup' fun, or you need to know if the generator fun expects an
253
+ argument matching a certain pattern, such as a 3-tuple. You could then
254
+ pass dummy values such as 'undefined' for the components, since they
255
+ will not be used unless you try to run one of the instantiated tests or
256
+ a setup fun of a subgroup.
257
+
258
+ If there was never a fun that returned a list of tests, but only funs
259
+ around single tests, it would be simple - just don't apply any funs
260
+ while traversing. But then it would be necessary to wrap each test
261
+ within a 'setup' in its own generator fun, which would be a pain, and it
262
+ would not be possible to nest 'setup' groups in an easy way (variables
263
+ bound in the outer group would have to be explicitly passed to the
264
+ generator funs in the inner group, using manual closure conversion). This
265
+ is simply not tolerable. So, dummy value instantiation is the only way
266
+ to go, if it should be possible at all to browse test groups without
267
+ executing setup/cleanup funs.
268
+
269
+ Solution: a 'browser' function that tries to pass variants of dummy
270
+ values to a fun until it either succeeds or fails with some other error
271
+ than 'fun_clause'. This has been implemented and is the basis of the
272
+ test listing function.
273
+
274
+ When a setup-group is being browsed, its tests cannot be executed (since
275
+ they are instantiated with dummy values), and its subgroups can only be
276
+ further Browsed, not Entered, for the same reason.
@@ -0,0 +1,3 @@
1
+ EUnit 2.0 Beta release
2
+
3
+ See the doc/ subdirectory for documentation in HTML.
@@ -0,0 +1,9 @@
1
+ [
2
+ {kernel,
3
+ [{error_logger,
4
+ {file, "priv/eunit.log"}}]},
5
+ {sasl,
6
+ [{sasl_error_logger, false},
7
+ {error_logger_mf_dir, "."},
8
+ {error_logger_mf_maxfiles, 20},
9
+ {error_logger_mf_maxbytes, 1000000}]}].
@@ -0,0 +1 @@
1
+ EUNIT_VSN = 2.0 beta 1
@@ -0,0 +1,59 @@
1
+ K 25
2
+ svn:wc:ra_dav:version-url
3
+ V 38
4
+ /contribs/!svn/ver/263/trunk/eunit/doc
5
+ END
6
+ overview.edoc
7
+ K 25
8
+ svn:wc:ra_dav:version-url
9
+ V 52
10
+ /contribs/!svn/ver/263/trunk/eunit/doc/overview.edoc
11
+ END
12
+ stylesheet.css
13
+ K 25
14
+ svn:wc:ra_dav:version-url
15
+ V 53
16
+ /contribs/!svn/ver/172/trunk/eunit/doc/stylesheet.css
17
+ END
18
+ edoc-info
19
+ K 25
20
+ svn:wc:ra_dav:version-url
21
+ V 48
22
+ /contribs/!svn/ver/172/trunk/eunit/doc/edoc-info
23
+ END
24
+ modules-frame.html
25
+ K 25
26
+ svn:wc:ra_dav:version-url
27
+ V 57
28
+ /contribs/!svn/ver/219/trunk/eunit/doc/modules-frame.html
29
+ END
30
+ overview-summary.html
31
+ K 25
32
+ svn:wc:ra_dav:version-url
33
+ V 60
34
+ /contribs/!svn/ver/263/trunk/eunit/doc/overview-summary.html
35
+ END
36
+ eunit.html
37
+ K 25
38
+ svn:wc:ra_dav:version-url
39
+ V 49
40
+ /contribs/!svn/ver/263/trunk/eunit/doc/eunit.html
41
+ END
42
+ packages-frame.html
43
+ K 25
44
+ svn:wc:ra_dav:version-url
45
+ V 58
46
+ /contribs/!svn/ver/219/trunk/eunit/doc/packages-frame.html
47
+ END
48
+ index.html
49
+ K 25
50
+ svn:wc:ra_dav:version-url
51
+ V 49
52
+ /contribs/!svn/ver/219/trunk/eunit/doc/index.html
53
+ END
54
+ erlang.png
55
+ K 25
56
+ svn:wc:ra_dav:version-url
57
+ V 49
58
+ /contribs/!svn/ver/219/trunk/eunit/doc/erlang.png
59
+ END
@@ -0,0 +1,142 @@
1
+ 8
2
+
3
+ dir
4
+ 263
5
+ http://svn.process-one.net/contribs/trunk/eunit/doc
6
+ http://svn.process-one.net/contribs
7
+
8
+
9
+
10
+ 2008-10-12T12:17:56.811879Z
11
+ 263
12
+ rcarlsson
13
+
14
+
15
+ svn:special svn:externals svn:needs-lock
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ 5c723cce-c907-0410-9aa2-ab8348fff7a4
28
+
29
+ overview.edoc
30
+ file
31
+
32
+
33
+
34
+
35
+ 2008-10-18T23:25:35.000000Z
36
+ af4447cd25c26312306f2f70586aa6fb
37
+ 2008-10-12T12:17:56.811879Z
38
+ 263
39
+ rcarlsson
40
+
41
+ stylesheet.css
42
+ file
43
+
44
+
45
+
46
+
47
+ 2008-10-18T23:25:35.000000Z
48
+ 6e11b8ef1d68117868228d9fd1e4fce9
49
+ 2007-03-22T19:20:34.421238Z
50
+ 172
51
+ rcarlsson
52
+
53
+ edoc-info
54
+ file
55
+
56
+
57
+
58
+
59
+ 2008-10-18T23:25:35.000000Z
60
+ 5ae38b5d072e0202af1bfbaf6aebd1ed
61
+ 2007-03-22T19:20:34.421238Z
62
+ 172
63
+ rcarlsson
64
+
65
+ modules-frame.html
66
+ file
67
+
68
+
69
+
70
+
71
+ 2008-10-18T23:25:35.000000Z
72
+ c9d803b4b7cd0380b1f4a58786252366
73
+ 2007-05-10T11:49:35.930693Z
74
+ 219
75
+ rcarlsson
76
+ has-props
77
+
78
+ overview-summary.html
79
+ file
80
+
81
+
82
+
83
+
84
+ 2008-10-18T23:25:35.000000Z
85
+ 849e34a030ef1d2176958f6810feec4f
86
+ 2008-10-12T12:17:56.811879Z
87
+ 263
88
+ rcarlsson
89
+ has-props
90
+
91
+ eunit.html
92
+ file
93
+
94
+
95
+
96
+
97
+ 2008-10-18T23:25:35.000000Z
98
+ 7724288cbff17b29387d6f830d5a856a
99
+ 2008-10-12T12:17:56.811879Z
100
+ 263
101
+ rcarlsson
102
+ has-props
103
+
104
+ packages-frame.html
105
+ file
106
+
107
+
108
+
109
+
110
+ 2008-10-18T23:25:35.000000Z
111
+ a720dd0c1a9a393f3ab4208082c2357b
112
+ 2007-05-10T11:49:35.930693Z
113
+ 219
114
+ rcarlsson
115
+ has-props
116
+
117
+ index.html
118
+ file
119
+
120
+
121
+
122
+
123
+ 2008-10-18T23:25:35.000000Z
124
+ 71189e0120cccc4749a4960b5dae52a2
125
+ 2007-05-10T11:49:35.930693Z
126
+ 219
127
+ rcarlsson
128
+ has-props
129
+
130
+ erlang.png
131
+ file
132
+
133
+
134
+
135
+
136
+ 2008-10-18T23:25:35.000000Z
137
+ f6077f849b23033f1533877a2f236bd6
138
+ 2007-05-10T11:49:35.930693Z
139
+ 219
140
+ rcarlsson
141
+ has-props
142
+
@@ -0,0 +1,5 @@
1
+ K 13
2
+ svn:mime-type
3
+ V 9
4
+ image/png
5
+ END
@@ -0,0 +1,5 @@
1
+ K 13
2
+ svn:mime-type
3
+ V 9
4
+ text/html
5
+ END
@@ -0,0 +1,5 @@
1
+ K 13
2
+ svn:mime-type
3
+ V 9
4
+ text/html
5
+ END
@@ -0,0 +1,5 @@
1
+ K 13
2
+ svn:mime-type
3
+ V 9
4
+ text/html
5
+ END
@@ -0,0 +1,5 @@
1
+ K 13
2
+ svn:mime-type
3
+ V 9
4
+ text/html
5
+ END
@@ -0,0 +1,5 @@
1
+ K 13
2
+ svn:mime-type
3
+ V 9
4
+ text/html
5
+ END
@@ -0,0 +1,3 @@
1
+ {application,eunit}.
2
+ {packages,[]}.
3
+ {modules,[eunit]}.