bigrig 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile.lock +3 -1
  4. data/bigrig.gemspec +1 -0
  5. data/lib/bigrig/dependency_graph.rb +3 -1
  6. data/lib/bigrig/version.rb +1 -1
  7. data/spec/bigrig/dependency_graph_spec.rb +10 -4
  8. data/spec/bigrig_spec.rb +44 -34
  9. data/spec/data/scan.json +2 -1
  10. data/spec/spec_helper.rb +1 -13
  11. data/spec/support/wait_for.rb +35 -0
  12. data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_has_exited/should_remove_the_container.yml +46 -46
  13. data/spec/vcr/Bigrig_DestroyAction/_perform/given_json_with_a_single_container/and_the_container_is_running/kills_and_removes_the_container.yml +49 -49
  14. data/spec/vcr/Bigrig_DockerAdapter/_build/builds_the_given_directory.yml +8 -8
  15. data/spec/vcr/Bigrig_DockerAdapter/_build/passes_build_input_to_a_block.yml +4 -4
  16. data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_does_not_exist/is_false.yml +8 -8
  17. data/spec/vcr/Bigrig_DockerAdapter/_container_exists_/when_the_container_exists/is_true.yml +9 -9
  18. data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_does_not_exist/raise_a_ImageNotFoundError.yml +12 -12
  19. data/spec/vcr/Bigrig_DockerAdapter/_image_id_by_tag/when_the_image_exists/returns_the_image_id.yml +12 -12
  20. data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_does_not_exist/should_raise_an_error.yml +8 -8
  21. data/spec/vcr/Bigrig_DockerAdapter/_kill/given_the_container_is_running/should_kill_the_container.yml +22 -22
  22. data/spec/vcr/Bigrig_DockerAdapter/_logs/streams_logs_to_a_block.yml +17 -17
  23. data/spec/vcr/Bigrig_DockerAdapter/_pull/given_a_block_to_capture_output/should_capture_output.yml +4 -4
  24. data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_does_not_exist/raises_a_RepoNotFoundError.yml +2 -2
  25. data/spec/vcr/Bigrig_DockerAdapter/_pull/given_the_repo_exists/returns_the_image_id.yml +6 -6
  26. data/spec/vcr/Bigrig_DockerAdapter/_push/given_credentials/will_pass_login_and_password.yml +36 -36
  27. data/spec/vcr/Bigrig_DockerAdapter/_push/should_push_the_image.yml +453 -77
  28. data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_does_not_exist/raises_a_ContainerNotFoundError.yml +16 -16
  29. data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_exists/should_remove_the_container.yml +32 -32
  30. data/spec/vcr/Bigrig_DockerAdapter/_remove_container/when_the_container_is_running/raises_a_ContainerRunningError.yml +10 -10
  31. data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_doesnt_exist/raises_an_error.yml +8 -8
  32. data/spec/vcr/Bigrig_DockerAdapter/_remove_image/when_the_image_exists/removes_the_image.yml +28 -28
  33. data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name/starts_the_container_with_the_right_name.yml +27 -27
  34. data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name_and_env_variables/starts_the_container_with_env_set.yml +27 -27
  35. data/spec/vcr/Bigrig_DockerAdapter/_run/given_an_image_id_that_exists/and_a_name_and_ports/starts_the_container_with_ports_exposed.yml +32 -32
  36. data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_does_not_exist/returns_false.yml +8 -8
  37. data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_not_running/returns_false.yml +11 -11
  38. data/spec/vcr/Bigrig_DockerAdapter/_running_/when_the_container_is_running/returns_true.yml +13 -13
  39. data/spec/vcr/Bigrig_DockerAdapter/_tag/should_tag_the_image.yml +16 -16
  40. data/spec/vcr/Bigrig_LogAction/_perform/follows_the_log.yml +25 -25
  41. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_a_path/builds_the_image_before_starting_it.yml +20 -20
  42. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_ip/should_pass_hosts_to_container.yml +40 -40
  43. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_hosts_by_name/should_lookup_ips_for_hosts_with_a_hostname.yml +41 -41
  44. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_links/should_pass_links_to_the_right_container.yml +73 -73
  45. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/launches_both_containers_in_parallel.yml +52 -52
  46. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_multiple_containers/spins_up_multiple_containers.yml +74 -74
  47. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/should_spin_up_a_single_container.yml +36 -36
  48. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_one_container/when_a_dead_container_exists/should_remove_existing_containers.yml +38 -38
  49. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes/should_pass_volumes_to_the_right_container.yml +40 -40
  50. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/should_pass_volumes_from_to_the_right_container.yml +73 -73
  51. data/spec/vcr/Bigrig_RunAction/_perform/given_a_file_with_volumes_from/starts_the_dependant_container_last.yml +52 -52
  52. data/spec/vcr/Bigrig_RunAction/_perform/when_activating_profiles_that_do_not_exist/ignores_the_missing_profile.yml +35 -35
  53. data/spec/vcr/Bigrig_RunAction/_perform/with_a_file_with_active_profiles/uses_the_overridden_image.yml +38 -38
  54. data/spec/vcr/bigrig/destroy/spec/data/single_json/kills_the_container.yml +14 -14
  55. data/spec/vcr/bigrig/dev/spec/data/dev_json/activates_the_dev_profile.yml +427 -37
  56. data/spec/vcr/bigrig/dev/spec/data/dev_json/destroys_containers_on_exit.yml +32 -32
  57. data/spec/vcr/bigrig/dev/spec/data/dev_json/starts_the_containers.yml +472 -76
  58. data/spec/vcr/bigrig/dev/spec/data/dev_json/tails_the_logs.yml +16 -16
  59. data/spec/vcr/bigrig/dev/spec/data/scan_json/leaves_unaffected_containers_alone_when_the_scanned_file_changes.yml +1544 -86
  60. data/spec/vcr/bigrig/dev/spec/data/scan_json/restarts_dependant_containers_when_the_scanned_file_changes.yml +1725 -69
  61. data/spec/vcr/bigrig/dev/spec/data/scan_json/restarts_the_container_when_the_scanned_file_changes.yml +1536 -96
  62. data/spec/vcr/bigrig/logs/spec/data/log_json/tails_the_logs.yml +17 -17
  63. data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/leaves_existing_env_values_alone.yml +11 -11
  64. data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_env.yml +11 -11
  65. data/spec/vcr/bigrig/run/spec/data/profiles_json_-p_qa/overrides_the_tag.yml +11 -11
  66. data/spec/vcr/bigrig/run/spec/data/single_json/sends_the_name_of_the_container_to_stdout.yml +9 -9
  67. data/spec/vcr/bigrig/run/spec/data/single_json/starts_the_container.yml +13 -13
  68. data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/-c/cleans_the_image_when_its_done.yml +20 -20
  69. data/spec/vcr/bigrig/ship/spec/data/ship_json/with_a_version/builds_and_pushes_the_image.yml +15 -15
  70. data/spec/vcr/bigrig_bin_bigrig_destroy_spec/data/single_json_kills_the_container.yml +21 -21
  71. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_activates_the_dev_profile.yml +105 -305
  72. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_starts_the_containers.yml +109 -307
  73. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/dev_json_tails_the_logs.yml +116 -116
  74. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_leaves_unaffected_containers_alone_when_the_scanned_file_changes.yml +385 -382
  75. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_restarts_dependant_containers_when_the_scanned_file_changes.yml +357 -354
  76. data/spec/vcr/bigrig_bin_bigrig_dev_spec/data/scan_json_restarts_the_container_when_the_scanned_file_changes.yml +358 -1091
  77. data/spec/vcr/bigrig_bin_bigrig_logs_spec/data/log_json_tails_the_logs.yml +21 -21
  78. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_leaves_existing_env_values_alone.yml +24 -24
  79. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_env.yml +24 -24
  80. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/profiles_json_-p_qa_overrides_the_tag.yml +17 -17
  81. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_sends_the_name_of_the_container_to_stdout.yml +24 -24
  82. data/spec/vcr/bigrig_bin_bigrig_run_spec/data/single_json_starts_the_container.yml +24 -24
  83. data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_-c_cleans_the_image_when_its_done.yml +439 -63
  84. data/spec/vcr/bigrig_bin_bigrig_ship_spec/data/ship_json_with_a_version_builds_and_pushes_the_image.yml +430 -54
  85. data/spec/waitfor_spec.rb +10 -0
  86. metadata +18 -2
