engineyard-serverside 2.8.0.pre4 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (308) hide show
  1. checksums.yaml +13 -5
  2. data/features/hook/running-a-deploy-hook.feature +277 -0
  3. data/features/hook/step_definitions/running-a-deploy-hook-steps.rb +200 -0
  4. data/features/step_definitions/command_steps.rb +8 -0
  5. data/features/step_definitions/version_steps.rb +5 -0
  6. data/features/support/env.rb +63 -0
  7. data/features/support/error_codes.rb +17 -0
  8. data/features/support/fs_helpers.rb +82 -0
  9. data/features/support/output_helpers.rb +7 -0
  10. data/features/support/runner.rb +41 -0
  11. data/features/version.feature +7 -0
  12. data/lib/engineyard-serverside/cli/app.rb +6 -0
  13. data/lib/engineyard-serverside/configuration.rb +3 -3
  14. data/lib/engineyard-serverside/deploy.rb +2 -1
  15. data/lib/engineyard-serverside/propagator.rb +1 -1
  16. data/lib/engineyard-serverside/shell.rb +38 -10
  17. data/lib/engineyard-serverside/version.rb +1 -1
  18. data/lib/engineyard-serverside.rb +2 -5
  19. data/spec/engineyard-serverside/callbacks/collection/combined_spec.rb +232 -0
  20. data/spec/engineyard-serverside/callbacks/collection/deploy_hooks_spec.rb +170 -0
  21. data/spec/engineyard-serverside/callbacks/collection/service_hooks/collection_spec.rb +171 -0
  22. data/spec/engineyard-serverside/callbacks/collection/service_hooks/combined_spec.rb +174 -0
  23. data/spec/engineyard-serverside/callbacks/collection/service_hooks_spec.rb +31 -0
  24. data/spec/engineyard-serverside/callbacks/collection_spec.rb +49 -0
  25. data/spec/engineyard-serverside/callbacks/distributor/remote_spec.rb +135 -0
  26. data/spec/engineyard-serverside/callbacks/distributor/viability_filter_spec.rb +208 -0
  27. data/spec/engineyard-serverside/callbacks/distributor_spec.rb +43 -0
  28. data/spec/engineyard-serverside/callbacks/executor/executable_spec.rb +386 -0
  29. data/spec/engineyard-serverside/callbacks/executor/ruby/context_spec.rb +538 -0
  30. data/spec/engineyard-serverside/callbacks/executor/ruby/executor_spec.rb +313 -0
  31. data/spec/engineyard-serverside/callbacks/executor/ruby_spec.rb +35 -0
  32. data/spec/engineyard-serverside/callbacks/executor_spec.rb +45 -0
  33. data/spec/engineyard-serverside/callbacks_spec.rb +31 -0
  34. data/spec/engineyard-serverside/cli/workflows/base_spec.rb +237 -0
  35. data/spec/engineyard-serverside/cli/workflows/calling_deploy_hooks_spec.rb +65 -0
  36. data/spec/engineyard-serverside/cli/workflows/deploying_applications_spec.rb +61 -0
  37. data/spec/engineyard-serverside/cli/workflows/disabling_maintenance_spec.rb +61 -0
  38. data/spec/engineyard-serverside/cli/workflows/enabling_maintenance_spec.rb +61 -0
  39. data/spec/engineyard-serverside/cli/workflows/helpers_spec.rb +64 -0
  40. data/spec/engineyard-serverside/cli/workflows/rolling_back_applications_spec.rb +61 -0
  41. data/spec/engineyard-serverside/cli/workflows/showing_maintenance_status_spec.rb +60 -0
  42. data/spec/engineyard-serverside/cli/workflows_spec.rb +87 -0
  43. data/spec/engineyard-serverside/dependency_manager/base_spec.rb +139 -0
  44. data/spec/engineyard-serverside/paths_spec.rb +820 -0
  45. data/spec/engineyard-serverside/propagator_spec.rb +56 -0
  46. data/spec/engineyard-serverside/server_spec.rb +390 -0
  47. data/spec/engineyard-serverside/shell/helpers_spec.rb +98 -0
  48. data/spec/engineyard-serverside/shell/yieldio_spec.rb +33 -0
  49. data/spec/engineyard-serverside/shell_spec.rb +543 -0
  50. data/spec/engineyard-serverside/slug/distributor_spec.rb +199 -0
  51. data/spec/engineyard-serverside/slug/enabler_spec.rb +191 -0
  52. data/spec/engineyard-serverside/slug/failure_handler_spec.rb +114 -0
  53. data/spec/engineyard-serverside/slug/finalizer_spec.rb +191 -0
  54. data/spec/engineyard-serverside/slug/generator_spec.rb +82 -0
  55. data/spec/engineyard-serverside/slug/migrator_spec.rb +137 -0
  56. data/spec/engineyard-serverside/slug/restarter_spec.rb +226 -0
  57. data/spec/engineyard-serverside/slug/source/updater_spec.rb +710 -0
  58. data/spec/engineyard-serverside/slug/source_spec.rb +40 -0
  59. data/spec/engineyard-serverside/source_spec.rb +171 -0
  60. data/spec/railway_spec.rb +130 -0
  61. data/spec/result/failure_spec.rb +113 -0
  62. data/spec/result/success_spec.rb +109 -0
  63. data/spec/result_spec.rb +23 -0
  64. data/spec/spec_helper.rb +3 -349
  65. metadata +189 -490
  66. data/lib/vendor/json_pure/COPYING +0 -57
  67. data/lib/vendor/json_pure/GPL +0 -340
  68. data/lib/vendor/json_pure/README.rdoc +0 -358
  69. data/lib/vendor/json_pure/VERSION +0 -1
  70. data/lib/vendor/json_pure/lib/json/add/bigdecimal.rb +0 -28
  71. data/lib/vendor/json_pure/lib/json/add/complex.rb +0 -22
  72. data/lib/vendor/json_pure/lib/json/add/core.rb +0 -11
  73. data/lib/vendor/json_pure/lib/json/add/date.rb +0 -34
  74. data/lib/vendor/json_pure/lib/json/add/date_time.rb +0 -48
  75. data/lib/vendor/json_pure/lib/json/add/exception.rb +0 -31
  76. data/lib/vendor/json_pure/lib/json/add/ostruct.rb +0 -31
  77. data/lib/vendor/json_pure/lib/json/add/range.rb +0 -29
  78. data/lib/vendor/json_pure/lib/json/add/rational.rb +0 -22
  79. data/lib/vendor/json_pure/lib/json/add/regexp.rb +0 -30
  80. data/lib/vendor/json_pure/lib/json/add/struct.rb +0 -30
  81. data/lib/vendor/json_pure/lib/json/add/symbol.rb +0 -25
  82. data/lib/vendor/json_pure/lib/json/add/time.rb +0 -38
  83. data/lib/vendor/json_pure/lib/json/common.rb +0 -484
  84. data/lib/vendor/json_pure/lib/json/ext.rb +0 -21
  85. data/lib/vendor/json_pure/lib/json/generic_object.rb +0 -70
  86. data/lib/vendor/json_pure/lib/json/pure/generator.rb +0 -522
  87. data/lib/vendor/json_pure/lib/json/pure/parser.rb +0 -359
  88. data/lib/vendor/json_pure/lib/json/pure.rb +0 -21
  89. data/lib/vendor/json_pure/lib/json/version.rb +0 -8
  90. data/lib/vendor/json_pure/lib/json.rb +0 -62
  91. data/lib/vendor/multi_json/CHANGELOG.md +0 -121
  92. data/lib/vendor/multi_json/CONTRIBUTING.md +0 -46
  93. data/lib/vendor/multi_json/Gemfile +0 -31
  94. data/lib/vendor/multi_json/LICENSE.md +0 -20
  95. data/lib/vendor/multi_json/README.md +0 -105
  96. data/lib/vendor/multi_json/Rakefile +0 -12
  97. data/lib/vendor/multi_json/lib/multi_json/adapters/gson.rb +0 -20
  98. data/lib/vendor/multi_json/lib/multi_json/adapters/json_common.rb +0 -35
  99. data/lib/vendor/multi_json/lib/multi_json/adapters/json_gem.rb +0 -12
  100. data/lib/vendor/multi_json/lib/multi_json/adapters/json_pure.rb +0 -12
  101. data/lib/vendor/multi_json/lib/multi_json/adapters/nsjsonserialization.rb +0 -35
  102. data/lib/vendor/multi_json/lib/multi_json/adapters/oj.rb +0 -29
  103. data/lib/vendor/multi_json/lib/multi_json/adapters/ok_json.rb +0 -58
  104. data/lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb +0 -20
  105. data/lib/vendor/multi_json/lib/multi_json/vendor/okjson.rb +0 -602
  106. data/lib/vendor/multi_json/lib/multi_json/version.rb +0 -3
  107. data/lib/vendor/multi_json/lib/multi_json.rb +0 -137
  108. data/lib/vendor/multi_json/spec/adapter_shared_example.rb +0 -162
  109. data/lib/vendor/multi_json/spec/helper.rb +0 -45
  110. data/lib/vendor/multi_json/spec/json_common_shared_example.rb +0 -36
  111. data/lib/vendor/multi_json/spec/multi_json_spec.rb +0 -151
  112. data/spec/archive_deploy_spec.rb +0 -53
  113. data/spec/basic_deploy_spec.rb +0 -26
  114. data/spec/bundler_deploy_spec.rb +0 -160
  115. data/spec/configuration_spec.rb +0 -206
  116. data/spec/custom_deploy_spec.rb +0 -128
  117. data/spec/deploy_hook_spec.rb +0 -378
  118. data/spec/deprecation_spec.rb +0 -23
  119. data/spec/ey_yml_customized_deploy_spec.rb +0 -99
  120. data/spec/fixtures/gitrepo.tar.gz +0 -0
  121. data/spec/fixtures/invalid_hook.rb +0 -1
  122. data/spec/fixtures/lockfiles/0.9-no-bundler +0 -111
  123. data/spec/fixtures/lockfiles/0.9-with-bundler +0 -117
  124. data/spec/fixtures/lockfiles/1.0-no-bundler +0 -54
  125. data/spec/fixtures/lockfiles/1.0.0.rc.1-with-bundler +0 -162
  126. data/spec/fixtures/lockfiles/1.0.18-do_mysql +0 -88
  127. data/spec/fixtures/lockfiles/1.0.18-do_postgres +0 -79
  128. data/spec/fixtures/lockfiles/1.0.18-mysql +0 -43
  129. data/spec/fixtures/lockfiles/1.0.18-mysql2 +0 -43
  130. data/spec/fixtures/lockfiles/1.0.18-pg +0 -43
  131. data/spec/fixtures/lockfiles/1.0.6-no-bundler +0 -51
  132. data/spec/fixtures/lockfiles/1.0.6-with-any-bundler +0 -52
  133. data/spec/fixtures/lockfiles/1.0.6-with-bundler +0 -52
  134. data/spec/fixtures/lockfiles/1.15.1-no-bundler +0 -51
  135. data/spec/fixtures/lockfiles/1.3.1-rails-3.2.13 +0 -112
  136. data/spec/fixtures/lockfiles/not-a-lockfile +0 -1
  137. data/spec/fixtures/repos/assets_detected/Gemfile +0 -5
  138. data/spec/fixtures/repos/assets_detected/Gemfile.lock +0 -88
  139. data/spec/fixtures/repos/assets_detected/README +0 -1
  140. data/spec/fixtures/repos/assets_detected/Rakefile +0 -5
  141. data/spec/fixtures/repos/assets_detected/app/assets/empty +0 -0
  142. data/spec/fixtures/repos/assets_detected/config/application.rb +0 -5
  143. data/spec/fixtures/repos/assets_detected/config/ey.yml +0 -3
  144. data/spec/fixtures/repos/assets_disabled/Gemfile +0 -5
  145. data/spec/fixtures/repos/assets_disabled/Gemfile.lock +0 -88
  146. data/spec/fixtures/repos/assets_disabled/README +0 -1
  147. data/spec/fixtures/repos/assets_disabled/Rakefile +0 -6
  148. data/spec/fixtures/repos/assets_disabled/app/assets/empty +0 -0
  149. data/spec/fixtures/repos/assets_disabled/config/application.rb +0 -5
  150. data/spec/fixtures/repos/assets_disabled/config/ey.yml +0 -3
  151. data/spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile +0 -5
  152. data/spec/fixtures/repos/assets_disabled_in_ey_yml/Gemfile.lock +0 -88
  153. data/spec/fixtures/repos/assets_disabled_in_ey_yml/README +0 -1
  154. data/spec/fixtures/repos/assets_disabled_in_ey_yml/Rakefile +0 -6
  155. data/spec/fixtures/repos/assets_disabled_in_ey_yml/app/assets/empty +0 -0
  156. data/spec/fixtures/repos/assets_disabled_in_ey_yml/config/application.rb +0 -5
  157. data/spec/fixtures/repos/assets_disabled_in_ey_yml/config/ey.yml +0 -5
  158. data/spec/fixtures/repos/assets_disabled_utf8/Gemfile +0 -5
  159. data/spec/fixtures/repos/assets_disabled_utf8/Gemfile.lock +0 -88
  160. data/spec/fixtures/repos/assets_disabled_utf8/README +0 -3
  161. data/spec/fixtures/repos/assets_disabled_utf8/Rakefile +0 -5
  162. data/spec/fixtures/repos/assets_disabled_utf8/app/assets/empty +0 -0
  163. data/spec/fixtures/repos/assets_disabled_utf8/config/application.rb +0 -7
  164. data/spec/fixtures/repos/assets_disabled_utf8/config/ey.yml +0 -3
  165. data/spec/fixtures/repos/assets_enabled_all/Gemfile +0 -5
  166. data/spec/fixtures/repos/assets_enabled_all/Gemfile.lock +0 -88
  167. data/spec/fixtures/repos/assets_enabled_all/README +0 -1
  168. data/spec/fixtures/repos/assets_enabled_all/app/assets/empty +0 -0
  169. data/spec/fixtures/repos/assets_enabled_all/config/application.rb +0 -5
  170. data/spec/fixtures/repos/assets_enabled_all/config/ey.yml +0 -6
  171. data/spec/fixtures/repos/assets_enabled_all/script/assets +0 -5
  172. data/spec/fixtures/repos/assets_enabled_all/tmp/obstruction +0 -1
  173. data/spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile +0 -3
  174. data/spec/fixtures/repos/assets_enabled_in_ey_yml/Gemfile.lock +0 -10
  175. data/spec/fixtures/repos/assets_enabled_in_ey_yml/README +0 -1
  176. data/spec/fixtures/repos/assets_enabled_in_ey_yml/Rakefile +0 -8
  177. data/spec/fixtures/repos/assets_enabled_in_ey_yml/config/ey.yml +0 -4
  178. data/spec/fixtures/repos/assets_enabled_util_only/Gemfile +0 -5
  179. data/spec/fixtures/repos/assets_enabled_util_only/Gemfile.lock +0 -88
  180. data/spec/fixtures/repos/assets_enabled_util_only/README +0 -1
  181. data/spec/fixtures/repos/assets_enabled_util_only/Rakefile +0 -6
  182. data/spec/fixtures/repos/assets_enabled_util_only/app/assets/empty +0 -0
  183. data/spec/fixtures/repos/assets_enabled_util_only/config/application.rb +0 -5
  184. data/spec/fixtures/repos/assets_enabled_util_only/config/ey.yml +0 -6
  185. data/spec/fixtures/repos/assets_error/Gemfile +0 -5
  186. data/spec/fixtures/repos/assets_error/Gemfile.lock +0 -88
  187. data/spec/fixtures/repos/assets_error/README +0 -1
  188. data/spec/fixtures/repos/assets_error/Rakefile +0 -4
  189. data/spec/fixtures/repos/assets_error/app/assets/empty +0 -0
  190. data/spec/fixtures/repos/assets_error/config/application.rb +0 -5
  191. data/spec/fixtures/repos/assets_error/config/ey.yml +0 -4
  192. data/spec/fixtures/repos/assets_in_hook/Gemfile +0 -5
  193. data/spec/fixtures/repos/assets_in_hook/Gemfile.lock +0 -88
  194. data/spec/fixtures/repos/assets_in_hook/README +0 -2
  195. data/spec/fixtures/repos/assets_in_hook/Rakefile +0 -5
  196. data/spec/fixtures/repos/assets_in_hook/app/assets/empty +0 -0
  197. data/spec/fixtures/repos/assets_in_hook/config/application.rb +0 -5
  198. data/spec/fixtures/repos/assets_in_hook/config/ey.yml +0 -3
  199. data/spec/fixtures/repos/assets_in_hook/deploy/before_compile_assets.rb +0 -2
  200. data/spec/fixtures/repos/bundle_fails/Gemfile +0 -1
  201. data/spec/fixtures/repos/bundle_fails/README +0 -1
  202. data/spec/fixtures/repos/bundle_fails/deploy/after_bundle.rb +0 -1
  203. data/spec/fixtures/repos/bundler_disabled/Gemfile +0 -4
  204. data/spec/fixtures/repos/bundler_disabled/Gemfile.lock +0 -12
  205. data/spec/fixtures/repos/bundler_disabled/README +0 -1
  206. data/spec/fixtures/repos/bundler_disabled/config/ey.yml +0 -2
  207. data/spec/fixtures/repos/bundler_disabled/deploy/after_bundle.rb +0 -1
  208. data/spec/fixtures/repos/bundler_disabled/deploy/before_bundle.rb +0 -1
  209. data/spec/fixtures/repos/bundler_old/Gemfile +0 -5
  210. data/spec/fixtures/repos/bundler_old/Gemfile.lock +0 -15
  211. data/spec/fixtures/repos/bundler_old/README +0 -1
  212. data/spec/fixtures/repos/default/Gemfile +0 -4
  213. data/spec/fixtures/repos/default/Gemfile.lock +0 -12
  214. data/spec/fixtures/repos/default/README +0 -5
  215. data/spec/fixtures/repos/default/ey.yml +0 -3
  216. data/spec/fixtures/repos/executable_hooks/README +0 -1
  217. data/spec/fixtures/repos/executable_hooks/deploy/before_restart +0 -72
  218. data/spec/fixtures/repos/executable_hooks_not_executable/README +0 -3
  219. data/spec/fixtures/repos/executable_hooks_not_executable/deploy/before_restart +0 -3
  220. data/spec/fixtures/repos/ey_yml/Gemfile +0 -4
  221. data/spec/fixtures/repos/ey_yml/Gemfile.lock +0 -12
  222. data/spec/fixtures/repos/ey_yml/README +0 -1
  223. data/spec/fixtures/repos/ey_yml/config/ey.yml +0 -18
  224. data/spec/fixtures/repos/ey_yml/deploy/before_migrate.rb +0 -6
  225. data/spec/fixtures/repos/ey_yml_alt/Gemfile +0 -4
  226. data/spec/fixtures/repos/ey_yml_alt/Gemfile.lock +0 -12
  227. data/spec/fixtures/repos/ey_yml_alt/README +0 -1
  228. data/spec/fixtures/repos/ey_yml_alt/deploy/before_migrate.rb +0 -6
  229. data/spec/fixtures/repos/ey_yml_alt/ey.yml +0 -12
  230. data/spec/fixtures/repos/hook_fails/README +0 -1
  231. data/spec/fixtures/repos/hook_fails/deploy/before_deploy.rb +0 -1
  232. data/spec/fixtures/repos/hooks/README +0 -1
  233. data/spec/fixtures/repos/hooks/deploy/after_bundle.rb +0 -1
  234. data/spec/fixtures/repos/hooks/deploy/after_compile_assets.rb +0 -1
  235. data/spec/fixtures/repos/hooks/deploy/after_deploy.rb +0 -1
  236. data/spec/fixtures/repos/hooks/deploy/after_migrate.rb +0 -1
  237. data/spec/fixtures/repos/hooks/deploy/after_restart.rb +0 -1
  238. data/spec/fixtures/repos/hooks/deploy/after_symlink.rb +0 -1
  239. data/spec/fixtures/repos/hooks/deploy/before_bundle.rb +0 -1
  240. data/spec/fixtures/repos/hooks/deploy/before_compile_assets.rb +0 -1
  241. data/spec/fixtures/repos/hooks/deploy/before_deploy.rb +0 -1
  242. data/spec/fixtures/repos/hooks/deploy/before_migrate.rb +0 -1
  243. data/spec/fixtures/repos/hooks/deploy/before_restart.rb +0 -1
  244. data/spec/fixtures/repos/hooks/deploy/before_symlink.rb +0 -1
  245. data/spec/fixtures/repos/multi_dep_manager/README +0 -1
  246. data/spec/fixtures/repos/multi_dep_manager/composer.json +0 -5
  247. data/spec/fixtures/repos/multi_dep_manager/composer.lock +0 -462
  248. data/spec/fixtures/repos/multi_dep_manager/package.json +0 -7
  249. data/spec/fixtures/repos/multi_dep_manager/public/index.php +0 -4
  250. data/spec/fixtures/repos/no_ey_config/Gemfile +0 -3
  251. data/spec/fixtures/repos/no_ey_config/Gemfile.lock +0 -10
  252. data/spec/fixtures/repos/no_ey_config/README +0 -1
  253. data/spec/fixtures/repos/no_ey_config/ey.yml +0 -3
  254. data/spec/fixtures/repos/no_ey_config_no_warning/Gemfile +0 -3
  255. data/spec/fixtures/repos/no_ey_config_no_warning/Gemfile.lock +0 -10
  256. data/spec/fixtures/repos/no_ey_config_no_warning/README +0 -1
  257. data/spec/fixtures/repos/no_ey_config_no_warning/ey.yml +0 -5
  258. data/spec/fixtures/repos/no_gemfile_lock/Gemfile +0 -4
  259. data/spec/fixtures/repos/no_gemfile_lock/README +0 -1
  260. data/spec/fixtures/repos/no_gemfile_lock/ey.yml +0 -3
  261. data/spec/fixtures/repos/nodejs/README +0 -1
  262. data/spec/fixtures/repos/nodejs/package.json +0 -7
  263. data/spec/fixtures/repos/not_bundled/README +0 -1
  264. data/spec/fixtures/repos/npm_disabled/README +0 -1
  265. data/spec/fixtures/repos/npm_disabled/config/ey.yml +0 -2
  266. data/spec/fixtures/repos/npm_disabled/package.json +0 -7
  267. data/spec/fixtures/repos/php_composer_disabled/README +0 -1
  268. data/spec/fixtures/repos/php_composer_disabled/composer.json +0 -5
  269. data/spec/fixtures/repos/php_composer_disabled/composer.lock +0 -462
  270. data/spec/fixtures/repos/php_composer_disabled/config/ey.yml +0 -2
  271. data/spec/fixtures/repos/php_composer_disabled/public/index.php +0 -4
  272. data/spec/fixtures/repos/php_composer_lock/README +0 -1
  273. data/spec/fixtures/repos/php_composer_lock/composer.json +0 -5
  274. data/spec/fixtures/repos/php_composer_lock/composer.lock +0 -462
  275. data/spec/fixtures/repos/php_composer_lock/public/index.php +0 -4
  276. data/spec/fixtures/repos/php_no_composer_lock/README +0 -1
  277. data/spec/fixtures/repos/php_no_composer_lock/composer.json +0 -21
  278. data/spec/fixtures/repos/php_no_composer_lock/public/index.php +0 -4
  279. data/spec/fixtures/repos/public_system/Gemfile +0 -4
  280. data/spec/fixtures/repos/public_system/Gemfile.lock +0 -12
  281. data/spec/fixtures/repos/public_system/README +0 -5
  282. data/spec/fixtures/repos/public_system/ey.yml +0 -3
  283. data/spec/fixtures/repos/public_system/public/system/cant_touch_this.txt +0 -3
  284. data/spec/fixtures/repos/sqlite3/Gemfile +0 -4
  285. data/spec/fixtures/repos/sqlite3/Gemfile.lock +0 -89
  286. data/spec/fixtures/repos/sqlite3/README +0 -1
  287. data/spec/fixtures/retwisj.war +0 -0
  288. data/spec/fixtures/valid_hook.rb +0 -1
  289. data/spec/git_strategy_spec.rb +0 -34
  290. data/spec/lockfile_parser_spec.rb +0 -126
  291. data/spec/maintenance_spec.rb +0 -44
  292. data/spec/multi_dependency_manager_spec.rb +0 -25
  293. data/spec/nodejs_deploy_spec.rb +0 -30
  294. data/spec/php_deploy_spec.rb +0 -81
  295. data/spec/platform_configure_spec.rb +0 -61
  296. data/spec/rails31_deploy_spec.rb +0 -172
  297. data/spec/restart_spec.rb +0 -43
  298. data/spec/rollback_spec.rb +0 -87
  299. data/spec/server_spec.rb +0 -70
  300. data/spec/services_deploy_spec.rb +0 -165
  301. data/spec/shell_spec.rb +0 -57
  302. data/spec/source/archive_spec.rb +0 -33
  303. data/spec/source/git_spec.rb +0 -44
  304. data/spec/sqlite3_deploy_spec.rb +0 -38
  305. data/spec/support/integration.rb +0 -103
  306. data/spec/support/source_doubles.rb +0 -28
  307. data/spec/support/timecop.rb +0 -5
  308. data/spec/symlink_spec.rb +0 -15
