cf_script 0.0.1.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/CHANGELOG.md +0 -0
  4. data/Gemfile +12 -0
  5. data/LICENSE +22 -0
  6. data/README.md +84 -0
  7. data/Rakefile +33 -0
  8. data/cf_script.gemspec +34 -0
  9. data/lib/cf_script/callbacks.rb +43 -0
  10. data/lib/cf_script/command/base.rb +57 -0
  11. data/lib/cf_script/command/cf/apps/app.rb +19 -0
  12. data/lib/cf_script/command/cf/apps/apps.rb +44 -0
  13. data/lib/cf_script/command/cf/apps/env.rb +20 -0
  14. data/lib/cf_script/command/cf/apps/push.rb +47 -0
  15. data/lib/cf_script/command/cf/apps/restage.rb +19 -0
  16. data/lib/cf_script/command/cf/apps/restart.rb +19 -0
  17. data/lib/cf_script/command/cf/apps/set_env.rb +18 -0
  18. data/lib/cf_script/command/cf/apps/start.rb +19 -0
  19. data/lib/cf_script/command/cf/apps/stop.rb +19 -0
  20. data/lib/cf_script/command/cf/apps/unset_env.rb +18 -0
  21. data/lib/cf_script/command/cf/apps.rb +55 -0
  22. data/lib/cf_script/command/cf/general/api.rb +36 -0
  23. data/lib/cf_script/command/cf/general/auth.rb +28 -0
  24. data/lib/cf_script/command/cf/general/login.rb +42 -0
  25. data/lib/cf_script/command/cf/general/logout.rb +15 -0
  26. data/lib/cf_script/command/cf/general/target.rb +64 -0
  27. data/lib/cf_script/command/cf/general.rb +15 -0
  28. data/lib/cf_script/command/cf/routes/check_route.rb +17 -0
  29. data/lib/cf_script/command/cf/routes/create_route.rb +19 -0
  30. data/lib/cf_script/command/cf/routes/delete_route.rb +19 -0
  31. data/lib/cf_script/command/cf/routes/map_route.rb +30 -0
  32. data/lib/cf_script/command/cf/routes/routes.rb +40 -0
  33. data/lib/cf_script/command/cf/routes/unmap_route.rb +30 -0
  34. data/lib/cf_script/command/cf/routes.rb +17 -0
  35. data/lib/cf_script/command/cf/spaces/space.rb +36 -0
  36. data/lib/cf_script/command/cf/spaces/spaces.rb +23 -0
  37. data/lib/cf_script/command/cf/spaces.rb +9 -0
  38. data/lib/cf_script/command/error.rb +5 -0
  39. data/lib/cf_script/command/line.rb +105 -0
  40. data/lib/cf_script/command/registry.rb +50 -0
  41. data/lib/cf_script/command/runner.rb +97 -0
  42. data/lib/cf_script/command.rb +44 -0
  43. data/lib/cf_script/config.rb +60 -0
  44. data/lib/cf_script/executor/non_blocking.rb +107 -0
  45. data/lib/cf_script/executor/recorder.rb +16 -0
  46. data/lib/cf_script/executor/simple.rb +17 -0
  47. data/lib/cf_script/executor.rb +5 -0
  48. data/lib/cf_script/manifest.rb +38 -0
  49. data/lib/cf_script/object/api_endpoint.rb +10 -0
  50. data/lib/cf_script/object/app_info.rb +69 -0
  51. data/lib/cf_script/object/app_list.rb +24 -0
  52. data/lib/cf_script/object/app_spec.rb +55 -0
  53. data/lib/cf_script/object/attribute.rb +18 -0
  54. data/lib/cf_script/object/attribute_list.rb +40 -0
  55. data/lib/cf_script/object/instance_status.rb +29 -0
  56. data/lib/cf_script/object/route_info.rb +14 -0
  57. data/lib/cf_script/object/space.rb +17 -0
  58. data/lib/cf_script/object/target.rb +23 -0
  59. data/lib/cf_script/object.rb +24 -0
  60. data/lib/cf_script/output/buffer.rb +74 -0
  61. data/lib/cf_script/output/parser/attributes.rb +44 -0
  62. data/lib/cf_script/output/parser/section.rb +15 -0
  63. data/lib/cf_script/output/parser/table.rb +46 -0
  64. data/lib/cf_script/output/parser.rb +15 -0
  65. data/lib/cf_script/output/tests.rb +51 -0
  66. data/lib/cf_script/output/utils.rb +13 -0
  67. data/lib/cf_script/output.rb +62 -0
  68. data/lib/cf_script/scope/app/env.rb +15 -0
  69. data/lib/cf_script/scope/app/routes.rb +21 -0
  70. data/lib/cf_script/scope/app/state.rb +33 -0
  71. data/lib/cf_script/scope/app/utils.rb +32 -0
  72. data/lib/cf_script/scope/app.rb +94 -0
  73. data/lib/cf_script/scope/proxy.rb +36 -0
  74. data/lib/cf_script/scope/script.rb +59 -0
  75. data/lib/cf_script/scope/space.rb +9 -0
  76. data/lib/cf_script/scope/target.rb +90 -0
  77. data/lib/cf_script/scope.rb +68 -0
  78. data/lib/cf_script/ui.rb +261 -0
  79. data/lib/cf_script/utils.rb +19 -0
  80. data/lib/cf_script/version.rb +3 -0
  81. data/lib/cf_script.rb +105 -0
  82. data/test/fixtures/commands/apps/app/good.yml +18 -0
  83. data/test/fixtures/commands/apps/app/not_found.yml +8 -0
  84. data/test/fixtures/commands/apps/app/running.yml +19 -0
  85. data/test/fixtures/commands/apps/apps/good.yml +14 -0
  86. data/test/fixtures/commands/apps/apps/no_apps.yml +10 -0
  87. data/test/fixtures/commands/apps/env/empty.yml +37 -0
  88. data/test/fixtures/commands/apps/env/good.yml +41 -0
  89. data/test/fixtures/commands/apps/push/good.yml +60 -0
  90. data/test/fixtures/commands/apps/restage/good.yml +48 -0
  91. data/test/fixtures/commands/apps/restage/not_found.yml +8 -0
  92. data/test/fixtures/commands/apps/restart/good.yml +35 -0
  93. data/test/fixtures/commands/apps/restart/not_found.yml +8 -0
  94. data/test/fixtures/commands/apps/set_env/empty.yml +5 -0
  95. data/test/fixtures/commands/apps/set_env/good.yml +9 -0
  96. data/test/fixtures/commands/apps/set_env/not_found.yml +8 -0
  97. data/test/fixtures/commands/apps/start/good.yml +32 -0
  98. data/test/fixtures/commands/apps/start/not_found.yml +8 -0
  99. data/test/fixtures/commands/apps/start/with_container.yml +98 -0
  100. data/test/fixtures/commands/apps/stop/good.yml +8 -0
  101. data/test/fixtures/commands/apps/stop/not_found.yml +8 -0
  102. data/test/fixtures/commands/apps/unset_env/empty.yml +5 -0
  103. data/test/fixtures/commands/apps/unset_env/good.yml +9 -0
  104. data/test/fixtures/commands/apps/unset_env/not_found.yml +8 -0
  105. data/test/fixtures/commands/common/fail.yml +5 -0
  106. data/test/fixtures/commands/common/no_endpoint.yml +11 -0
  107. data/test/fixtures/commands/common/no_login.yml +8 -0
  108. data/test/fixtures/commands/general/api/bad_argument.yml +9 -0
  109. data/test/fixtures/commands/general/api/bad_endpoint.yml +9 -0
  110. data/test/fixtures/commands/general/api/good.yml +7 -0
  111. data/test/fixtures/commands/general/api/not_set.yml +7 -0
  112. data/test/fixtures/commands/general/api/set.yml +7 -0
  113. data/test/fixtures/commands/general/auth/empty.yml +5 -0
  114. data/test/fixtures/commands/general/auth/good.yml +10 -0
  115. data/test/fixtures/commands/general/auth/rejected.yml +10 -0
  116. data/test/fixtures/commands/general/login/good.yml +8 -0
  117. data/test/fixtures/commands/general/login/rejected.yml +23 -0
  118. data/test/fixtures/commands/general/logout/good.yml +8 -0
  119. data/test/fixtures/commands/general/target/empty.yml +5 -0
  120. data/test/fixtures/commands/general/target/good.yml +11 -0
  121. data/test/fixtures/commands/general/target/no_space.yml +10 -0
  122. data/test/fixtures/commands/general/target/not_found.yml +9 -0
  123. data/test/fixtures/commands/general/target/production.yml +11 -0
  124. data/test/fixtures/commands/general/target/staging.yml +11 -0
  125. data/test/fixtures/commands/general/target/staging_org.yml +11 -0
  126. data/test/fixtures/commands/general/target/test.yml +11 -0
  127. data/test/fixtures/commands/routes/check_route/good.yml +9 -0
  128. data/test/fixtures/commands/routes/check_route/no_domain.yml +9 -0
  129. data/test/fixtures/commands/routes/check_route/no_route.yml +9 -0
  130. data/test/fixtures/commands/routes/create_route/exists.yml +9 -0
  131. data/test/fixtures/commands/routes/create_route/good.yml +8 -0
  132. data/test/fixtures/commands/routes/delete_route/good.yml +8 -0
  133. data/test/fixtures/commands/routes/delete_route/not_exist.yml +8 -0
  134. data/test/fixtures/commands/routes/map_route/good.yml +10 -0
  135. data/test/fixtures/commands/routes/map_route/host_taken.yml +10 -0
  136. data/test/fixtures/commands/routes/map_route/invalid.yml +9 -0
  137. data/test/fixtures/commands/routes/map_route/no_app.yml +8 -0
  138. data/test/fixtures/commands/routes/map_route/no_domain.yml +9 -0
  139. data/test/fixtures/commands/routes/routes/good.yml +14 -0
  140. data/test/fixtures/commands/routes/unmap_route/good.yml +8 -0
  141. data/test/fixtures/commands/routes/unmap_route/no_app.yml +8 -0
  142. data/test/fixtures/commands/routes/unmap_route/no_domain.yml +9 -0
  143. data/test/fixtures/commands/spaces/space/empty.yml +5 -0
  144. data/test/fixtures/commands/spaces/space/good.yml +16 -0
  145. data/test/fixtures/commands/spaces/space/staging.yml +16 -0
  146. data/test/fixtures/commands/spaces/spaces/empty.yml +5 -0
  147. data/test/fixtures/commands/spaces/spaces/good.yml +12 -0
  148. data/test/lib/cf_script/command/base_test.rb +21 -0
  149. data/test/lib/cf_script/command/cf/apps/app_test.rb +56 -0
  150. data/test/lib/cf_script/command/cf/apps/apps_test.rb +81 -0
  151. data/test/lib/cf_script/command/cf/apps/env_test.rb +55 -0
  152. data/test/lib/cf_script/command/cf/apps/push_test.rb +46 -0
  153. data/test/lib/cf_script/command/cf/apps/restage_test.rb +47 -0
  154. data/test/lib/cf_script/command/cf/apps/restart_test.rb +47 -0
  155. data/test/lib/cf_script/command/cf/apps/set_env_test.rb +38 -0
  156. data/test/lib/cf_script/command/cf/apps/start_test.rb +55 -0
  157. data/test/lib/cf_script/command/cf/apps/stop_test.rb +35 -0
  158. data/test/lib/cf_script/command/cf/apps/unset_env_test.rb +38 -0
  159. data/test/lib/cf_script/command/cf/general/api_test.rb +55 -0
  160. data/test/lib/cf_script/command/cf/general/auth_test.rb +76 -0
  161. data/test/lib/cf_script/command/cf/general/login_test.rb +80 -0
  162. data/test/lib/cf_script/command/cf/general/logout_test.rb +34 -0
  163. data/test/lib/cf_script/command/cf/general/target_test.rb +110 -0
  164. data/test/lib/cf_script/command/cf/routes/check_route_test.rb +31 -0
  165. data/test/lib/cf_script/command/cf/routes/create_route_test.rb +19 -0
  166. data/test/lib/cf_script/command/cf/routes/delete_route_test.rb +19 -0
  167. data/test/lib/cf_script/command/cf/routes/map_route_test.rb +56 -0
  168. data/test/lib/cf_script/command/cf/routes/routes_test.rb +24 -0
  169. data/test/lib/cf_script/command/cf/routes/unmap_route_test.rb +36 -0
  170. data/test/lib/cf_script/command/cf/spaces/space_test.rb +55 -0
  171. data/test/lib/cf_script/command/cf/spaces/spaces_test.rb +47 -0
  172. data/test/lib/cf_script/command/line_test.rb +59 -0
  173. data/test/lib/cf_script/object/api_endpoint_test.rb +19 -0
  174. data/test/lib/cf_script/object/app_info_test.rb +127 -0
  175. data/test/lib/cf_script/object/app_list_test.rb +51 -0
  176. data/test/lib/cf_script/object/attribute_list_test.rb +42 -0
  177. data/test/lib/cf_script/object/attribute_test.rb +29 -0
  178. data/test/lib/cf_script/object/instance_status_test.rb +37 -0
  179. data/test/lib/cf_script/object/space_test.rb +31 -0
  180. data/test/lib/cf_script/object/target_test.rb +41 -0
  181. data/test/lib/cf_script/output/buffer_test.rb +73 -0
  182. data/test/lib/cf_script/output/parser/attributes_test.rb +102 -0
  183. data/test/lib/cf_script/output/parser/section_test.rb +60 -0
  184. data/test/lib/cf_script/output/parser/table_test.rb +108 -0
  185. data/test/lib/cf_script/output/tests_test.rb +91 -0
  186. data/test/lib/cf_script/output_test.rb +134 -0
  187. data/test/lib/cf_script/scope/app/state_test.rb +61 -0
  188. data/test/lib/cf_script/scope/app_test.rb +101 -0
  189. data/test/lib/cf_script/scope/script_test.rb +88 -0
  190. data/test/lib/cf_script/scope/space_test.rb +27 -0
  191. data/test/lib/cf_script/scope/target_test.rb +158 -0
  192. data/test/lib/cf_script/scope_test.rb +41 -0
  193. data/test/lib/cf_script/utils_test.rb +20 -0
  194. data/test/lib/cf_script_test.rb +73 -0
  195. data/test/support/assertions.rb +14 -0
  196. data/test/support/helpers/config_context.rb +19 -0
  197. data/test/support/helpers/fixture_executor.rb +79 -0
  198. data/test/support/helpers/mock_execution.rb +58 -0
  199. data/test/support/helpers/object_helpers.rb +29 -0
  200. data/test/support/helpers/output_sink.rb +25 -0
  201. data/test/support/helpers.rb +3 -0
  202. data/test/support/shared_examples/command_object.rb +38 -0
  203. data/test/support/shared_examples.rb +30 -0
  204. data/test/test_helper.rb +34 -0
  205. metadata +321 -0