@@ -19,7 +19,7 @@ http_interactions:
19
19
  Content-Type:
20
20
  - text/plain; charset=utf-8
21
21
  Date:
22
- - Mon, 06 Apr 2015 21:59:46 GMT
22
+ - Mon, 20 Apr 2015 23:29:20 GMT
23
23
  Content-Length:
24
24
  - '28'
25
25
  body:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  string: |
28
28
  No such container: dev-test
29
29
  http_version:
30
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
30
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
31
31
  - request:
32
32
  method: get
33
33
  uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
@@ -47,7 +47,7 @@ http_interactions:
47
47
  Content-Type:
48
48
  - text/plain; charset=utf-8
49
49
  Date:
50
- - Mon, 06 Apr 2015 21:59:46 GMT
50
+ - Mon, 20 Apr 2015 23:29:20 GMT
51
51
  Content-Length:
52
52
  - '28'
53
53
  body:
@@ -55,7 +55,7 @@ http_interactions:
55
55
  string: |
56
56
  No such container: dev-test
57
57
  http_version:
58
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
58
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
59
59
  - request:
60
60
  method: get
61
61
  uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
@@ -75,7 +75,7 @@ http_interactions:
75
75
  Content-Type:
76
76
  - text/plain; charset=utf-8
77
77
  Date:
