little-dutch 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/little-dutch/version.rb +1 -1
- data/lib/little-dutch.rb +4 -3
- 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: f38c1fbad6eece05731ce41b91890c1495df942f
|
4
|
+
data.tar.gz: 065b27f61804b8b7889cd85deaf7762774d44997
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28507530f0316e008743a6389e9c37f28fce0a15dc1f159eb129d001ac4fb2692feb8a884bf70b16c60f81ca1a3c8ffa4f049a83fc936edd19b1b415e37df11e
|
7
|
+
data.tar.gz: 92804645e98810ef9927c455cb83bc6a04c35f96839612fdeb952d05b6900ff1411ec98c4c490efa46152a13a4e065f3a929bef690c5d95e9ab363276e7d229b
|
data/lib/little-dutch/version.rb
CHANGED
data/lib/little-dutch.rb
CHANGED
@@ -50,10 +50,11 @@ module LittleDutch
|
|
50
50
|
url.path = "/r/#{config.app_name}/#{config.instance_id}/#{@runcount}"
|
51
51
|
url.query = { token: config.token }.to_param
|
52
52
|
path = file.tap(&:close).path
|
53
|
-
curl_cmd = <<-SHELL
|
54
|
-
curl -X POST -H "Transfer-Encoding: chunked" -H "Content-Type: application/text" --data-binary @#{path} #{url.to_s}
|
53
|
+
curl_cmd = <<-SHELL.lines.map(&:strip).join(' ; ')
|
54
|
+
curl -X POST --retry 10 -H "Transfer-Encoding: chunked" -H "Content-Type: application/text" --data-binary @#{path} #{url.to_s}
|
55
|
+
rm -f #{file}
|
55
56
|
SHELL
|
56
|
-
Process.spawn curl_cmd, out: config.logfile, err: config.logfile
|
57
|
+
Process.spawn curl_cmd, out: config.logfile, err: config.logfile, in: '/dev/null'
|
57
58
|
end
|
58
59
|
|
59
60
|
end
|