@@ -0,0 +1,48 @@
1
+ ---
2
+ stdout: |
3
+ Restaging app worker in org ACME / space development as user@example.com...
4
+ Creating container
5
+ Successfully created container
6
+ Downloading app package...
7
+ Downloaded app package (255B)
8
+ Downloading buildpacks (https://github.com/cloudfoundry/binary-buildpack.git), build artifacts cache...
9
+ Downloading build artifacts cache...
10
+ Downloaded build artifacts cache (108B)
11
+ Downloaded buildpacks
12
+ Staging...
13
+ Exit status 0
14
+ Staging complete
15
+ Uploading droplet, build artifacts cache...
16
+ Uploading droplet...
17
+ Uploading build artifacts cache...
18
+ Uploaded build artifacts cache (108B)
19
+ Uploaded droplet (357B)
20
+ Uploading complete
21
+
22
+ 1 of 1 instances running
23
+
24
+ App started
25
+
26
+
27
+ OK
28
+
29
+ App email-worker was started using this command `./worker`
30
+
31
+ Showing health and status for app worker in org ACME / space development as user@example.com...
32
+ OK
33
+
34
+ requested state: started
35
+ instances: 1/2
36
+ usage: 4M x 1 instances
37
+ urls:
38
+ last uploaded: Wed Dec 24 23:59:00 UTC 2015
39
+ stack: cflinuxfs2
40
+ buildpack: https://github.com/cloudfoundry/binary-buildpack.git
41
+
42
+ state since cpu memory disk details
43
+ #0 running 2015-12-25 00:00:00 AM 42.0% 12.3M of 256M 45.6M of 1G
44
+ #1 stopped 2015-12-25 00:00:00 AM 0.0% 0M of 256M 45.6M of 1G
45
+
46
+ stderr: ''
47
+ status:
48
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ FAILED
4
+ App app-name not found
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,35 @@
1
+ ---
2
+ stdout: |
3
+ Stopping app worker in org ACME / space development as user@example.com...
4
+ OK
5
+
6
+ Starting app email-worker in org ACME / space development as user@example.com...
7
+
8
+ 0 of 1 instances running, 1 starting
9
+ 1 of 1 instances running
10
+
11
+ App started
12
+
13
+
14
+ OK
15
+
16
+ App worker was started using this command `./worker`
17
+
18
+ Showing health and status for app development-worker in org ACME / space development as user@example.com...
19
+ OK
20
+
21
+ requested state: started
22
+ instances: 1/2
23
+ usage: 256M x 1 instances
24
+ urls:
25
+ last uploaded: Wed Dec 24 23:59:00 UTC 2015
26
+ stack: cflinuxfs2
27
+ buildpack: https://github.com/cloudfoundry/binary-buildpack.git
28
+
29
+ state since cpu memory disk details
30
+ #0 running 2015-12-25 00:00:00 AM 42.0% 12.3M of 256M 45.6M of 1G
31
+ #1 stopped 2015-12-25 00:00:00 AM 0.0% 0M of 256M 45.6M of 1G
32
+
33
+ stderr: ''
34
+ status:
35
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ FAILED
4
+ App app-name not found
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,5 @@
1
+ ---
2
+ stdout: ''
3
+ stderr: ''
4
+ status:
5
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Setting env variable 'SOME_NAME' to 'SOME_VALUE' for app worker in org ACME / space development as user@example.com...
4
+ OK
5
+ TIP: Use 'cf restage' to ensure your env variable changes take effect
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ FAILED
4
+ App bogus not found
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,32 @@
1
+ ---
2
+ stdout: |
3
+ Starting app development-worker in org ACME / space development as user@example.com...
4
+
5
+ 0 of 2 instances running, 1 starting
6
+ 1 of 2 instances running
7
+
8
+ App started
9
+
10
+
11
+ OK
12
+
13
+ App development-worker was started using this command `./worker`
14
+
15
+ Showing health and status for app development-worker in org ACME / space development as user@example.com...
16
+ OK
17
+
18
+ requested state: started
19
+ instances: 1/2
20
+ usage: 256M x 1 instances
21
+ urls:
22
+ last uploaded: Wed Dec 24 23:59:00 UTC 2015
23
+ stack: cflinuxfs2
24
+ buildpack: https://github.com/cloudfoundry/binary-buildpack.git
25
+
26
+ state since cpu memory disk details
27
+ #0 running 2015-12-25 00:00:00 AM 42.0% 12.3M of 256M 45.6M of 1G
28
+ #1 stopped 2015-12-25 00:00:00 AM 0.0% 0M of 256M 45.6M of 1G
29
+
30
+ stderr: ''
31
+ status:
32
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ FAILED
4
+ App app-name not found
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,98 @@
1
+ ---
2
+ stdout: |
3
+ Starting app frontend in org ACME / space development as user@example.com...
4
+ Creating container
5
+ Successfully created container
6
+ Downloading app package...
7
+ Downloaded app package (31K)
8
+ No buildpack specified; fetching standard buildpacks to detect and build your application.
9
+ Downloading buildpacks (staticfile_buildpack, java_buildpack, ruby_buildpack, nodejs_buildpack, go_buildpack, python_buildpack, php_buildpack, liberty_buildpack, binary_buildpack), build artifacts cache...
10
+ Downloading nodejs_buildpack...
11
+ Downloading staticfile_buildpack...
12
+ Downloading java_buildpack...
13
+ Downloading go_buildpack...
14
+ Downloaded java_buildpack
15
+ Downloading liberty_buildpack...
16
+ Downloaded staticfile_buildpack
17
+ Downloading python_buildpack...
18
+ Downloading php_buildpack...
19
+ Downloaded nodejs_buildpack
20
+ Downloading ruby_buildpack...
21
+ Downloaded liberty_buildpack
22
+ Downloading binary_buildpack...
23
+ Downloaded binary_buildpack
24
+ Downloading build artifacts cache...
25
+ Downloaded php_buildpack
26
+ Downloaded ruby_buildpack
27
+ Downloaded build artifacts cache (23.7M)
28
+ Downloaded buildpacks
29
+ Staging...
30
+ cat: ../VERSION: No such file or directory
31
+ -------> Buildpack version 1.6.9
32
+ Downloaded [file:///tmp/buildpacks/7fd367595cc31484469444925764759b/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_ruby_binaries_shared_bundler-1.9.7.tgz]
33
+ -----> Compiling Ruby/Rails
34
+ Downloaded [file:///tmp/buildpacks/7fd367595cc31484469444925764759b/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_concourse-binaries_ruby_ruby-2.2.3-linux-x64.tgz]
35
+ -----> Using Ruby version: ruby-2.2.3
36
+ -----> Installing dependencies using bundler 1.9.7
37
+ Downloaded [file:///tmp/buildpacks/7fd367595cc31484469444925764759b/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_ruby_binaries_cflinuxfs2_libyaml-0.1.6.tgz]
38
+ Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
39
+ Using json 1.8.3
40
+ Using rake 10.4.2
41
+ Using minitest 5.8.3
42
+ Using rack 1.6.4
43
+ Using mime-types 2.99
44
+ Using bundler 1.9.7
45
+ Using mail 2.6.3
46
+ Bundle complete! 12 Gemfile dependencies, 49 gems now installed.
47
+ Gems in the groups development and test were not installed.
48
+ Bundled gems are installed into ./vendor/bundle.
49
+ Bundle completed (0.38s)
50
+ Cleaning up the bundler cache.
51
+ Downloaded [file:///tmp/buildpacks/7fd367595cc31484469444925764759b/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_node_beta-binaries_node-0.12.7-linux-x64.tar.gz]
52
+ -----> Preparing app for Rails asset pipeline
53
+ Running: rake assets:precompile
54
+ Cleaning assets
55
+ Running: rake assets:clean
56
+ ###### WARNING:
57
+ You have not declared a Ruby version in your Gemfile.
58
+ To set your Ruby version add this line to your Gemfile:
59
+ ruby '2.2.3'
60
+ # See https://devcenter.heroku.com/articles/ruby-versions for more information.
61
+ ###### WARNING:
62
+ No Procfile detected, using the default web server (webrick)
63
+ https://devcenter.heroku.com/articles/ruby-default-web-server
64
+ Staging complete
65
+ Uploading droplet, build artifacts cache...
66
+ Uploading droplet...
67
+ Uploading build artifacts cache...
68
+ Uploaded build artifacts cache (23.6M)
69
+ Uploaded droplet (29M)
70
+ Uploading complete
71
+
72
+ 1 of 2 instances running
73
+
74
+ App started
75
+
76
+
77
+ OK
78
+
79
+ App frontend was started using this command `bin/rails server -p $PORT -e $RAILS_ENV`
80
+
81
+ Showing health and status for app frontend in org ACME / space development as user@example.com...
82
+ OK
83
+
84
+ requested state: started
85
+ instances: 1/2
86
+ usage: 256M x 1 instances
87
+ urls:
88
+ last uploaded: Sat Dec 24 23:59:00 UTC 2015
89
+ stack: cflinuxfs2
90
+ buildpack: ruby
91
+
92
+ state since cpu memory disk details
93
+ #0 running 2015-12-25 00:00:00 AM 42.0% 12.3M of 256M 45.6M of 1G
94
+ #1 stopped 2015-12-25 00:00:00 AM 0.0% 0M of 256M 45.6M of 1G
95
+
96
+ stderr: ''
97
+ status:
98
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ Stopping app development-worker in org ACME / space development as user@example.com...
4
+ OK
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ FAILED
4
+ App bogus not found
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,5 @@
1
+ ---
2
+ stdout: ''
3
+ stderr: ''
4
+ status:
5
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Removing env variable SOME_NAME from app worker in org ACME / space development as user@example.com...
4
+ OK
5
+ TIP: Use 'cf restage' to ensure your env variable changes take effect
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ FAILED
4
+ App bogus not found
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,5 @@
1
+ ---
2
+ stdout: ''
3
+ stderr: ''
4
+ status:
5
+ exitstatus: 1
@@ -0,0 +1,11 @@
1
+ ---
2
+ stdout: |
3
+ No API endpoint set. Use 'cf login' or 'cf api' to target an endpoint.
4
+
5
+ User: user@example.com
6
+ Org: ACME
7
+ Space: No space targeted, use 'cf target -s SPACE'
8
+
9
+ stderr: ''
10
+ status:
11
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ API endpoint: https://api.example.com (API version: 1.0.0)
4
+ Not logged in. Use 'cf login' to log in.
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Setting api endpoint to ...
4
+ FAILED
5
+ Error performing request: Get http:///v2/info: http: no Host in request URL
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Setting api endpoint to https://example.com...
4
+ FAILED
5
+ Server error, status code: 404, error code: 0, message:
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,7 @@
1
+ ---
2
+ stdout: |
3
+ API endpoint: https://api.cf.io (API version: 1.0.0)
4
+
5
+ stderr: ''
6
+ status:
7
+ exitstatus: 0
@@ -0,0 +1,7 @@
1
+ ---
2
+ stdout: |
3
+ No api endpoint set. Use 'cf api' to set an endpoint
4
+
5
+ stderr: ''
6
+ status:
7
+ exitstatus: 0
@@ -0,0 +1,7 @@
1
+ ---
2
+ stdout: |
3
+ API endpoint: https://api.test.com (API version: 1.2.3)
4
+
5
+ stderr: ''
6
+ status:
7
+ exitstatus: 0
@@ -0,0 +1,5 @@
1
+ ---
2
+ stdout: ''
3
+ stderr: ''
4
+ status:
5
+ exitstatus: 0
@@ -0,0 +1,10 @@
1
+ ---
2
+ stdout: |
3
+ API endpoint: https://api.example.com
4
+ Authenticating...
5
+ OK
6
+ Use 'cf target' to view or set your target org and space
7
+
8
+ stderr: ''
9
+ status:
10
+ exitstatus: 0
@@ -0,0 +1,10 @@
1
+ ---
2
+ stdout: |
3
+ API endpoint: https://api.example.com
4
+ Authenticating...
5
+ FAILED
6
+ Credentials were rejected, please try again.
7
+
8
+ stderr: ''
9
+ status:
10
+ exitstatus: 1
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ Authenticating...
4
+ OK
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,23 @@
1
+ ---
2
+ stdout: |
3
+ API endpoint: https://api.run.pivotal.io
4
+ Authenticating...
5
+ Credentials were rejected, please try again.
6
+
7
+ Password>
8
+ Authenticating...
9
+ Credentials were rejected, please try again.
10
+
11
+ Password>
12
+ Authenticating...
13
+ Credentials were rejected, please try again.
14
+ FAILED
15
+ Unable to authenticate.
16
+
17
+
18
+ API endpoint: https://api.run.pivotal.io (API version: 2.44.0)
19
+ Not logged in. Use 'cf login' to log in.
20
+
21
+ stderr: ''
22
+ status:
23
+ exitstatus: 1
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ Logging out...
4
+ OK
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,5 @@
1
+ ---
2
+ stdout: ''
3
+ stderr: ''
4
+ status:
5
+ exitstatus: 0
@@ -0,0 +1,11 @@
1
+ ---
2
+ stdout: |
3
+
4
+ API endpoint: https://api.cf.io (API version: 1.0.0)
5
+ User: user@example.com
6
+ Org: ACME
7
+ Space: development
8
+
9
+ stderr: ''
10
+ status:
11
+ exitstatus: 0
@@ -0,0 +1,10 @@
1
+ ---
2
+ stdout: |
3
+ API endpoint: https://api.cf.io (API version: 1.0.0)
4
+ User: user@example.com
5
+ Org: ACME
6
+ Space: No space targeted, use 'cf target -s SPACE'
7
+
8
+ stderr: ''
9
+ status:
10
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ FAILED
4
+ Unable to access space bogus.
5
+ Space not_found not found
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,11 @@
1
+ ---
2
+ stdout: |
3
+
4
+ API endpoint: https://api.cf.io (API version: 1.0.0)
5
+ User: user@example.com
6
+ Org: ACME
7
+ Space: production
8
+
9
+ stderr: ''
10
+ status:
11
+ exitstatus: 0
@@ -0,0 +1,11 @@
1
+ ---
2
+ stdout: |
3
+
4
+ API endpoint: https://api.cf.io (API version: 1.0.0)
5
+ User: user@example.com
6
+ Org: ACME
7
+ Space: staging
8
+
9
+ stderr: ''
10
+ status:
11
+ exitstatus: 0
@@ -0,0 +1,11 @@
1
+ ---
2
+ stdout: |
3
+
4
+ API endpoint: https://api.cf.io (API version: 1.0.0)
5
+ User: user@example.com
6
+ Org: ORG
7
+ Space: staging
8
+
9
+ stderr: ''
10
+ status:
11
+ exitstatus: 0
@@ -0,0 +1,11 @@
1
+ ---
2
+ stdout: |
3
+
4
+ API endpoint: https://api.cf.io (API version: 1.0.0)
5
+ User: user@example.com
6
+ Org: ACME
7
+ Space: test
8
+
9
+ stderr: ''
10
+ status:
11
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Checking for route...
4
+ OK
5
+ Route api.example.com does exist
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Checking for route...
4
+ FAILED
5
+ Domain example.com not found
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Checking for route...
4
+ OK
5
+ Route bogus.example.com does not exist
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,9 @@
1
+ ---
2
+ stdout: |
3
+ Creating route example.com for org ACME / space development as user@example.com...
4
+ OK
5
+ Route example.com already exists
6
+
7
+ stderr: ''
8
+ status:
9
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ Creating route example.com for org ACME / space development as user@example.com...
4
+ OK
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ Deleting route example.com...
4
+ OK
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,8 @@
1
+ ---
2
+ stdout: |
3
+ Deleting route example.com...
4
+ Unable to delete, route 'example.com' does not exist.
5
+
6
+ stderr: ''
7
+ status:
8
+ exitstatus: 0
@@ -0,0 +1,10 @@
1
+ ---
2
+ stdout: |
3
+ Creating route api.example.com for org ACME / space development as user@example.com...
4
+ OK
5
+ Adding route api.example.com to app frontend in org ACME / space development as user@example.com...
6
+ OK
7
+
8
+ stderr: ''
9
+ status:
10
+ exitstatus: 0
@@ -0,0 +1,10 @@
1
+ ---
2
+ stdout: |
3
+ Creating route frontend.cfapps.io for org ACME / space development as user@example.com...
4
+ FAILED
5
+ Error resolving route:
6
+ Server error, status code: 400, error code: 210003, message: The host is taken: api
7
+
8
+ stderr: ''
9
+ status:
10
+ exitstatus: 1