quiverstaskrunner 0.1.2470998 → 0.1.2477923
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quiverstaskrunner/azuresetup.rb +8 -0
- data/lib/quiverstaskrunner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bbfbf105d0c1640b775e05648f114f9387e9abd5aa0250062d21757cc3637a8
|
4
|
+
data.tar.gz: b686b093ec1a6017aa7e4ed2a9dfb93062cb24ef3c426221c52b92f4d9a59976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f83d4f3d3083e8f395822ae265d295586cf9d5026a2ee80fd97286bfe6054f80054c3de6915c64778b0894191ef31c3eedfbed6777c6b262956f7b0137e52ac
|
7
|
+
data.tar.gz: '08345797a6cf32b77e08da454c7ae72c7896b0d85be7045ef1ed3405792dd5017955e7c1b03db6b8bf60a89fc98d853ff3561830d9d3513e3772137ab219f9de'
|
@@ -10,6 +10,12 @@ require "quiverstaskrunner/helpers/clihelper"
|
|
10
10
|
|
11
11
|
include QuiversTaskrunner
|
12
12
|
|
13
|
+
class ::File
|
14
|
+
def each_chunk(chunk_size=2**20)
|
15
|
+
yield read(chunk_size) until eof?
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
13
19
|
module QuiversTaskrunner
|
14
20
|
@@get_settings_options = { :cli_params_black_list => ["env", "nos", "no-swap", "nod", "no-staging-del" ] }
|
15
21
|
@@secrets = {
|
@@ -156,11 +162,13 @@ module QuiversTaskrunner
|
|
156
162
|
f.each_chunk {|chunk|
|
157
163
|
block_id = counter.to_s.rjust(5, '0')
|
158
164
|
block_list << [block_id, :uncommitted]
|
165
|
+
|
159
166
|
blob_options = {
|
160
167
|
:content_md5 => Base64.strict_encode64(Digest::MD5.digest(chunk)),
|
161
168
|
:content_type => "application/octet-stream",
|
162
169
|
:timeout => timeout
|
163
170
|
}
|
171
|
+
|
164
172
|
md5 = blob_srv.create_blob_block(blob_container, blob_name, block_id, chunk, blob_options)
|
165
173
|
counter += 1
|
166
174
|
}
|
@@ -1 +1 @@
|
|
1
|
-
module QuiversTaskrunner
|
1
|
+
module QuiversTaskrunner
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quiverstaskrunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2477923
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ndao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|