quiverstaskrunner 0.1.255332 → 0.1.2470998

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e6d59706d0b1bd49f4afee1ff574e97f9dc19f1a
4
- data.tar.gz: d252ec823b5e8617844da3a676966f35e3ba458a
2
+ SHA256:
3
+ metadata.gz: f341969236e5a6de7414c33c2e1b51a793ba9d09d1c82e9a01f8ff79e64a9681
4
+ data.tar.gz: 9bf96de868a0246ffe0b8b5e27fa69c28f7e744fd28de9c5cee1d2ba1b0c91ff
5
5
  SHA512:
6
- metadata.gz: 784ec7a5c9b59aafe8c9c0ea18292d7c164fd8dde935c8db90a4d06d6b9e4cc12049807b1ea85016fc084c94877948afff31c2bdd7dc518b5a8c70376679219f
7
- data.tar.gz: 9a17e4d9262d864e7685d6c6e1809b05ba53335ba448b3c2bc8ba2fb78566a772e603ff61080a52a02bed895fb246b3e46144a70e08f9333e9c4ca43f357f6d1
6
+ metadata.gz: 70197045616444e937814361f9af0bf160f44aa781a4bd780c9770a50822e95f563c8a5a41f445c129837a39bec14447cbd05aa2eac928e54ecfd8dcf8f5dd9d
7
+ data.tar.gz: 51da9677bca00277f003b9254b161c0e598e91cf5f6de0d01935a669b57f173cb6cc2eb50100bd9efade6345a4d78672ba9af0c462998bdde87e30ff1b7a4226
@@ -149,14 +149,22 @@ module QuiversTaskrunner
149
149
  blob_srv = Azure::Blob::BlobService.new
150
150
  blob_name = Time.now.utc.strftime("%Y%m%d_%H%M%S_#{pkg_name}")
151
151
  blob_container = "mydeployments"
152
- blob_content = nil
152
+ block_list = []
153
+ counter = 1
154
+
153
155
  File.open(File.join(pkg_dir, pkg_name), "rb") do |f|
154
- blob_content = f.read
156
+ f.each_chunk {|chunk|
157
+ block_id = counter.to_s.rjust(5, '0')
158
+ block_list << [block_id, :uncommitted]
159
+ blob_options = {
160
+ :content_md5 => Base64.strict_encode64(Digest::MD5.digest(chunk)),
161
+ :content_type => "application/octet-stream",
162
+ :timeout => timeout
163
+ }
164
+ md5 = blob_srv.create_blob_block(blob_container, blob_name, block_id, chunk, blob_options)
165
+ counter += 1
166
+ }
155
167
  end
156
- blob_options = {
157
- :content_type => "application/octet-stream",
158
- :timeout => timeout
159
- }
160
168
 
161
169
  # 2. Upload the blob object to the blob storage
162
170
  start_time = Time.now
@@ -164,7 +172,8 @@ module QuiversTaskrunner
164
172
  no_error = true
165
173
  begin
166
174
  puts "Start uploading package #{blob_name} to blob storage"
167
- new_blob = blob_srv.create_block_blob(blob_container, blob_name, blob_content, blob_options)
175
+ #new_blob = blob_srv.create_block_blob(blob_container, blob_name, blob_content, blob_options)
176
+ blob_srv.commit_blob_blocks(blob_container, blob_name, block_list)
168
177
  uploaded_package_name = blob_name
169
178
  rescue Exception => ex
170
179
  no_error = false
@@ -1 +1 @@
1
- module QuiversTaskrunner
1
+ module QuiversTaskrunner
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiverstaskrunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.255332
4
+ version: 0.1.2470998
5
5
  platform: ruby
6
6
  authors:
7
7
  - ndao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-27 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: azure-plus
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.6'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.6'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: colorize
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.7'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.7'
83
83
  description: Set of modules which defines common tasks to build, deploy C# projects.
@@ -88,7 +88,7 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
91
+ - ".gitignore"
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
@@ -114,17 +114,17 @@ require_paths:
114
114
  - lib
115
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - '>='
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.0.14
127
+ rubygems_version: 2.7.6
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Set of modules which defines common tasks to build, deploy C# projects.