78
- - Mon, 06 Apr 2015 21:59:46 GMT
78
+ - Mon, 20 Apr 2015 23:29:20 GMT
79
79
  Content-Length:
80
80
  - '28'
81
81
  body:
@@ -83,7 +83,7 @@ http_interactions:
83
83
  string: |
84
84
  No such container: dev-test
85
85
  http_version:
86
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
86
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
87
87
  - request:
88
88
  method: get
89
89
  uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
@@ -103,7 +103,7 @@ http_interactions:
103
103
  Content-Type:
104
104
  - text/plain; charset=utf-8
105
105
  Date:
106
- - Mon, 06 Apr 2015 21:59:46 GMT
106
+ - Mon, 20 Apr 2015 23:29:20 GMT
107
107
  Content-Length:
108
108
  - '28'
109
109
  body:
@@ -111,7 +111,7 @@ http_interactions:
111
111
  string: |
112
112
  No such container: dev-test
113
113
  http_version:
114
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
114
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
115
115
  - request:
116
116
  method: get
117
117
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -131,7 +131,7 @@ http_interactions:
131
131
  Content-Type:
132
132
  - text/plain; charset=utf-8
133
133
  Date:
134
- - Mon, 06 Apr 2015 21:59:46 GMT
134
+ - Mon, 20 Apr 2015 23:29:20 GMT
135
135
  Content-Length:
136
136
  - '28'
137
137
  body:
@@ -139,7 +139,7 @@ http_interactions:
139
139
  string: |
140
140
  No such container: dev-logs
141
141
  http_version:
142
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
142
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
143
143
  - request:
144
144
  method: get
145
145
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -159,7 +159,7 @@ http_interactions:
159
159
  Content-Type:
160
160
  - text/plain; charset=utf-8
161
161
  Date:
162
- - Mon, 06 Apr 2015 21:59:46 GMT
162
+ - Mon, 20 Apr 2015 23:29:20 GMT
163
163
  Content-Length:
164
164
  - '28'
165
165
  body:
@@ -167,7 +167,7 @@ http_interactions:
167
167
  string: |
168
168
  No such container: dev-logs
169
169
  http_version:
170
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
170
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
171
171
  - request:
172
172
  method: get
173
173
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -187,7 +187,7 @@ http_interactions:
187
187
  Content-Type:
188
188
  - text/plain; charset=utf-8
189
189
  Date:
190
- - Mon, 06 Apr 2015 21:59:46 GMT
190
+ - Mon, 20 Apr 2015 23:29:20 GMT
191
191
  Content-Length:
192
192
  - '28'
193
193
  body:
@@ -195,7 +195,7 @@ http_interactions:
195
195
  string: |
196
196
  No such container: dev-logs
197
197
  http_version:
198
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
198
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
199
199
  - request:
200
200
  method: get
201
201
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -215,7 +215,7 @@ http_interactions:
215
215
  Content-Type:
216
216
  - text/plain; charset=utf-8
217
217
  Date:
218
- - Mon, 06 Apr 2015 21:59:46 GMT
218
+ - Mon, 20 Apr 2015 23:29:20 GMT
219
219
  Content-Length:
220
220
  - '28'
221
221
  body:
@@ -223,7 +223,7 @@ http_interactions:
223
223
  string: |
224
224
  No such container: dev-logs
225
225
  http_version:
226
- recorded_at: Mon, 06 Apr 2015 21:59:44 GMT
226
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
227
227
  - request:
228
228
  method: get
229
229
  uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
@@ -243,7 +243,7 @@ http_interactions:
243
243
  Content-Type:
244
244
  - text/plain; charset=utf-8
245
245
  Date:
246
- - Mon, 06 Apr 2015 21:59:46 GMT
246
+ - Mon, 20 Apr 2015 23:29:20 GMT
247
247
  Content-Length:
248
248
  - '28'
249
249
  body:
@@ -251,7 +251,7 @@ http_interactions:
251
251
  string: |
252
252
  No such container: dev-test
