convox_api_client 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/convox_api_client/client.rb +3 -1
- data/lib/convox_api_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5dabb400be1278637130f22ad829a0a258bada00
|
|
4
|
+
data.tar.gz: f2ff95d3ef6ace180a5b26403e58a5ed205fa68e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db3e6131cea688495328161d83bab692d8559cfe585b8f4efbfd7ecf4d237a4f8d30ae12426476db3d9e6e9665f93a64cd136efae56c02df2b63bcea61f675be
|
|
7
|
+
data.tar.gz: a8a679c10f6eeba7791884eaf743e50b64dbdbdd01e74bfda96404cbed17fd32edb086ce20d92c23645bc1541f7cf7ce8568b2674b88ce9542002cd8b5f88d4b
|
|
@@ -201,7 +201,9 @@ module Convox
|
|
|
201
201
|
def app_logs(app, rack: nil)
|
|
202
202
|
logs = []
|
|
203
203
|
EM.run {
|
|
204
|
-
|
|
204
|
+
ws_headers = authorization_headers
|
|
205
|
+
ws_headers["Rack"] = rack if rack
|
|
206
|
+
ws = Faye::WebSocket::Client.new("wss://console.convox.com/apps/#{app}/logs", nil, {headers: ws_headers})
|
|
205
207
|
|
|
206
208
|
ws.on :open do |event|
|
|
207
209
|
EventMachine.add_timer 2, proc { ws.close }
|