@@ -1,462 +0,0 @@
1
- {
2
- "hash": "6481f6a258c344122ba0157d5eadc0fd",
3
- "packages": [
4
- {
5
- "name": "bjyoungblood/bjy-authorize",
6
- "version": "1.2.6",
7
- "source": {
8
- "type": "git",
9
- "url": "https://github.com/bjyoungblood/BjyAuthorize.git",
10
- "reference": "1.2.6"
11
- },
12
- "dist": {
13
- "type": "zip",
14
- "url": "https://api.github.com/repos/bjyoungblood/BjyAuthorize/zipball/1.2.6",
15
- "reference": "1.2.6",
16
- "shasum": ""
17
- },
18
- "require": {
19
- "php": ">=5.3.3",
20
- "zendframework/zend-permissions-acl": ">=2.1,<3.0",
21
- "zendframework/zend-mvc": ">=2.1,<3.0",
22
- "zendframework/zend-eventmanager": ">=2.1,<3.0",
23
- "zendframework/zend-servicemanager": ">=2.1,<3.0",
24
- "zendframework/zend-view": ">=2.1,<3.0"
25
- },
26
- "require-dev": {
27
- "doctrine/common": ">=2.3,<2.5-dev",
28
- "zendframework/zend-developer-tools": "0.*",
29
- "zf-commons/zfc-user": "0.*"
30
- },
31
- "time": "2013-05-12 16:07:25",
32
- "type": "library",
33
- "extra": {
34
- "branch-alias": {
35
- "dev-master": "1.3-dev"
36
- }
37
- },
38
- "installation-source": "dist",
39
- "autoload": {
40
- "psr-0": {
41
- "BjyAuthorize\\": "src/"
42
- }
43
- },
44
- "license": [
45
- "BSD-3-Clause"
46
- ],
47
- "authors": [
48
- {
49
- "name": "Marco Pivetta",
50
- "email": "ocramius@gmail.com",
51
- "homepage": "http://ocramius.github.com/",
52
- "role": "Developer"
53
- },
54
- {
55
- "name": "Ben Youngblood",
56
- "email": "bx.youngblood@gmail.com",
57
- "homepage": "http://bjyoungblood.com/",
58
- "role": "Developer"
59
- }
60
- ],
61
- "description": "Zend\\Acl based firewall system for ZF2 dispatch protection",
62
- "homepage": "https://github.com/bjyoungblood/BjyAuthorize",
63
- "keywords": [
64
- "zf2",
65
- "acl",
66
- "zfc-user"
67
- ]
68
- },
69
- {
70
- "name": "bjyoungblood/bjy-profiler",
71
- "version": "dev-master",
72
- "source": {
73
- "type": "git",
74
- "url": "https://github.com/bjyoungblood/BjyProfiler.git",
75
- "reference": "1ca31611b6960bcd744dced95764e3627e8d807a"
76
- },
77
- "dist": {
78
- "type": "zip",
79
- "url": "https://api.github.com/repos/bjyoungblood/BjyProfiler/zipball/1ca31611b6960bcd744dced95764e3627e8d807a",
80
- "reference": "1ca31611b6960bcd744dced95764e3627e8d807a",
81
- "shasum": ""
82
- },
83
- "require": {
84
- "php": ">=5.3",
85
- "zendframework/zendframework": ">=2.1.0"
86
- },
87
- "time": "1364225067",
88
- "type": "library",
89
- "installation-source": "source",
90
- "autoload": {
91
- "psr-0": {
92
- "BjyProfiler": "src/"
93
- },
94
- "classmap": [
95
- "./Module.php"
96
- ]
97
- },
98
- "authors": [
99
- {
100
- "name": "Ben Youngblood",
101
- "email": "bx.youngblood@gmail.com",
102
- "homepage": "http://bjyoungblood.com/",
103
- "role": "Developer"
104
- }
105
- ],
106
- "description": "Database profiler for Zend\\Db (also plugin for ZendDeveloperTools)",
107
- "homepage": "https://github.com/bjyoungblood/BjyProfiler",
108
- "keywords": [
109
- "db",
110
- "zf2",
111
- "profiler",
112
- "zdt"
113
- ]
114
- },
115
- {
116
- "name": "darkmatus/roleuserbridge",
117
- "version": "dev-master",
118
- "source": {
119
- "type": "git",
120
- "url": "https://github.com/dshafik/roleuserbridge",
121
- "reference": "9f70ef6f24e75c6592f769bd0cd598f135108f48"
122
- },
123
- "dist": {
124
- "type": "zip",
125
- "url": "https://github.com/dshafik/roleuserbridge/zipball/9f70ef6f24e75c6592f769bd0cd598f135108f48",
126
- "reference": "9f70ef6f24e75c6592f769bd0cd598f135108f48",
127
- "shasum": ""
128
- },
129
- "require": {
130
- "php": ">=5.3.3",
131
- "zendframework/zendframework": "2.*",
132
- "zf-commons/zfc-base": "0.1.*",
133
- "zf-commons/zfc-user": "0.1.*",
134
- "bjyoungblood/bjy-authorize": "1.2.*"
135
- },
136
- "time": "1365313580",
137
- "type": "library",
138
- "installation-source": "source",
139
- "autoload": {
140
- "psr-0": {
141
- "RoleUserBridge": "src/"
142
- },
143
- "classmap": [
144
- "./"
145
- ]
146
- },
147
- "authors": [
148
- {
149
- "name": "Darkmatus",
150
- "email": "mueller@s-p-it.de",
151
- "homepage": "https://github.com/darkmatus/"
152
- }
153
- ],
154
- "description": "ZfcUser/BjyAuthorize Bridge for auto-adding User to the user_role_table from BjyAuthorize.",
155
- "homepage": "https://github.com/darkmatus/roleuserbridge",
156
- "keywords": [
157
- "zf2"
158
- ],
159
- "support": {
160
- "source": "https://github.com/dshafik/roleuserbridge/tree/master"
161
- }
162
- },
163
- {
164
- "name": "zendframework/zend-developer-tools",
165
- "version": "dev-master",
166
- "source": {
167
- "type": "git",
168
- "url": "https://github.com/zendframework/ZendDeveloperTools",
169
- "reference": "9e2cf51ffbd3778f07be4a245e6b7a84a6a18a1c"
170
- },
171
- "dist": {
172
- "type": "zip",
173
- "url": "https://github.com/zendframework/ZendDeveloperTools/zipball/9e2cf51ffbd3778f07be4a245e6b7a84a6a18a1c",
174
- "reference": "9e2cf51ffbd3778f07be4a245e6b7a84a6a18a1c",
175
- "shasum": ""
176
- },
177
- "require": {
178
- "php": ">=5.3.3",
179
- "zendframework/zend-mvc": "2.*",
180
- "zendframework/zend-eventmanager": "2.*",
181
- "zendframework/zend-stdlib": "2.*",
182
- "zendframework/zend-servicemanager": "2.*",
183
- "zendframework/zend-version": "2.*"
184
- },
185
- "suggest": {
186
- "bjyoungblood/bjy-profiler": "Version: dev-master, allows the usage of the (Zend) Db collector."
187
- },
188
- "time": "1368974025",
189
- "type": "zf-module",
190
- "installation-source": "source",
191
- "autoload": {
192
- "psr-0": {
193
- "ZendDeveloperTools": "src/"
194
- },
195
- "classmap": [
196
- "./Module.php"
197
- ]
198
- },
199
- "license": [
200
- "BSD-3-Clause"
201
- ],
202
- "authors": [
203
- {
204
- "name": "Evan Coury",
205
- "email": "me@evancoury.com",
206
- "homepage": "http://blog.evan.pro/"
207
- },
208
- {
209
- "name": "Eric Boh",
210
- "email": "cossish@gmail.com"
211
- }
212
- ],
213
- "description": "Module for developer and debug tools for working with the ZF2 MVC layer.",
214
- "homepage": "https://github.com/zendframework/ZendDeveloperTools",
215
- "keywords": [
216
- "debug",
217
- "developer",
218
- "zf2",
219
- "module"
220
- ],
221
- "support": {
222
- "source": "https://github.com/zendframework/ZendDeveloperTools/tree/master",
223
- "issues": "https://github.com/zendframework/ZendDeveloperTools/issues"
224
- }
225
- },
226
- {
227
- "name": "zendframework/zendframework",
228
- "version": "2.1.5",
229
- "source": {
230
- "type": "git",
231
- "url": "https://github.com/zendframework/zf2.git",
232
- "reference": "release-2.1.5"
233
- },
234
- "dist": {
235
- "type": "zip",
236
- "url": "https://api.github.com/repos/zendframework/zf2/zipball/release-2.1.5",
237
- "reference": "release-2.1.5",
238
- "shasum": ""
239
- },
240
- "require": {
241
- "php": ">=5.3.3"
242
- },
243
- "replace": {
244
- "zendframework/zend-authentication": "self.version",
245
- "zendframework/zend-barcode": "self.version",
246
- "zendframework/zend-cache": "self.version",
247
- "zendframework/zend-captcha": "self.version",
248
- "zendframework/zend-code": "self.version",
249
- "zendframework/zend-config": "self.version",
250
- "zendframework/zend-console": "self.version",
251
- "zendframework/zend-crypt": "self.version",
252
- "zendframework/zend-db": "self.version",
253
- "zendframework/zend-debug": "self.version",
254
- "zendframework/zend-di": "self.version",
255
- "zendframework/zend-dom": "self.version",
256
- "zendframework/zend-escaper": "self.version",
257
- "zendframework/zend-eventmanager": "self.version",
258
- "zendframework/zend-feed": "self.version",
259
- "zendframework/zend-file": "self.version",
260
- "zendframework/zend-filter": "self.version",
261
- "zendframework/zend-form": "self.version",
262
- "zendframework/zend-http": "self.version",
263
- "zendframework/zend-i18n": "self.version",
264
- "zendframework/zend-inputfilter": "self.version",
265
- "zendframework/zend-json": "self.version",
266
- "zendframework/zend-ldap": "self.version",
267
- "zendframework/zend-loader": "self.version",
268
- "zendframework/zend-log": "self.version",
269
- "zendframework/zend-mail": "self.version",
270
- "zendframework/zend-math": "self.version",
271
- "zendframework/zend-memory": "self.version",
272
- "zendframework/zend-mime": "self.version",
273
- "zendframework/zend-modulemanager": "self.version",
274
- "zendframework/zend-mvc": "self.version",
275
- "zendframework/zend-navigation": "self.version",
276
- "zendframework/zend-paginator": "self.version",
277
- "zendframework/zend-permissions-acl": "self.version",
278
- "zendframework/zend-permissions-rbac": "self.version",
279
- "zendframework/zend-progressbar": "self.version",
280
- "zendframework/zend-serializer": "self.version",
281
- "zendframework/zend-server": "self.version",
282
- "zendframework/zend-servicemanager": "self.version",
283
- "zendframework/zend-session": "self.version",
284
- "zendframework/zend-soap": "self.version",
285
- "zendframework/zend-stdlib": "self.version",
286
- "zendframework/zend-tag": "self.version",
287
- "zendframework/zend-test": "self.version",
288
- "zendframework/zend-text": "self.version",
289
- "zendframework/zend-uri": "self.version",
290
- "zendframework/zend-validator": "self.version",
291
- "zendframework/zend-version": "self.version",
292
- "zendframework/zend-view": "self.version",
293
- "zendframework/zend-xmlrpc": "self.version"
294
- },
295
- "require-dev": {
296
- "doctrine/common": ">=2.1",
297
- "ircmaxell/random-lib": "dev-master",
298
- "ircmaxell/security-lib": "dev-master",
299
- "phpunit/phpunit": "3.7.*"
300
- },
301
- "suggest": {
302
- "doctrine/common": "Doctrine\\Common >=2.1 for annotation features",
303
- "ext-intl": "ext/intl for i18n features",
304
- "ircmaxell/random-lib": "Fallback random byte generator for Zend\\Math\\Rand if OpenSSL/Mcrypt extensions are unavailable",
305
- "pecl-weakref": "Implementation of weak references for Zend\\Stdlib\\CallbackHandler",
306
- "zendframework/zendpdf": "ZendPdf for creating PDF representations of barcodes",
307
- "zendframework/zendservice-recaptcha": "ZendService\\ReCaptcha for rendering ReCaptchas in Zend\\Captcha and/or Zend\\Form"
308
- },
309
- "time": "2013-04-17 15:15:58",
310
- "bin": [
311
- "bin/classmap_generator.php"
312
- ],
313
- "type": "library",
314
- "extra": {
315
- "branch-alias": {
316
- "dev-master": "2.1-dev",
317
- "dev-develop": "2.2-dev"
318
- }
319
- },
320
- "installation-source": "dist",
321
- "autoload": {
322
- "psr-0": {
323
- "Zend\\": "library/",
324
- "ZendTest\\": "tests/"
325
- }
326
- },
327
- "license": [
328
- "BSD-3-Clause"
329
- ],
330
- "description": "Zend Framework 2",
331
- "homepage": "http://framework.zend.com/",
332
- "keywords": [
333
- "framework",
334
- "zf2"
335
- ]
336
- },
337
- {
338
- "name": "zf-commons/zfc-base",
339
- "version": "v0.1.2",
340
- "source": {
341
- "type": "git",
342
- "url": "https://github.com/ZF-Commons/ZfcBase.git",
343
- "reference": "v0.1.2"
344
- },
345
- "dist": {
346
- "type": "zip",
347
- "url": "https://api.github.com/repos/ZF-Commons/ZfcBase/zipball/v0.1.2",
348
- "reference": "v0.1.2",
349
- "shasum": ""
350
- },
351
- "require": {
352
- "php": ">=5.3.3",
353
- "zendframework/zend-db": ">=2.1,<3.0",
354
- "zendframework/zend-eventmanager": ">=2.1,<3.0",
355
- "zendframework/zend-loader": ">=2.1,<3.0",
356
- "zendframework/zend-modulemanager": ">=2.1,<3.0",
357
- "zendframework/zend-mvc": ">=2.1,<3.0",
358
- "zendframework/zend-servicemanager": ">=2.1,<3.0",
359
- "zendframework/zend-stdlib": ">=2.1,<3.0"
360
- },
361
- "time": "2013-05-02 12:33:49",
362
- "type": "library",
363
- "installation-source": "dist",
364
- "autoload": {
365
- "psr-0": {
366
- "ZfcBase": "src/"
367
- },
368
- "classmap": [
369
- "./Module.php"
370
- ]
371
- },
372
- "authors": [
373
- {
374
- "name": "Kyle Spraggs",
375
- "email": "theman@spiffyjr.me",
376
- "homepage": "http://www.spiffyjr.me/"
377
- },
378
- {
379
- "name": "Evan Coury",
380
- "email": "me@evancoury.com",
381
- "homepage": "http://blog.evan.pro/"
382
- }
383
- ],
384
- "description": "A set of genetic (abstract) classes which are commonly used across multiple modules.",
385
- "homepage": "https://github.com/ZF-Commons/ZfcBase",
386
- "keywords": [
387
- "zf2"
388
- ]
389
- },
390
- {
391
- "name": "zf-commons/zfc-user",
392
- "version": "0.1.2",
393
- "source": {
394
- "type": "git",
395
- "url": "https://github.com/ZF-Commons/ZfcUser.git",
396
- "reference": "0.1.2"
397
- },
398
- "dist": {
399
- "type": "zip",
400
- "url": "https://api.github.com/repos/ZF-Commons/ZfcUser/zipball/0.1.2",
401
- "reference": "0.1.2",
402
- "shasum": ""
403
- },
404
- "require": {
405
- "php": ">=5.3.3",
406
- "zendframework/zend-authentication": ">=2.1,<3.0",
407
- "zendframework/zend-crypt": ">=2.1,<3.0",
408
- "zendframework/zend-form": ">=2.1,<3.0",
409
- "zendframework/zend-inputfilter": ">=2.1,<3.0",
410
- "zendframework/zend-loader": ">=2.1,<3.0",
411
- "zendframework/zend-modulemanager": ">=2.1,<3.0",
412
- "zendframework/zend-mvc": ">=2.1,<3.0",
413
- "zendframework/zend-servicemanager": ">=2.1,<3.0",
414
- "zendframework/zend-stdlib": ">=2.1,<3.0",
415
- "zendframework/zend-validator": ">=2.1,<3.0",
416
- "zendframework/zend-view": ">=2.1,<3.0",
417
- "zf-commons/zfc-base": "0.*"
418
- },
419
- "suggest": {
420
- "zendframework/zend-session": "To use the default authentication adapter."
421
- },
422
- "time": "2013-05-02 12:33:31",
423
- "type": "library",
424
- "installation-source": "dist",
425
- "autoload": {
426
- "psr-0": {
427
- "ZfcUser": "src/"
428
- },
429
- "classmap": [
430
- "./Module.php"
431
- ]
432
- },
433
- "authors": [
434
- {
435
- "name": "Kyle Spraggs",
436
- "email": "theman@spiffyjr.me",
437
- "homepage": "http://www.spiffyjr.me/"
438
- },
439
- {
440
- "name": "Evan Coury",
441
- "email": "me@evancoury.com",
442
- "homepage": "http://blog.evan.pro/"
443
- }
444
- ],
445
- "description": "A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.",
446
- "homepage": "https://github.com/ZF-Commons/ZfcUser",
447
- "keywords": [
448
- "zf2"
449
- ]
450
- }
451
- ],
452
- "packages-dev": null,
453
- "aliases": [
454
-
455
- ],
456
- "minimum-stability": "stable",
457
- "stability-flags": {
458
- "zendframework/zend-developer-tools": 20,
459
- "bjyoungblood/bjy-profiler": 20,
460
- "darkmatus/roleuserbridge": 20
461
- }
462
- }
@@ -1,4 +0,0 @@
1
- <?php
2
-
3
- echo "Hello, world!";
4
-
@@ -1 +0,0 @@
1
- Simple PHP Composer app.
@@ -1,21 +0,0 @@
1
- {
2
- "repositories": [
3
- {
4
- "type": "vcs",
5
- "url": "https://github.com/zendframework/ZendDeveloperTools"
6
- },
7
- {
8
- "type": "vcs",
9
- "url": "https://github.com/dshafik/roleuserbridge"
10
- }
11
- ],
12
- "require": {
13
- "php": ">=5.4.0",
14
- "zendframework/zendframework": "2.1.*",
15
- "bjyoungblood/bjy-authorize": "1.2.*",
16
- "zf-commons/zfc-user": "0.1.*",
17
- "zendframework/zend-developer-tools": "dev-master",
18
- "bjyoungblood/bjy-profiler": "dev-master",
19
- "darkmatus/roleuserbridge": "dev-master"
20
- }
21
- }
@@ -1,4 +0,0 @@
1
- <?php
2
-
3
- echo "Hello, world!";
4
-
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rake'
4
- gem 'ey_config'
@@ -1,12 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- ey_config (0.0.5)
5
- rake (0.9.2.2)
6
-
7
- PLATFORMS
8
- ruby
9
-
10
- DEPENDENCIES
11
- ey_config
12
- rake
@@ -1,5 +0,0 @@
1
- This is a simple bundled fake app for specs.
2
-
3
- All the files in this directory are copied into a temporary git repository
4
- during spec runs. The rest of the "git repository" stuff comes from
5
- gitrepo.tar.gz which is copied first to create the repo.
@@ -1,3 +0,0 @@
1
- environments:
2
- env:
3
- ignore_database_adapter_warning: true
@@ -1,3 +0,0 @@
1
- This file should not be removed by serverside during a deploy.
2
-
3
- If public/system exists in the repository, leave it alone and warn.
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '3.1.3'
4
- gem 'sqlite3'
@@ -1,89 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- actionmailer (3.1.3)
5
- actionpack (= 3.1.3)
6
- mail (~> 2.3.0)
7
- actionpack (3.1.3)
8
- activemodel (= 3.1.3)
9
- activesupport (= 3.1.3)
10
- builder (~> 3.0.0)
11
- erubis (~> 2.7.0)
12
- i18n (~> 0.6)
13
- rack (~> 1.3.5)
14
- rack-cache (~> 1.1)
15
- rack-mount (~> 0.8.2)
16
- rack-test (~> 0.6.1)
17
- sprockets (~> 2.0.3)
18
- activemodel (3.1.3)
19
- activesupport (= 3.1.3)
20
- builder (~> 3.0.0)
21
- i18n (~> 0.6)
22
- activerecord (3.1.3)
23
- activemodel (= 3.1.3)
24
- activesupport (= 3.1.3)
25
- arel (~> 2.2.1)
26
- tzinfo (~> 0.3.29)
27
- activeresource (3.1.3)
28
- activemodel (= 3.1.3)
29
- activesupport (= 3.1.3)
30
- activesupport (3.1.3)
31
- multi_json (~> 1.0)
32
- arel (2.2.1)
33
- builder (3.0.0)
34
- erubis (2.7.0)
35
- hike (1.2.1)
36
- i18n (0.6.0)
37
- json (1.6.5)
38
- mail (2.3.0)
39
- i18n (>= 0.4.0)
40
- mime-types (~> 1.16)
41
- treetop (~> 1.4.8)
42
- mime-types (1.17.2)
43
- multi_json (1.0.4)
44
- polyglot (0.3.3)
45
- rack (1.3.6)
46
- rack-cache (1.1)
47
- rack (>= 0.4)
48
- rack-mount (0.8.3)
49
- rack (>= 1.0.0)
50
- rack-ssl (1.3.2)
51
- rack
52
- rack-test (0.6.1)
53
- rack (>= 1.0)
54
- rails (3.1.3)
55
- actionmailer (= 3.1.3)
56
- actionpack (= 3.1.3)
57
- activerecord (= 3.1.3)
58
- activeresource (= 3.1.3)
59
- activesupport (= 3.1.3)
60
- bundler (~> 1.0)
61
- railties (= 3.1.3)
62
- railties (3.1.3)
63
- actionpack (= 3.1.3)
64
- activesupport (= 3.1.3)
65
- rack-ssl (~> 1.3.2)
66
- rake (>= 0.8.7)
67
- rdoc (~> 3.4)
68
- thor (~> 0.14.6)
69
- rake (0.9.2.2)
70
- rdoc (3.12)
71
- json (~> 1.4)
72
- sprockets (2.0.3)
73
- hike (~> 1.2)
74
- rack (~> 1.0)
75
- tilt (~> 1.1, != 1.3.0)
76
- sqlite3 (1.3.5)
77
- thor (0.14.6)
78
- tilt (1.3.3)
79
- treetop (1.4.10)
80
- polyglot
81
- polyglot (>= 0.3.1)
82
- tzinfo (0.3.31)
83
-
84
- PLATFORMS
85
- ruby
86
-
87
- DEPENDENCIES
88
- rails (= 3.1.3)
89
- sqlite3
@@ -1 +0,0 @@
1
- This repo uses sqlite3 gem instead of the usual database adapters.
Binary file
@@ -1 +0,0 @@
1
- run("true")
@@ -1,34 +0,0 @@
1
- require 'spec_helper'
2
-
3
- class EY::Serverside::Source::Git
4
- def fetch_command
5
- "mkdir -p #{source_cache} && tar xzf #{FIXTURES_DIR.join('gitrepo.tar.gz')} --strip-components 1 -C #{source_cache}"
6
- end
7
- end
8
-
9
- describe EY::Serverside::Source::Git do
10
- before do
11
- @source_cache = tmpdir.join("gitrepo-#{Time.now.utc.strftime("%Y%m%d%H%M%S")}-#{$$}")
12
- end
13
-
14
-
15
- it "#update_repository_cache returns true for branches that exist" do
16
- git = EY::Serverside::Source::Git.new(
17
- test_shell,
18
- :uri => FIXTURES_DIR.join('repos','default'),
19
- :repository_cache => @source_cache,
20
- :ref => "somebranch"
21
- )
22
- git.update_repository_cache
23
- end
24
-
25
- it "#update_repository_cache returns false for branches that do not exist" do
26
- git = EY::Serverside::Source::Git.new(
27
- test_shell,
28
- :uri => FIXTURES_DIR.join('repos','default'),
29
- :repository_cache => @source_cache,
30
- :ref => "notabranch"
31
- )
32
- expect { git.update_repository_cache }.to raise_error
33
- end
34
- end