253
253
  http_version:
254
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
254
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
255
255
  - request:
256
256
  method: get
257
257
  uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
@@ -271,7 +271,7 @@ http_interactions:
271
271
  Content-Type:
272
272
  - text/plain; charset=utf-8
273
273
  Date:
274
- - Mon, 06 Apr 2015 21:59:46 GMT
274
+ - Mon, 20 Apr 2015 23:29:21 GMT
275
275
  Content-Length:
276
276
  - '28'
277
277
  body:
@@ -279,7 +279,7 @@ http_interactions:
279
279
  string: |
280
280
  No such container: dev-test
281
281
  http_version:
282
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
282
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
283
283
  - request:
284
284
  method: get
285
285
  uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
@@ -299,7 +299,7 @@ http_interactions:
299
299
  Content-Type:
300
300
  - text/plain; charset=utf-8
301
301
  Date:
302
- - Mon, 06 Apr 2015 21:59:46 GMT
302
+ - Mon, 20 Apr 2015 23:29:21 GMT
303
303
  Content-Length:
304
304
  - '28'
305
305
  body:
@@ -307,7 +307,7 @@ http_interactions:
307
307
  string: |
308
308
  No such container: dev-test
309
309
  http_version:
310
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
310
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
311
311
  - request:
312
312
  method: get
313
313
  uri: "<DOCKER_HOST>/v1.16/containers/dev-test/json"
@@ -327,7 +327,7 @@ http_interactions:
327
327
  Content-Type:
328
328
  - text/plain; charset=utf-8
329
329
  Date:
330
- - Mon, 06 Apr 2015 21:59:46 GMT
330
+ - Mon, 20 Apr 2015 23:29:21 GMT
331
331
  Content-Length:
332
332
  - '28'
333
333
  body:
@@ -335,7 +335,7 @@ http_interactions:
335
335
  string: |
336
336
  No such container: dev-test
337
337
  http_version:
338
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
338
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
339
339
  - request:
340
340
  method: get
341
341
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -355,7 +355,7 @@ http_interactions:
355
355
  Content-Type:
356
356
  - text/plain; charset=utf-8
357
357
  Date:
358
- - Mon, 06 Apr 2015 21:59:46 GMT
358
+ - Mon, 20 Apr 2015 23:29:21 GMT
359
359
  Content-Length:
360
360
  - '28'
361
361
  body:
@@ -363,7 +363,7 @@ http_interactions:
363
363
  string: |
364
364
  No such container: dev-logs
365
365
  http_version:
366
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
366
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
367
367
  - request:
368
368
  method: get
369
369
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -383,7 +383,7 @@ http_interactions:
383
383
  Content-Type:
384
384
  - text/plain; charset=utf-8
385
385
  Date:
386
- - Mon, 06 Apr 2015 21:59:46 GMT
386
+ - Mon, 20 Apr 2015 23:29:21 GMT
387
387
  Content-Length:
388
388
  - '28'
389
389
  body:
@@ -391,7 +391,7 @@ http_interactions:
391
391
  string: |
392
392
  No such container: dev-logs
393
393
  http_version:
394
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
394
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
395
395
  - request:
396
396
  method: get
397
397
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -411,7 +411,7 @@ http_interactions:
411
411
  Content-Type:
412
412
  - text/plain; charset=utf-8
413
413
  Date:
414
- - Mon, 06 Apr 2015 21:59:46 GMT
414
+ - Mon, 20 Apr 2015 23:29:21 GMT
415
415
  Content-Length:
416
416
  - '28'
417
417
  body:
@@ -419,7 +419,7 @@ http_interactions:
419
419
  string: |
420
420
  No such container: dev-logs
421
421
  http_version:
422
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
422
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
423
423
  - request:
424
424
  method: get
425
425
  uri: "<DOCKER_HOST>/v1.16/containers/dev-logs/json"
@@ -439,7 +439,7 @@ http_interactions:
439
439
  Content-Type:
440
440
  - text/plain; charset=utf-8
441
441
  Date:
442
- - Mon, 06 Apr 2015 21:59:46 GMT
442
+ - Mon, 20 Apr 2015 23:29:21 GMT
443
443
  Content-Length:
444
444
  - '28'
445
445
  body:
@@ -447,5 +447,5 @@ http_interactions:
447
447
  string: |
448
448
  No such container: dev-logs
449
449
  http_version:
450
- recorded_at: Mon, 06 Apr 2015 21:59:45 GMT
450
+ recorded_at: Mon, 20 Apr 2015 23:29:20 GMT
451
451
  recorded_with: VCR 2.9.3