dawn-cli 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/bin/dawni +15 -0
- data/lib/dawn/cli/commands.rb +9 -8
- data/lib/dawn/cli/commands/app.rb +35 -6
- data/lib/dawn/cli/commands/auth.rb +9 -7
- data/lib/dawn/cli/commands/base_commands.rb +31 -0
- data/lib/dawn/cli/commands/domain.rb +15 -5
- data/lib/dawn/cli/commands/drain.rb +15 -5
- data/lib/dawn/cli/commands/env.rb +25 -14
- data/lib/dawn/cli/commands/key.rb +20 -7
- data/lib/dawn/cli/commands/local.rb +13 -3
- data/lib/dawn/cli/commands/release.rb +6 -4
- data/lib/dawn/cli/helpers.rb +3 -5
- data/lib/dawn/cli/output_formatter.rb +15 -2
- data/lib/dawn/cli/parser.rb +58 -36
- data/lib/dawn/cli/version.rb +2 -2
- data/spec/api.log +45272 -0
- data/spec/cli/commands/app_spec.rb +71 -0
- data/spec/cli/commands/auth_spec.rb +13 -0
- data/spec/cli/commands/domain_spec.rb +25 -0
- data/spec/cli/commands/drain_spec.rb +25 -0
- data/spec/cli/commands/env_spec.rb +26 -0
- data/spec/cli/commands/key_spec.rb +30 -0
- data/spec/cli/commands/local_spec.rb +15 -0
- data/spec/cli/commands/release_spec.rb +19 -0
- data/spec/cli/parser_spec.rb +262 -0
- data/spec/cli_spec_helper.rb +13 -0
- data/spec/support/vcr.rb +11 -0
- data/spec/vcr/Dawn_CLI_App/_create/should_create_a_new_app_with_a_name.yml +51 -0
- data/spec/vcr/Dawn_CLI_App/_create/should_create_a_new_app_without_a_name.yml +51 -0
- data/spec/vcr/Dawn_CLI_App/_delete/should_delete_current_app.yml +98 -0
- data/spec/vcr/Dawn_CLI_App/_list/should_list_all_available_apps.yml +65 -0
- data/spec/vcr/Dawn_CLI_App/_list_gears/should_list_all_gears_for_current_app.yml +98 -0
- data/spec/vcr/Dawn_CLI_App/_logs/should_trail_the_current_app_s_logs.yml +98 -0
- data/spec/vcr/Dawn_CLI_App/_scale/should_modify_the_formation_for_the_current_app.yml +98 -0
- data/spec/vcr/Dawn_CLI_Auth/_login/should_login_using_proper_credentials.yml +48 -0
- data/spec/vcr/Dawn_CLI_Auth/_login/should_not_login_using_invalid_credentials.yml +46 -0
- data/spec/vcr/Dawn_CLI_Domain/_add/should_add_a_domain_to_the_current_app.yml +96 -0
- data/spec/vcr/Dawn_CLI_Domain/_delete/should_delete_a_domain_to_the_current_app.yml +97 -0
- data/spec/vcr/Dawn_CLI_Domain/_list/should_list_all_domains_for_current_app.yml +102 -0
- data/spec/vcr/Dawn_CLI_Drain/_add/should_add_a_drain_to_the_current_app.yml +359 -0
- data/spec/vcr/Dawn_CLI_Drain/_delete/should_remove_a_drain_from_current_app.yml +476 -0
- data/spec/vcr/Dawn_CLI_Drain/_list/should_list_all_drains_for_current_app.yml +98 -0
- data/spec/vcr/Dawn_CLI_Env/_get/should_retrieve_an_ENV_variable_given_a_key.yml +51 -0
- data/spec/vcr/Dawn_CLI_Env/_set/should_set_an_ENV_variable_given_a_Hash.yml +424 -0
- data/spec/vcr/Dawn_CLI_Env/_unset/should_remove_an_ENV_variable_given_a_key.yml +275 -0
- data/spec/vcr/Dawn_CLI_Key/_add/should_add_existing_id_rsa.yml +52 -0
- data/spec/vcr/Dawn_CLI_Key/_delete/should_delete_a_key_by_id.yml +101 -0
- data/spec/vcr/Dawn_CLI_Key/_get/should_retrieve_a_key_by_id.yml +102 -0
- data/spec/vcr/Dawn_CLI_Key/_list/should_list_all_keys_deployed.yml +53 -0
- data/spec/vcr/Dawn_CLI_Local/_health_check/should_verify_that_server_is_running.yml +50 -0
- data/spec/vcr/Dawn_CLI_Local/_whoami/should_print_current_user_to_console.yml +51 -0
- metadata +43 -4
@@ -0,0 +1,359 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/drain-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.10.1
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"7589b1cbb4a716cc872fca9fb11eb526"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 4307c5cd-b26e-470d-9c12-ca2114e3fcfa
|
37
|
+
x-runtime:
|
38
|
+
- '0.015894'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 22:26:16 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":5,"created_at":"2014-06-24 18:36:12 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:12 UTC","name":"drain-test","version":0,"env":{},"formation":{"web":"1"},"url":"drain-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 22:26:36 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://api.dawn.dev/apps/5/drains
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"drain":{"url":"flushing.io"}}'
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.10.1
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 500
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html; charset=utf-8
|
79
|
+
x-request-id:
|
80
|
+
- d42c2094-6e7e-4671-acf0-16da6e42ad16
|
81
|
+
x-runtime:
|
82
|
+
- '0.085692'
|
83
|
+
content-length:
|
84
|
+
- '23463'
|
85
|
+
connection:
|
86
|
+
- TE, close
|
87
|
+
Date:
|
88
|
+
- Tue, 24 Jun 2014 22:26:16 GMT
|
89
|
+
body:
|
90
|
+
encoding: UTF-8
|
91
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
92
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
93
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
94
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
95
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
96
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
97
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
98
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
99
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
100
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
101
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
102
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
103
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
104
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
105
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
106
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
107
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
108
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
109
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
110
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
111
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
112
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
113
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
114
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
115
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
116
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
117
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
118
|
+
{ color: #C52F24; }\n\n \n </style>\n\n <script>\n var toggle = function(id)
|
119
|
+
{\n var s = document.getElementById(id).style;\n s.display = s.display
|
120
|
+
== 'none' ? 'block' : 'none';\n return false;\n }\n var show =
|
121
|
+
function(id) {\n document.getElementById(id).style.display = 'block';\n
|
122
|
+
\ }\n var hide = function(id) {\n document.getElementById(id).style.display
|
123
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
124
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
125
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
126
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>\n Excon::Errors::UnprocessableEntity\n
|
127
|
+
\ in AppsController#create_drain\n </h1>\n</header>\n\n<div id=\"container\">\n
|
128
|
+
\ <h2>Expected(201) <=> Actual(422 Unprocessable Entity)</h2>\n\n <div
|
129
|
+
class=\"source\">\n<div class=\"info\">\n Extracted source (around line <strong>#8</strong>):\n</div>\n<div
|
130
|
+
class=\"data\">\n <table cellpadding=\"0\" cellspacing=\"0\" class=\"lines\">\n
|
131
|
+
\ <tr>\n <td>\n <pre class=\"line_numbers\">\n<span>6</span>\n<span>7</span>\n<span>8</span>\n<span>9</span>\n<span>10</span>\n<span>11</span>\n
|
132
|
+
\ </pre>\n </td>\n<td width=\"100%\">\n<pre>\n<div class=\"line\">\n</div><div
|
133
|
+
class=\"line\"> private def create_logplex_drain\n</div><div class=\"line
|
134
|
+
active\"> resp = Logplex.post(\n</div><div class=\"line\"> expects:
|
135
|
+
201,\n</div><div class=\"line\"> path: "/v2/channels/#{app.logplex_id}/drains",\n</div><div
|
136
|
+
class=\"line\"> body: {url: self.url}.to_json,\n</div>\n</pre>\n</td>\n
|
137
|
+
\ </tr>\n </table>\n</div>\n</div>\n\n \n<p><code>Rails.root: /usr/src/app</code></p>\n\n<div
|
138
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
139
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
140
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
141
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
142
|
+
block;\">\n <pre><code>app/models/drain.rb:8:in `create_logplex_drain'\napp/controllers/apps_controller.rb:126:in
|
143
|
+
`create_drain'</code></pre>\n </div>\n <div id=\"Framework-Trace\"
|
144
|
+
style=\"display: none;\">\n <pre><code>excon (0.34.0) lib/excon/middlewares/expects.rb:6:in
|
145
|
+
`response_call'\nexcon (0.34.0) lib/excon/middlewares/response_parser.rb:26:in
|
146
|
+
`response_call'\n/usr/local/lib/ruby/gems/2.1.0/bundler/gems/docker-api-980939fc3826/lib/excon/middlewares/hijack.rb:34:in
|
147
|
+
`response_call'\nexcon (0.34.0) lib/excon/connection.rb:402:in `response'\nexcon
|
148
|
+
(0.34.0) lib/excon/connection.rb:272:in `request'\nexcon (0.34.0) lib/excon/connection.rb:333:in
|
149
|
+
`post'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:424:in `block
|
150
|
+
in make_lambda'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:160:in
|
151
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:160:in `block
|
152
|
+
in halting'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in
|
153
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'\nactiverecord
|
154
|
+
(4.1.1) lib/active_record/callbacks.rb:306:in `create_record'\nactiverecord
|
155
|
+
(4.1.1) lib/active_record/timestamp.rb:57:in `create_record'\nactiverecord
|
156
|
+
(4.1.1) lib/active_record/persistence.rb:482:in `create_or_update'\nactiverecord
|
157
|
+
(4.1.1) lib/active_record/callbacks.rb:302:in `block in create_or_update'\nactivesupport
|
158
|
+
(4.1.1) lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1)
|
159
|
+
lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in
|
160
|
+
`block in halting'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in
|
161
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'\nactiverecord
|
162
|
+
(4.1.1) lib/active_record/callbacks.rb:302:in `create_or_update'\nactiverecord
|
163
|
+
(4.1.1) lib/active_record/persistence.rb:103:in `save'\nactiverecord (4.1.1)
|
164
|
+
lib/active_record/validations.rb:51:in `save'\nactiverecord (4.1.1) lib/active_record/attribute_methods/dirty.rb:21:in
|
165
|
+
`save'\nactiverecord (4.1.1) lib/active_record/transactions.rb:268:in
|
166
|
+
`block (2 levels) in save'\nactiverecord (4.1.1) lib/active_record/transactions.rb:329:in
|
167
|
+
`block in with_transaction_returning_status'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:209:in
|
168
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/transactions.rb:208:in
|
169
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/transactions.rb:326:in
|
170
|
+
`with_transaction_returning_status'\nactiverecord (4.1.1) lib/active_record/transactions.rb:268:in
|
171
|
+
`block in save'\nactiverecord (4.1.1) lib/active_record/transactions.rb:283:in
|
172
|
+
`rollback_active_record_state!'\nactiverecord (4.1.1) lib/active_record/transactions.rb:267:in
|
173
|
+
`save'\nactiverecord (4.1.1) lib/active_record/associations/has_many_association.rb:40:in
|
174
|
+
`insert_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:462:in
|
175
|
+
`block (2 levels) in create_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:389:in
|
176
|
+
`add_to_target'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:460:in
|
177
|
+
`block in create_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:168:in
|
178
|
+
`block in transaction'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
179
|
+
`block in transaction'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:219:in
|
180
|
+
`within_new_transaction'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
181
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/transactions.rb:208:in
|
182
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:167:in
|
183
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:459:in
|
184
|
+
`create_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:137:in
|
185
|
+
`create'\nactiverecord (4.1.1) lib/active_record/associations/collection_proxy.rb:285:in
|
186
|
+
`create'\nactionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action'\nactionpack
|
187
|
+
(4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'\nactionpack
|
188
|
+
(4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\nactivesupport
|
189
|
+
(4.1.1) lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1)
|
190
|
+
lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in
|
191
|
+
`block in halting_and_conditional'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in
|
192
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in `block
|
193
|
+
in halting_and_conditional'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in
|
194
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in `block
|
195
|
+
in halting_and_conditional'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in
|
196
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block
|
197
|
+
in halting'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in
|
198
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block
|
199
|
+
in halting'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in
|
200
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'\nactionpack
|
201
|
+
(4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action'\nactionpack
|
202
|
+
(4.1.1) lib/abstract_controller/base.rb:136:in `process'\nactionview (4.1.1)
|
203
|
+
lib/action_view/rendering.rb:30:in `process'\nactionpack (4.1.1) lib/action_controller/metal.rb:195:in
|
204
|
+
`dispatch'\nactionpack (4.1.1) lib/action_controller/metal.rb:231:in `block
|
205
|
+
in action'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in
|
206
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in
|
207
|
+
`dispatch'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in
|
208
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in
|
209
|
+
`block in call'\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in
|
210
|
+
`each'\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in
|
211
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in
|
212
|
+
`call'\nwarden (1.2.3) lib/warden/manager.rb:35:in `block in call'\nwarden
|
213
|
+
(1.2.3) lib/warden/manager.rb:34:in `catch'\nwarden (1.2.3) lib/warden/manager.rb:34:in
|
214
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
215
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.1.1)
|
216
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
217
|
+
(4.1.1) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.1.1)
|
218
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'\nactionpack
|
219
|
+
(4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
220
|
+
(4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks'\nactionpack
|
221
|
+
(4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
222
|
+
(4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'\nactionpack
|
223
|
+
(4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nbetter_errors
|
224
|
+
(1.1.0) lib/better_errors/middleware.rb:58:in `call'\nactionpack (4.1.1)
|
225
|
+
lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
226
|
+
(4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
227
|
+
(4.1.1) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.1.1) lib/rails/rack/logger.rb:20:in
|
228
|
+
`block in call'\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in
|
229
|
+
`block in tagged'\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in
|
230
|
+
`tagged'\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in
|
231
|
+
`tagged'\nrailties (4.1.1) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
232
|
+
(4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
233
|
+
(1.5.2) lib/rack/methodoverride.rb:21:in `call'\nrack (1.5.2) lib/rack/runtime.rb:17:in
|
234
|
+
`call'\nactivesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
|
235
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.1.1)
|
236
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrack (1.5.2) lib/rack/sendfile.rb:112:in
|
237
|
+
`call'\nrailties (4.1.1) lib/rails/engine.rb:514:in `call'\nrailties
|
238
|
+
(4.1.1) lib/rails/application.rb:144:in `call'\npuma (2.8.2) lib/puma/rack_patch.rb:13:in
|
239
|
+
`call'\npuma (2.8.2) lib/puma/configuration.rb:71:in `call'\npuma
|
240
|
+
(2.8.2) lib/puma/server.rb:490:in `handle_request'\npuma (2.8.2) lib/puma/server.rb:361:in
|
241
|
+
`process_client'\npuma (2.8.2) lib/puma/server.rb:254:in `block in run'\npuma
|
242
|
+
(2.8.2) lib/puma/thread_pool.rb:92:in `call'\npuma (2.8.2) lib/puma/thread_pool.rb:92:in
|
243
|
+
`block in spawn_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
244
|
+
style=\"display: none;\">\n <pre><code>excon (0.34.0) lib/excon/middlewares/expects.rb:6:in
|
245
|
+
`response_call'\nexcon (0.34.0) lib/excon/middlewares/response_parser.rb:26:in
|
246
|
+
`response_call'\n/usr/local/lib/ruby/gems/2.1.0/bundler/gems/docker-api-980939fc3826/lib/excon/middlewares/hijack.rb:34:in
|
247
|
+
`response_call'\nexcon (0.34.0) lib/excon/connection.rb:402:in `response'\nexcon
|
248
|
+
(0.34.0) lib/excon/connection.rb:272:in `request'\nexcon (0.34.0) lib/excon/connection.rb:333:in
|
249
|
+
`post'\napp/models/drain.rb:8:in `create_logplex_drain'\nactivesupport
|
250
|
+
(4.1.1) lib/active_support/callbacks.rb:424:in `block in make_lambda'\nactivesupport
|
251
|
+
(4.1.1) lib/active_support/callbacks.rb:160:in `call'\nactivesupport (4.1.1)
|
252
|
+
lib/active_support/callbacks.rb:160:in `block in halting'\nactivesupport
|
253
|
+
(4.1.1) lib/active_support/callbacks.rb:86:in `call'\nactivesupport (4.1.1)
|
254
|
+
lib/active_support/callbacks.rb:86:in `run_callbacks'\nactiverecord (4.1.1)
|
255
|
+
lib/active_record/callbacks.rb:306:in `create_record'\nactiverecord (4.1.1)
|
256
|
+
lib/active_record/timestamp.rb:57:in `create_record'\nactiverecord (4.1.1)
|
257
|
+
lib/active_record/persistence.rb:482:in `create_or_update'\nactiverecord
|
258
|
+
(4.1.1) lib/active_record/callbacks.rb:302:in `block in create_or_update'\nactivesupport
|
259
|
+
(4.1.1) lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1)
|
260
|
+
lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in
|
261
|
+
`block in halting'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in
|
262
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'\nactiverecord
|
263
|
+
(4.1.1) lib/active_record/callbacks.rb:302:in `create_or_update'\nactiverecord
|
264
|
+
(4.1.1) lib/active_record/persistence.rb:103:in `save'\nactiverecord (4.1.1)
|
265
|
+
lib/active_record/validations.rb:51:in `save'\nactiverecord (4.1.1) lib/active_record/attribute_methods/dirty.rb:21:in
|
266
|
+
`save'\nactiverecord (4.1.1) lib/active_record/transactions.rb:268:in
|
267
|
+
`block (2 levels) in save'\nactiverecord (4.1.1) lib/active_record/transactions.rb:329:in
|
268
|
+
`block in with_transaction_returning_status'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:209:in
|
269
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/transactions.rb:208:in
|
270
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/transactions.rb:326:in
|
271
|
+
`with_transaction_returning_status'\nactiverecord (4.1.1) lib/active_record/transactions.rb:268:in
|
272
|
+
`block in save'\nactiverecord (4.1.1) lib/active_record/transactions.rb:283:in
|
273
|
+
`rollback_active_record_state!'\nactiverecord (4.1.1) lib/active_record/transactions.rb:267:in
|
274
|
+
`save'\nactiverecord (4.1.1) lib/active_record/associations/has_many_association.rb:40:in
|
275
|
+
`insert_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:462:in
|
276
|
+
`block (2 levels) in create_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:389:in
|
277
|
+
`add_to_target'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:460:in
|
278
|
+
`block in create_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:168:in
|
279
|
+
`block in transaction'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
280
|
+
`block in transaction'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:219:in
|
281
|
+
`within_new_transaction'\nactiverecord (4.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in
|
282
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/transactions.rb:208:in
|
283
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:167:in
|
284
|
+
`transaction'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:459:in
|
285
|
+
`create_record'\nactiverecord (4.1.1) lib/active_record/associations/collection_association.rb:137:in
|
286
|
+
`create'\nactiverecord (4.1.1) lib/active_record/associations/collection_proxy.rb:285:in
|
287
|
+
`create'\napp/controllers/apps_controller.rb:126:in `create_drain'\nactionpack
|
288
|
+
(4.1.1) lib/abstract_controller/base.rb:189:in `process_action'\nactionpack
|
289
|
+
(4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'\nactionpack
|
290
|
+
(4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\nactivesupport
|
291
|
+
(4.1.1) lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1)
|
292
|
+
lib/active_support/callbacks.rb:113:in `call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in
|
293
|
+
`block in halting_and_conditional'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in
|
294
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in `block
|
295
|
+
in halting_and_conditional'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in
|
296
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:149:in `block
|
297
|
+
in halting_and_conditional'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in
|
298
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block
|
299
|
+
in halting'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in
|
300
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block
|
301
|
+
in halting'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in
|
302
|
+
`call'\nactivesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks'\nactionpack
|
303
|
+
(4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action'\nactionpack
|
304
|
+
(4.1.1) lib/abstract_controller/base.rb:136:in `process'\nactionview (4.1.1)
|
305
|
+
lib/action_view/rendering.rb:30:in `process'\nactionpack (4.1.1) lib/action_controller/metal.rb:195:in
|
306
|
+
`dispatch'\nactionpack (4.1.1) lib/action_controller/metal.rb:231:in `block
|
307
|
+
in action'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in
|
308
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in
|
309
|
+
`dispatch'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in
|
310
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in
|
311
|
+
`block in call'\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in
|
312
|
+
`each'\nactionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in
|
313
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in
|
314
|
+
`call'\nwarden (1.2.3) lib/warden/manager.rb:35:in `block in call'\nwarden
|
315
|
+
(1.2.3) lib/warden/manager.rb:34:in `catch'\nwarden (1.2.3) lib/warden/manager.rb:34:in
|
316
|
+
`call'\nrack (1.5.2) lib/rack/etag.rb:23:in `call'\nrack (1.5.2) lib/rack/conditionalget.rb:35:in
|
317
|
+
`call'\nrack (1.5.2) lib/rack/head.rb:11:in `call'\nactionpack (4.1.1)
|
318
|
+
lib/action_dispatch/middleware/params_parser.rb:27:in `call'\nactiverecord
|
319
|
+
(4.1.1) lib/active_record/query_cache.rb:36:in `call'\nactiverecord (4.1.1)
|
320
|
+
lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'\nactionpack
|
321
|
+
(4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\nactivesupport
|
322
|
+
(4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks'\nactionpack
|
323
|
+
(4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\nactionpack
|
324
|
+
(4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'\nactionpack
|
325
|
+
(4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\nbetter_errors
|
326
|
+
(1.1.0) lib/better_errors/middleware.rb:58:in `call'\nactionpack (4.1.1)
|
327
|
+
lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\nactionpack
|
328
|
+
(4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\nrailties
|
329
|
+
(4.1.1) lib/rails/rack/logger.rb:38:in `call_app'\nrailties (4.1.1) lib/rails/rack/logger.rb:20:in
|
330
|
+
`block in call'\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in
|
331
|
+
`block in tagged'\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in
|
332
|
+
`tagged'\nactivesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in
|
333
|
+
`tagged'\nrailties (4.1.1) lib/rails/rack/logger.rb:20:in `call'\nactionpack
|
334
|
+
(4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\nrack
|
335
|
+
(1.5.2) lib/rack/methodoverride.rb:21:in `call'\nrack (1.5.2) lib/rack/runtime.rb:17:in
|
336
|
+
`call'\nactivesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
|
337
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.1.1)
|
338
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrack (1.5.2) lib/rack/sendfile.rb:112:in
|
339
|
+
`call'\nrailties (4.1.1) lib/rails/engine.rb:514:in `call'\nrailties
|
340
|
+
(4.1.1) lib/rails/application.rb:144:in `call'\npuma (2.8.2) lib/puma/rack_patch.rb:13:in
|
341
|
+
`call'\npuma (2.8.2) lib/puma/configuration.rb:71:in `call'\npuma
|
342
|
+
(2.8.2) lib/puma/server.rb:490:in `handle_request'\npuma (2.8.2) lib/puma/server.rb:361:in
|
343
|
+
`process_client'\npuma (2.8.2) lib/puma/server.rb:254:in `block in run'\npuma
|
344
|
+
(2.8.2) lib/puma/thread_pool.rb:92:in `call'\npuma (2.8.2) lib/puma/thread_pool.rb:92:in
|
345
|
+
`block in spawn_thread'</code></pre>\n </div>\n</div>\n\n \n\n<h2
|
346
|
+
style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"drain"=>{"url"=>"flushing.io"},\n
|
347
|
+
"id"=>"5",\n "format"=>"json"}</pre>\n\n<div
|
348
|
+
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
349
|
+
toggleSessionDump()\">Toggle session dump</a></div>\n <div id=\"session_dump\"
|
350
|
+
style=\"display:none\"><pre></pre></div>\n</div>\n\n<div class=\"details\">\n
|
351
|
+
\ <div class=\"summary\"><a href=\"#\" onclick=\"return toggleEnvDump()\">Toggle
|
352
|
+
env dump</a></div>\n <div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
353
|
+
"CGI/1.2"\nHTTP_ACCEPT: "application/json"\nHTTP_ACCEPT_ENCODING:
|
354
|
+
"gzip"\nREMOTE_ADDR: "172.17.0.11"\nSERVER_NAME: "api.dawn.dev"\nSERVER_PROTOCOL:
|
355
|
+
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
356
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n"
|
357
|
+
http_version:
|
358
|
+
recorded_at: Tue, 24 Jun 2014 22:26:37 GMT
|
359
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,476 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.dawn.dev/apps/drain-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip
|
16
|
+
User-Agent:
|
17
|
+
- dawn/0.10.1
|
18
|
+
X-Ruby-Version:
|
19
|
+
- 2.1.2
|
20
|
+
X-Ruby-Platform:
|
21
|
+
- x86_64-linux
|
22
|
+
Authorization:
|
23
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message:
|
28
|
+
headers:
|
29
|
+
content-type:
|
30
|
+
- text/html
|
31
|
+
etag:
|
32
|
+
- '"7589b1cbb4a716cc872fca9fb11eb526"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
x-request-id:
|
36
|
+
- 31d86542-7ec6-4ca3-bbdd-da7cd1c98c8a
|
37
|
+
x-runtime:
|
38
|
+
- '0.014812'
|
39
|
+
transfer-encoding:
|
40
|
+
- ''
|
41
|
+
connection:
|
42
|
+
- TE, close
|
43
|
+
Date:
|
44
|
+
- Tue, 24 Jun 2014 22:26:17 GMT
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"app":{"id":5,"created_at":"2014-06-24 18:36:12 UTC","updated_at":"2014-06-24
|
48
|
+
18:36:12 UTC","name":"drain-test","version":0,"env":{},"formation":{"web":"1"},"url":"drain-test.dawnapp.dev"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 24 Jun 2014 22:26:37 GMT
|
51
|
+
- request:
|
52
|
+
method: delete
|
53
|
+
uri: http://api.dawn.dev/drains/?url=flushing.io
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
Accept:
|
59
|
+
- application/json
|
60
|
+
Content-Type:
|
61
|
+
- application/json
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip
|
64
|
+
User-Agent:
|
65
|
+
- dawn/0.10.1
|
66
|
+
X-Ruby-Version:
|
67
|
+
- 2.1.2
|
68
|
+
X-Ruby-Platform:
|
69
|
+
- x86_64-linux
|
70
|
+
Authorization:
|
71
|
+
- Basic SWNlRHJhZ29uOmFGM0VHM1hjdW16Sm1LcGFIeUI5
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 404
|
75
|
+
message:
|
76
|
+
headers:
|
77
|
+
content-type:
|
78
|
+
- text/html; charset=utf-8
|
79
|
+
x-request-id:
|
80
|
+
- 8fe34916-a410-4e63-969d-40b21de7c2f9
|
81
|
+
x-runtime:
|
82
|
+
- '0.071317'
|
83
|
+
content-length:
|
84
|
+
- '32335'
|
85
|
+
connection:
|
86
|
+
- TE, close
|
87
|
+
Date:
|
88
|
+
- Tue, 24 Jun 2014 22:26:17 GMT
|
89
|
+
body:
|
90
|
+
encoding: UTF-8
|
91
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
92
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
93
|
+
{\n background-color: #FAFAFA;\n color: #333;\n margin: 0px;\n
|
94
|
+
\ }\n\n body, p, ol, ul, td {\n font-family: helvetica, verdana,
|
95
|
+
arial, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n
|
96
|
+
\ pre {\n font-size: 11px;\n white-space: pre-wrap;\n }\n\n
|
97
|
+
\ pre.box {\n border: 1px solid #EEE;\n padding: 10px;\n margin:
|
98
|
+
0px;\n width: 958px;\n }\n\n header {\n color: #F0F0F0;\n
|
99
|
+
\ background: #C52F24;\n padding: 0.5em 1.5em;\n }\n\n h1 {\n
|
100
|
+
\ margin: 0.2em 0;\n line-height: 1.1em;\n font-size: 2em;\n
|
101
|
+
\ }\n\n h2 {\n color: #C52F24;\n line-height: 25px;\n }\n\n
|
102
|
+
\ .details {\n border: 1px solid #D0D0D0;\n border-radius: 4px;\n
|
103
|
+
\ margin: 1em 0px;\n display: block;\n width: 978px;\n }\n\n
|
104
|
+
\ .summary {\n padding: 8px 15px;\n border-bottom: 1px solid #D0D0D0;\n
|
105
|
+
\ display: block;\n }\n\n .details pre {\n margin: 5px;\n border:
|
106
|
+
none;\n }\n\n #container {\n box-sizing: border-box;\n width:
|
107
|
+
100%;\n padding: 0 1.5em;\n }\n\n .source * {\n margin: 0px;\n
|
108
|
+
\ padding: 0px;\n }\n\n .source {\n border: 1px solid #D9D9D9;\n
|
109
|
+
\ background: #ECECEC;\n width: 978px;\n }\n\n .source pre
|
110
|
+
{\n padding: 10px 0px;\n border: none;\n }\n\n .source .data
|
111
|
+
{\n font-size: 80%;\n overflow: auto;\n background-color: #FFF;\n
|
112
|
+
\ }\n\n .info {\n padding: 0.5em;\n }\n\n .source .data .line_numbers
|
113
|
+
{\n background-color: #ECECEC;\n color: #AAA;\n padding: 1em
|
114
|
+
.5em;\n border-right: 1px solid #DDD;\n text-align: right;\n }\n\n
|
115
|
+
\ .line {\n padding-left: 10px;\n }\n\n .line:hover {\n background-color:
|
116
|
+
#F6F6F6;\n }\n\n .line.active {\n background-color: #FFCCCC;\n
|
117
|
+
\ }\n\n a { color: #980905; }\n a:visited { color: #666; }\n a:hover
|
118
|
+
{ color: #C52F24; }\n\n #route_table {\n margin: 0 auto 0;\n border-collapse:
|
119
|
+
collapse;\n }\n\n #route_table td {\n padding: 0 30px;\n }\n\n #route_table
|
120
|
+
tr.bottom th {\n padding-bottom: 10px;\n line-height: 15px;\n }\n\n
|
121
|
+
\ #route_table .matched_paths {\n background-color: LightGoldenRodYellow;\n
|
122
|
+
\ }\n\n #route_table .matched_paths {\n border-bottom: solid 3px SlateGrey;\n
|
123
|
+
\ }\n\n #path_search {\n width: 80%;\n font-size: inherit;\n }\n\n
|
124
|
+
\ </style>\n\n <script>\n var toggle = function(id) {\n var s = document.getElementById(id).style;\n
|
125
|
+
\ s.display = s.display == 'none' ? 'block' : 'none';\n return false;\n
|
126
|
+
\ }\n var show = function(id) {\n document.getElementById(id).style.display
|
127
|
+
= 'block';\n }\n var hide = function(id) {\n document.getElementById(id).style.display
|
128
|
+
= 'none';\n }\n var toggleTrace = function() {\n return toggle('blame_trace');\n
|
129
|
+
\ }\n var toggleSessionDump = function() {\n return toggle('session_dump');\n
|
130
|
+
\ }\n var toggleEnvDump = function() {\n return toggle('env_dump');\n
|
131
|
+
\ }\n </script>\n</head>\n<body>\n\n<header>\n <h1>Routing Error</h1>\n</header>\n<div
|
132
|
+
id=\"container\">\n <h2>No route matches [DELETE] "/drains"</h2>\n\n
|
133
|
+
\ \n<p><code>Rails.root: /usr/src/app</code></p>\n\n<div id=\"traces\">\n
|
134
|
+
\ <a href=\"#\" onclick=\"hide('Framework-Trace');hide('Full-Trace');show('Application-Trace');;
|
135
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Full-Trace');show('Framework-Trace');;
|
136
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"hide('Application-Trace');hide('Framework-Trace');show('Full-Trace');;
|
137
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
138
|
+
block;\">\n <pre><code></code></pre>\n </div>\n <div id=\"Framework-Trace\"
|
139
|
+
style=\"display: none;\">\n <pre><code>actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in
|
140
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in
|
141
|
+
`call'\nrailties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'\nrailties
|
142
|
+
(4.1.1) lib/rails/rack/logger.rb:20:in `block in call'\nactivesupport
|
143
|
+
(4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\nactivesupport
|
144
|
+
(4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'\nactivesupport
|
145
|
+
(4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'\nrailties
|
146
|
+
(4.1.1) lib/rails/rack/logger.rb:20:in `call'\nactionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in
|
147
|
+
`call'\nrack (1.5.2) lib/rack/methodoverride.rb:21:in `call'\nrack
|
148
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
|
149
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.1.1)
|
150
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrack (1.5.2) lib/rack/sendfile.rb:112:in
|
151
|
+
`call'\nrailties (4.1.1) lib/rails/engine.rb:514:in `call'\nrailties
|
152
|
+
(4.1.1) lib/rails/application.rb:144:in `call'\npuma (2.8.2) lib/puma/rack_patch.rb:13:in
|
153
|
+
`call'\npuma (2.8.2) lib/puma/configuration.rb:71:in `call'\npuma
|
154
|
+
(2.8.2) lib/puma/server.rb:490:in `handle_request'\npuma (2.8.2) lib/puma/server.rb:361:in
|
155
|
+
`process_client'\npuma (2.8.2) lib/puma/server.rb:254:in `block in run'\npuma
|
156
|
+
(2.8.2) lib/puma/thread_pool.rb:92:in `call'\npuma (2.8.2) lib/puma/thread_pool.rb:92:in
|
157
|
+
`block in spawn_thread'</code></pre>\n </div>\n <div id=\"Full-Trace\"
|
158
|
+
style=\"display: none;\">\n <pre><code>actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in
|
159
|
+
`call'\nactionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in
|
160
|
+
`call'\nrailties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'\nrailties
|
161
|
+
(4.1.1) lib/rails/rack/logger.rb:20:in `block in call'\nactivesupport
|
162
|
+
(4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\nactivesupport
|
163
|
+
(4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'\nactivesupport
|
164
|
+
(4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'\nrailties
|
165
|
+
(4.1.1) lib/rails/rack/logger.rb:20:in `call'\nactionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in
|
166
|
+
`call'\nrack (1.5.2) lib/rack/methodoverride.rb:21:in `call'\nrack
|
167
|
+
(1.5.2) lib/rack/runtime.rb:17:in `call'\nactivesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
|
168
|
+
`call'\nrack (1.5.2) lib/rack/lock.rb:17:in `call'\nactionpack (4.1.1)
|
169
|
+
lib/action_dispatch/middleware/static.rb:64:in `call'\nrack (1.5.2) lib/rack/sendfile.rb:112:in
|
170
|
+
`call'\nrailties (4.1.1) lib/rails/engine.rb:514:in `call'\nrailties
|
171
|
+
(4.1.1) lib/rails/application.rb:144:in `call'\npuma (2.8.2) lib/puma/rack_patch.rb:13:in
|
172
|
+
`call'\npuma (2.8.2) lib/puma/configuration.rb:71:in `call'\npuma
|
173
|
+
(2.8.2) lib/puma/server.rb:490:in `handle_request'\npuma (2.8.2) lib/puma/server.rb:361:in
|
174
|
+
`process_client'\npuma (2.8.2) lib/puma/server.rb:254:in `block in run'\npuma
|
175
|
+
(2.8.2) lib/puma/thread_pool.rb:92:in `call'\npuma (2.8.2) lib/puma/thread_pool.rb:92:in
|
176
|
+
`block in spawn_thread'</code></pre>\n </div>\n</div>\n\n\n <h2>\n
|
177
|
+
\ Routes\n </h2>\n\n <p>\n Routes match in priority from top
|
178
|
+
to bottom\n </p>\n\n \n<table id='route_table' class='route_table'>\n
|
179
|
+
\ <thead>\n <tr>\n <th>Helper</th>\n <th>HTTP Verb</th>\n <th>Path</th>\n
|
180
|
+
\ <th>Controller#Action</th>\n </tr>\n <tr class='bottom'>\n <th>\n
|
181
|
+
\ <a data-route-helper=\"_path\" href=\"#\" title=\"Returns a relative
|
182
|
+
path (without the http or domain)\">Path</a> /\n <a data-route-helper=\"_url\"
|
183
|
+
href=\"#\" title=\"Returns an absolute url (with the http and domain)\">Url</a>\n
|
184
|
+
\ </th>\n <th>\n </th>\n <th>\n <input id=\"path_search\"
|
185
|
+
name=\"path[]\" placeholder=\"Path Match\" type=\"search\" />\n </th>\n
|
186
|
+
\ <th>\n </th>\n </tr>\n </thead>\n <tbody class='matched_paths'
|
187
|
+
id='matched_paths'>\n </tbody>\n <tbody>\n <tr class='route_row' data-helper='path'>\n
|
188
|
+
\ <td data-route-name='restart_gear'>\n restart_gear<span class='helper'>_path</span>\n
|
189
|
+
\ </td>\n <td data-route-verb='POST'>\n POST\n </td>\n <td data-route-path='/gears/:id/restart(.:format)'
|
190
|
+
data-regexp='^\\/gears\\/([^\\/.?]+)\\/restart(?:\\.([^\\/.?]+))?$'>\n /gears/:id/restart(.:format)\n
|
191
|
+
\ </td>\n <td data-route-reqs='gears#restart'>\n gears#restart\n </td>\n</tr>\n<tr
|
192
|
+
class='route_row' data-helper='path'>\n <td data-route-name='new_gear'>\n
|
193
|
+
\ new_gear<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
194
|
+
\ GET\n </td>\n <td data-route-path='/gears/new(.:format)' data-regexp='^\\/gears\\/new(?:\\.([^\\/.?]+))?$'>\n
|
195
|
+
\ /gears/new(.:format)\n </td>\n <td data-route-reqs='gears#new'>\n gears#new\n
|
196
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='edit_gear'>\n
|
197
|
+
\ edit_gear<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
198
|
+
\ GET\n </td>\n <td data-route-path='/gears/:id/edit(.:format)' data-regexp='^\\/gears\\/([^\\/.?]+)\\/edit(?:\\.([^\\/.?]+))?$'>\n
|
199
|
+
\ /gears/:id/edit(.:format)\n </td>\n <td data-route-reqs='gears#edit'>\n
|
200
|
+
\ gears#edit\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
201
|
+
\ <td data-route-name='gear'>\n gear<span class='helper'>_path</span>\n
|
202
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/gears/:id(.:format)'
|
203
|
+
data-regexp='^\\/gears\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /gears/:id(.:format)\n
|
204
|
+
\ </td>\n <td data-route-reqs='gears#show'>\n gears#show\n </td>\n</tr>\n<tr
|
205
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
206
|
+
\ <td data-route-verb='PATCH'>\n PATCH\n </td>\n <td data-route-path='/gears/:id(.:format)'
|
207
|
+
data-regexp='^\\/gears\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /gears/:id(.:format)\n
|
208
|
+
\ </td>\n <td data-route-reqs='gears#update'>\n gears#update\n </td>\n</tr>\n<tr
|
209
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
210
|
+
\ <td data-route-verb='PUT'>\n PUT\n </td>\n <td data-route-path='/gears/:id(.:format)'
|
211
|
+
data-regexp='^\\/gears\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /gears/:id(.:format)\n
|
212
|
+
\ </td>\n <td data-route-reqs='gears#update'>\n gears#update\n </td>\n</tr>\n<tr
|
213
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
214
|
+
\ <td data-route-verb='DELETE'>\n DELETE\n </td>\n <td data-route-path='/gears/:id(.:format)'
|
215
|
+
data-regexp='^\\/gears\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /gears/:id(.:format)\n
|
216
|
+
\ </td>\n <td data-route-reqs='gears#destroy'>\n gears#destroy\n </td>\n</tr>\n<tr
|
217
|
+
class='route_row' data-helper='path'>\n <td data-route-name='new_domain'>\n
|
218
|
+
\ new_domain<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
219
|
+
\ GET\n </td>\n <td data-route-path='/domains/new(.:format)' data-regexp='^\\/domains\\/new(?:\\.([^\\/.?]+))?$'>\n
|
220
|
+
\ /domains/new(.:format)\n </td>\n <td data-route-reqs='domains#new'>\n
|
221
|
+
\ domains#new\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
222
|
+
\ <td data-route-name='edit_domain'>\n edit_domain<span class='helper'>_path</span>\n
|
223
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/domains/:id/edit(.:format)'
|
224
|
+
data-regexp='^\\/domains\\/([^\\/.?]+)\\/edit(?:\\.([^\\/.?]+))?$'>\n /domains/:id/edit(.:format)\n
|
225
|
+
\ </td>\n <td data-route-reqs='domains#edit'>\n domains#edit\n </td>\n</tr>\n<tr
|
226
|
+
class='route_row' data-helper='path'>\n <td data-route-name='domain'>\n domain<span
|
227
|
+
class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n GET\n
|
228
|
+
\ </td>\n <td data-route-path='/domains/:id(.:format)' data-regexp='^\\/domains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n
|
229
|
+
\ /domains/:id(.:format)\n </td>\n <td data-route-reqs='domains#show'>\n
|
230
|
+
\ domains#show\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
231
|
+
\ <td data-route-name=''>\n </td>\n <td data-route-verb='PATCH'>\n PATCH\n
|
232
|
+
\ </td>\n <td data-route-path='/domains/:id(.:format)' data-regexp='^\\/domains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n
|
233
|
+
\ /domains/:id(.:format)\n </td>\n <td data-route-reqs='domains#update'>\n
|
234
|
+
\ domains#update\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
235
|
+
\ <td data-route-name=''>\n </td>\n <td data-route-verb='PUT'>\n PUT\n
|
236
|
+
\ </td>\n <td data-route-path='/domains/:id(.:format)' data-regexp='^\\/domains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n
|
237
|
+
\ /domains/:id(.:format)\n </td>\n <td data-route-reqs='domains#update'>\n
|
238
|
+
\ domains#update\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
239
|
+
\ <td data-route-name=''>\n </td>\n <td data-route-verb='DELETE'>\n DELETE\n
|
240
|
+
\ </td>\n <td data-route-path='/domains/:id(.:format)' data-regexp='^\\/domains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n
|
241
|
+
\ /domains/:id(.:format)\n </td>\n <td data-route-reqs='domains#destroy'>\n
|
242
|
+
\ domains#destroy\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
243
|
+
\ <td data-route-name='new_drain'>\n new_drain<span class='helper'>_path</span>\n
|
244
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/drains/new(.:format)'
|
245
|
+
data-regexp='^\\/drains\\/new(?:\\.([^\\/.?]+))?$'>\n /drains/new(.:format)\n
|
246
|
+
\ </td>\n <td data-route-reqs='drains#new'>\n drains#new\n </td>\n</tr>\n<tr
|
247
|
+
class='route_row' data-helper='path'>\n <td data-route-name='edit_drain'>\n
|
248
|
+
\ edit_drain<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
249
|
+
\ GET\n </td>\n <td data-route-path='/drains/:id/edit(.:format)' data-regexp='^\\/drains\\/([^\\/.?]+)\\/edit(?:\\.([^\\/.?]+))?$'>\n
|
250
|
+
\ /drains/:id/edit(.:format)\n </td>\n <td data-route-reqs='drains#edit'>\n
|
251
|
+
\ drains#edit\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
252
|
+
\ <td data-route-name='drain'>\n drain<span class='helper'>_path</span>\n
|
253
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/drains/:id(.:format)'
|
254
|
+
data-regexp='^\\/drains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /drains/:id(.:format)\n
|
255
|
+
\ </td>\n <td data-route-reqs='drains#show'>\n drains#show\n </td>\n</tr>\n<tr
|
256
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
257
|
+
\ <td data-route-verb='PATCH'>\n PATCH\n </td>\n <td data-route-path='/drains/:id(.:format)'
|
258
|
+
data-regexp='^\\/drains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /drains/:id(.:format)\n
|
259
|
+
\ </td>\n <td data-route-reqs='drains#update'>\n drains#update\n </td>\n</tr>\n<tr
|
260
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
261
|
+
\ <td data-route-verb='PUT'>\n PUT\n </td>\n <td data-route-path='/drains/:id(.:format)'
|
262
|
+
data-regexp='^\\/drains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /drains/:id(.:format)\n
|
263
|
+
\ </td>\n <td data-route-reqs='drains#update'>\n drains#update\n </td>\n</tr>\n<tr
|
264
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
265
|
+
\ <td data-route-verb='DELETE'>\n DELETE\n </td>\n <td data-route-path='/drains/:id(.:format)'
|
266
|
+
data-regexp='^\\/drains\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /drains/:id(.:format)\n
|
267
|
+
\ </td>\n <td data-route-reqs='drains#destroy'>\n drains#destroy\n </td>\n</tr>\n<tr
|
268
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
269
|
+
\ <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/releases/:id(.:format)'
|
270
|
+
data-regexp='^\\/releases\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /releases/:id(.:format)\n
|
271
|
+
\ </td>\n <td data-route-reqs='releases#show'>\n releases#show\n </td>\n</tr>\n<tr
|
272
|
+
class='route_row' data-helper='path'>\n <td data-route-name='gears_app'>\n
|
273
|
+
\ gears_app<span class='helper'>_path</span>\n </td>\n <td data-route-verb='POST'>\n
|
274
|
+
\ POST\n </td>\n <td data-route-path='/apps/:id/gears(.:format)' data-regexp='^\\/apps\\/([^\\/.?]+)\\/gears(?:\\.([^\\/.?]+))?$'>\n
|
275
|
+
\ /apps/:id/gears(.:format)\n </td>\n <td data-route-reqs='apps#create_gear'>\n
|
276
|
+
\ apps#create_gear\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
277
|
+
\ <td data-route-name='domains_app'>\n domains_app<span class='helper'>_path</span>\n
|
278
|
+
\ </td>\n <td data-route-verb='POST'>\n POST\n </td>\n <td data-route-path='/apps/:id/domains(.:format)'
|
279
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/domains(?:\\.([^\\/.?]+))?$'>\n /apps/:id/domains(.:format)\n
|
280
|
+
\ </td>\n <td data-route-reqs='apps#create_domain'>\n apps#create_domain\n
|
281
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='drains_app'>\n
|
282
|
+
\ drains_app<span class='helper'>_path</span>\n </td>\n <td data-route-verb='POST'>\n
|
283
|
+
\ POST\n </td>\n <td data-route-path='/apps/:id/drains(.:format)' data-regexp='^\\/apps\\/([^\\/.?]+)\\/drains(?:\\.([^\\/.?]+))?$'>\n
|
284
|
+
\ /apps/:id/drains(.:format)\n </td>\n <td data-route-reqs='apps#create_drain'>\n
|
285
|
+
\ apps#create_drain\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
286
|
+
\ <td data-route-name='releases_app'>\n releases_app<span class='helper'>_path</span>\n
|
287
|
+
\ </td>\n <td data-route-verb='POST'>\n POST\n </td>\n <td data-route-path='/apps/:id/releases(.:format)'
|
288
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/releases(?:\\.([^\\/.?]+))?$'>\n /apps/:id/releases(.:format)\n
|
289
|
+
\ </td>\n <td data-route-reqs='apps#create_release'>\n apps#create_release\n
|
290
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name=''>\n
|
291
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps/:id/gears(.:format)'
|
292
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/gears(?:\\.([^\\/.?]+))?$'>\n /apps/:id/gears(.:format)\n
|
293
|
+
\ </td>\n <td data-route-reqs='apps#gears'>\n apps#gears\n </td>\n</tr>\n<tr
|
294
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
295
|
+
\ <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps/:id/domains(.:format)'
|
296
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/domains(?:\\.([^\\/.?]+))?$'>\n /apps/:id/domains(.:format)\n
|
297
|
+
\ </td>\n <td data-route-reqs='apps#domains'>\n apps#domains\n </td>\n</tr>\n<tr
|
298
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
299
|
+
\ <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps/:id/drains(.:format)'
|
300
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/drains(?:\\.([^\\/.?]+))?$'>\n /apps/:id/drains(.:format)\n
|
301
|
+
\ </td>\n <td data-route-reqs='apps#drains'>\n apps#drains\n </td>\n</tr>\n<tr
|
302
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
303
|
+
\ <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps/:id/releases(.:format)'
|
304
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/releases(?:\\.([^\\/.?]+))?$'>\n /apps/:id/releases(.:format)\n
|
305
|
+
\ </td>\n <td data-route-reqs='apps#releases'>\n apps#releases\n </td>\n</tr>\n<tr
|
306
|
+
class='route_row' data-helper='path'>\n <td data-route-name='gears_restart_app'>\n
|
307
|
+
\ gears_restart_app<span class='helper'>_path</span>\n </td>\n <td data-route-verb='POST'>\n
|
308
|
+
\ POST\n </td>\n <td data-route-path='/apps/:id/gears/restart(.:format)'
|
309
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/gears\\/restart(?:\\.([^\\/.?]+))?$'>\n
|
310
|
+
\ /apps/:id/gears/restart(.:format)\n </td>\n <td data-route-reqs='apps#gears_restart'>\n
|
311
|
+
\ apps#gears_restart\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
312
|
+
\ <td data-route-name='scale_app'>\n scale_app<span class='helper'>_path</span>\n
|
313
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps/:id/scale(.:format)'
|
314
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/scale(?:\\.([^\\/.?]+))?$'>\n /apps/:id/scale(.:format)\n
|
315
|
+
\ </td>\n <td data-route-reqs='apps#formation'>\n apps#formation\n </td>\n</tr>\n<tr
|
316
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
317
|
+
\ <td data-route-verb='PUT'>\n PUT\n </td>\n <td data-route-path='/apps/:id/scale(.:format)'
|
318
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/scale(?:\\.([^\\/.?]+))?$'>\n /apps/:id/scale(.:format)\n
|
319
|
+
\ </td>\n <td data-route-reqs='apps#scale'>\n apps#scale\n </td>\n</tr>\n<tr
|
320
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
321
|
+
\ <td data-route-verb='POST'>\n POST\n </td>\n <td data-route-path='/apps/:id/scale(.:format)'
|
322
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/scale(?:\\.([^\\/.?]+))?$'>\n /apps/:id/scale(.:format)\n
|
323
|
+
\ </td>\n <td data-route-reqs='apps#scale'>\n apps#scale\n </td>\n</tr>\n<tr
|
324
|
+
class='route_row' data-helper='path'>\n <td data-route-name='env_app'>\n
|
325
|
+
\ env_app<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
326
|
+
\ GET\n </td>\n <td data-route-path='/apps/:id/env(.:format)' data-regexp='^\\/apps\\/([^\\/.?]+)\\/env(?:\\.([^\\/.?]+))?$'>\n
|
327
|
+
\ /apps/:id/env(.:format)\n </td>\n <td data-route-reqs='apps#get_env'>\n
|
328
|
+
\ apps#get_env\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
329
|
+
\ <td data-route-name=''>\n </td>\n <td data-route-verb='PUT'>\n PUT\n
|
330
|
+
\ </td>\n <td data-route-path='/apps/:id/env(.:format)' data-regexp='^\\/apps\\/([^\\/.?]+)\\/env(?:\\.([^\\/.?]+))?$'>\n
|
331
|
+
\ /apps/:id/env(.:format)\n </td>\n <td data-route-reqs='apps#update_env'>\n
|
332
|
+
\ apps#update_env\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
333
|
+
\ <td data-route-name=''>\n </td>\n <td data-route-verb='POST'>\n POST\n
|
334
|
+
\ </td>\n <td data-route-path='/apps/:id/env(.:format)' data-regexp='^\\/apps\\/([^\\/.?]+)\\/env(?:\\.([^\\/.?]+))?$'>\n
|
335
|
+
\ /apps/:id/env(.:format)\n </td>\n <td data-route-reqs='apps#update_env'>\n
|
336
|
+
\ apps#update_env\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
337
|
+
\ <td data-route-name='logs_app'>\n logs_app<span class='helper'>_path</span>\n
|
338
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps/:id/logs(.:format)'
|
339
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)\\/logs(?:\\.([^\\/.?]+))?$'>\n /apps/:id/logs(.:format)\n
|
340
|
+
\ </td>\n <td data-route-reqs='apps#logs'>\n apps#logs\n </td>\n</tr>\n<tr
|
341
|
+
class='route_row' data-helper='path'>\n <td data-route-name='run_app'>\n
|
342
|
+
\ run_app<span class='helper'>_path</span>\n </td>\n <td data-route-verb='POST'>\n
|
343
|
+
\ POST\n </td>\n <td data-route-path='/apps/:id/run(.:format)' data-regexp='^\\/apps\\/([^\\/.?]+)\\/run(?:\\.([^\\/.?]+))?$'>\n
|
344
|
+
\ /apps/:id/run(.:format)\n </td>\n <td data-route-reqs='apps#run'>\n
|
345
|
+
\ apps#run\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
346
|
+
\ <td data-route-name='apps'>\n apps<span class='helper'>_path</span>\n
|
347
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps(.:format)'
|
348
|
+
data-regexp='^\\/apps(?:\\.([^\\/.?]+))?$'>\n /apps(.:format)\n </td>\n
|
349
|
+
\ <td data-route-reqs='apps#index'>\n apps#index\n </td>\n</tr>\n<tr class='route_row'
|
350
|
+
data-helper='path'>\n <td data-route-name=''>\n </td>\n <td data-route-verb='POST'>\n
|
351
|
+
\ POST\n </td>\n <td data-route-path='/apps(.:format)' data-regexp='^\\/apps(?:\\.([^\\/.?]+))?$'>\n
|
352
|
+
\ /apps(.:format)\n </td>\n <td data-route-reqs='apps#create'>\n apps#create\n
|
353
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='new_app'>\n
|
354
|
+
\ new_app<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
355
|
+
\ GET\n </td>\n <td data-route-path='/apps/new(.:format)' data-regexp='^\\/apps\\/new(?:\\.([^\\/.?]+))?$'>\n
|
356
|
+
\ /apps/new(.:format)\n </td>\n <td data-route-reqs='apps#new'>\n apps#new\n
|
357
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='edit_app'>\n
|
358
|
+
\ edit_app<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
359
|
+
\ GET\n </td>\n <td data-route-path='/apps/:id/edit(.:format)' data-regexp='^\\/apps\\/([^\\/.?]+)\\/edit(?:\\.([^\\/.?]+))?$'>\n
|
360
|
+
\ /apps/:id/edit(.:format)\n </td>\n <td data-route-reqs='apps#edit'>\n
|
361
|
+
\ apps#edit\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
362
|
+
\ <td data-route-name='app'>\n app<span class='helper'>_path</span>\n
|
363
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/apps/:id(.:format)'
|
364
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /apps/:id(.:format)\n
|
365
|
+
\ </td>\n <td data-route-reqs='apps#show'>\n apps#show\n </td>\n</tr>\n<tr
|
366
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
367
|
+
\ <td data-route-verb='PATCH'>\n PATCH\n </td>\n <td data-route-path='/apps/:id(.:format)'
|
368
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /apps/:id(.:format)\n
|
369
|
+
\ </td>\n <td data-route-reqs='apps#update'>\n apps#update\n </td>\n</tr>\n<tr
|
370
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
371
|
+
\ <td data-route-verb='PUT'>\n PUT\n </td>\n <td data-route-path='/apps/:id(.:format)'
|
372
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /apps/:id(.:format)\n
|
373
|
+
\ </td>\n <td data-route-reqs='apps#update'>\n apps#update\n </td>\n</tr>\n<tr
|
374
|
+
class='route_row' data-helper='path'>\n <td data-route-name=''>\n </td>\n
|
375
|
+
\ <td data-route-verb='DELETE'>\n DELETE\n </td>\n <td data-route-path='/apps/:id(.:format)'
|
376
|
+
data-regexp='^\\/apps\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /apps/:id(.:format)\n
|
377
|
+
\ </td>\n <td data-route-reqs='apps#destroy'>\n apps#destroy\n </td>\n</tr>\n<tr
|
378
|
+
class='route_row' data-helper='path'>\n <td data-route-name='login'>\n login<span
|
379
|
+
class='helper'>_path</span>\n </td>\n <td data-route-verb='POST'>\n POST\n
|
380
|
+
\ </td>\n <td data-route-path='/login(.:format)' data-regexp='^\\/login(?:\\.([^\\/.?]+))?$'>\n
|
381
|
+
\ /login(.:format)\n </td>\n <td data-route-reqs='session#create'>\n session#create\n
|
382
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='account_keys'>\n
|
383
|
+
\ account_keys<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
384
|
+
\ GET\n </td>\n <td data-route-path='/account/keys(.:format)' data-regexp='^\\/account\\/keys(?:\\.([^\\/.?]+))?$'>\n
|
385
|
+
\ /account/keys(.:format)\n </td>\n <td data-route-reqs='account/keys#index'>\n
|
386
|
+
\ account/keys#index\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
387
|
+
\ <td data-route-name=''>\n </td>\n <td data-route-verb='POST'>\n POST\n
|
388
|
+
\ </td>\n <td data-route-path='/account/keys(.:format)' data-regexp='^\\/account\\/keys(?:\\.([^\\/.?]+))?$'>\n
|
389
|
+
\ /account/keys(.:format)\n </td>\n <td data-route-reqs='account/keys#create'>\n
|
390
|
+
\ account/keys#create\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
391
|
+
\ <td data-route-name='new_account_key'>\n new_account_key<span class='helper'>_path</span>\n
|
392
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/account/keys/new(.:format)'
|
393
|
+
data-regexp='^\\/account\\/keys\\/new(?:\\.([^\\/.?]+))?$'>\n /account/keys/new(.:format)\n
|
394
|
+
\ </td>\n <td data-route-reqs='account/keys#new'>\n account/keys#new\n
|
395
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='edit_account_key'>\n
|
396
|
+
\ edit_account_key<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
397
|
+
\ GET\n </td>\n <td data-route-path='/account/keys/:id/edit(.:format)'
|
398
|
+
data-regexp='^\\/account\\/keys\\/([^\\/.?]+)\\/edit(?:\\.([^\\/.?]+))?$'>\n
|
399
|
+
\ /account/keys/:id/edit(.:format)\n </td>\n <td data-route-reqs='account/keys#edit'>\n
|
400
|
+
\ account/keys#edit\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
401
|
+
\ <td data-route-name='account_key'>\n account_key<span class='helper'>_path</span>\n
|
402
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/account/keys/:id(.:format)'
|
403
|
+
data-regexp='^\\/account\\/keys\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /account/keys/:id(.:format)\n
|
404
|
+
\ </td>\n <td data-route-reqs='account/keys#show'>\n account/keys#show\n
|
405
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name=''>\n
|
406
|
+
\ </td>\n <td data-route-verb='PATCH'>\n PATCH\n </td>\n <td data-route-path='/account/keys/:id(.:format)'
|
407
|
+
data-regexp='^\\/account\\/keys\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /account/keys/:id(.:format)\n
|
408
|
+
\ </td>\n <td data-route-reqs='account/keys#update'>\n account/keys#update\n
|
409
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name=''>\n
|
410
|
+
\ </td>\n <td data-route-verb='PUT'>\n PUT\n </td>\n <td data-route-path='/account/keys/:id(.:format)'
|
411
|
+
data-regexp='^\\/account\\/keys\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /account/keys/:id(.:format)\n
|
412
|
+
\ </td>\n <td data-route-reqs='account/keys#update'>\n account/keys#update\n
|
413
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name=''>\n
|
414
|
+
\ </td>\n <td data-route-verb='DELETE'>\n DELETE\n </td>\n <td data-route-path='/account/keys/:id(.:format)'
|
415
|
+
data-regexp='^\\/account\\/keys\\/([^\\/.?]+)(?:\\.([^\\/.?]+))?$'>\n /account/keys/:id(.:format)\n
|
416
|
+
\ </td>\n <td data-route-reqs='account/keys#destroy'>\n account/keys#destroy\n
|
417
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='account'>\n
|
418
|
+
\ account<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
419
|
+
\ GET\n </td>\n <td data-route-path='/account(.:format)' data-regexp='^\\/account(?:\\.([^\\/.?]+))?$'>\n
|
420
|
+
\ /account(.:format)\n </td>\n <td data-route-reqs='account#index'>\n
|
421
|
+
\ account#index\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
422
|
+
\ <td data-route-name=''>\n </td>\n <td data-route-verb='PATCH'>\n PATCH\n
|
423
|
+
\ </td>\n <td data-route-path='/account(.:format)' data-regexp='^\\/account(?:\\.([^\\/.?]+))?$'>\n
|
424
|
+
\ /account(.:format)\n </td>\n <td data-route-reqs='account#update'>\n
|
425
|
+
\ account#update\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
426
|
+
\ <td data-route-name='healthcheck'>\n healthcheck<span class='helper'>_path</span>\n
|
427
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/healthcheck(.:format)'
|
428
|
+
data-regexp='^\\/healthcheck(?:\\.([^\\/.?]+))?$'>\n /healthcheck(.:format)\n
|
429
|
+
\ </td>\n <td data-route-reqs='healthcheck#index'>\n healthcheck#index\n
|
430
|
+
\ </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n <td data-route-name='git_api_key'>\n
|
431
|
+
\ git_api_key<span class='helper'>_path</span>\n </td>\n <td data-route-verb='GET'>\n
|
432
|
+
\ GET\n </td>\n <td data-route-path='/git/api_key(.:format)' data-regexp='^\\/git\\/api_key(?:\\.([^\\/.?]+))?$'>\n
|
433
|
+
\ /git/api_key(.:format)\n </td>\n <td data-route-reqs='git/git#api_key'>\n
|
434
|
+
\ git/git#api_key\n </td>\n</tr>\n<tr class='route_row' data-helper='path'>\n
|
435
|
+
\ <td data-route-name='git_allowed'>\n git_allowed<span class='helper'>_path</span>\n
|
436
|
+
\ </td>\n <td data-route-verb='GET'>\n GET\n </td>\n <td data-route-path='/git/allowed(.:format)'
|
437
|
+
data-regexp='^\\/git\\/allowed(?:\\.([^\\/.?]+))?$'>\n /git/allowed(.:format)\n
|
438
|
+
\ </td>\n <td data-route-reqs='git/git#allowed'>\n git/git#allowed\n </td>\n</tr>\n\n
|
439
|
+
\ </tbody>\n</table>\n\n<script type='text/javascript'>\n function each(elems,
|
440
|
+
func) {\n if (!elems instanceof Array) { elems = [elems]; }\n for (var
|
441
|
+
i = 0, len = elems.length; i < len; i++) {\n func(elems[i]);\n }\n
|
442
|
+
\ }\n\n function setValOn(elems, val) {\n each(elems, function(elem) {\n
|
443
|
+
\ elem.innerHTML = val;\n });\n }\n\n function onClick(elems, func)
|
444
|
+
{\n each(elems, function(elem) {\n elem.onclick = func;\n });\n
|
445
|
+
\ }\n\n // Enables functionality to toggle between `_path` and `_url` helper
|
446
|
+
suffixes\n function setupRouteToggleHelperLinks() {\n var toggleLinks
|
447
|
+
= document.querySelectorAll('#route_table [data-route-helper]');\n onClick(toggleLinks,
|
448
|
+
function(){\n var helperTxt = this.getAttribute(\"data-route-helper\"),\n
|
449
|
+
\ helperElems = document.querySelectorAll('[data-route-name] span.helper');\n
|
450
|
+
\ setValOn(helperElems, helperTxt);\n });\n }\n\n // takes an array
|
451
|
+
of elements with a data-regexp attribute and\n // passes their parent <tr>
|
452
|
+
into the callback function\n // if the regexp matches a given path\n function
|
453
|
+
eachElemsForPath(elems, path, func) {\n each(elems, function(e){\n var
|
454
|
+
reg = e.getAttribute(\"data-regexp\");\n if (path.match(RegExp(reg)))
|
455
|
+
{\n func(e.parentNode.cloneNode(true));\n }\n })\n }\n\n //
|
456
|
+
Ensure path always starts with a slash \"/\" and remove params or fragments\n
|
457
|
+
\ function sanitizePath(path) {\n var path = path.charAt(0) == '/' ? path
|
458
|
+
: \"/\" + path;\n return path.replace(/\\#.*|\\?.*/, '');\n }\n\n //
|
459
|
+
Enables path search functionality\n function setupMatchPaths() {\n var
|
460
|
+
regexpElems = document.querySelectorAll('#route_table [data-regexp]'),\n
|
461
|
+
\ pathElem = document.querySelector('#path_search'),\n selectedSection
|
462
|
+
= document.querySelector('#matched_paths'),\n noMatchText = '<tr><th
|
463
|
+
colspan=\"4\">None</th></tr>';\n\n\n // Remove matches if no path is present\n
|
464
|
+
\ pathElem.onblur = function(e) {\n if (pathElem.value === \"\") selectedSection.innerHTML
|
465
|
+
= \"\";\n }\n\n // On key press perform a search for matching paths\n
|
466
|
+
\ pathElem.onkeyup = function(e){\n var path = sanitizePath(pathElem.value),\n
|
467
|
+
\ defaultText = '<tr><th colspan=\"4\">Paths Matching (' + path +
|
468
|
+
'):</th></tr>';\n\n // Clear out results section\n selectedSection.innerHTML=
|
469
|
+
defaultText;\n\n // Display matches if they exist\n eachElemsForPath(regexpElems,
|
470
|
+
path, function(e){\n selectedSection.appendChild(e);\n });\n\n
|
471
|
+
\ // If no match present, tell the user\n if (selectedSection.innerHTML
|
472
|
+
=== defaultText) {\n selectedSection.innerHTML = selectedSection.innerHTML
|
473
|
+
+ noMatchText;\n }\n }\n }\n\n setupMatchPaths();\n setupRouteToggleHelperLinks();\n</script>\n\n</div>\n\n\n</body>\n</html>\n"
|
474
|
+
http_version:
|
475
|
+
recorded_at: Tue, 24 Jun 2014 22:26:38 GMT
|
476
|
+
recorded_with: VCR 2.9.2
|