azure-contrib 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/azure-contrib/blob_service.rb +8 -7
- data/lib/azure-contrib/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: 5ae5247c030aade1eaf0b0cffbdc80a87e326ac6
|
4
|
+
data.tar.gz: 51aaf651b4d16916a4f106a060bbe95329fb7b71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a173522ab54077398462d7a99e16345c214dd5dffdc11fe9f6cd87fb8c2fd0c2cd147ab979b98e4a5209800f8eaf843901afe6535aec0492ebc2d14c3e844d0
|
7
|
+
data.tar.gz: 3e3070938a0fe1572677400edcf048c4efd679e55121ee1ad06b171ee090a2ae3cec36db24e173d293df55ab65a7c277ec5d1b28fb69cb00fddf1b833f049493
|
@@ -46,8 +46,9 @@ class BlockActor
|
|
46
46
|
end
|
47
47
|
|
48
48
|
module Azure
|
49
|
-
module
|
50
|
-
|
49
|
+
module BlobService
|
50
|
+
|
51
|
+
def create_block_blob_with_chunking(container, blob, content_or_filepath, options={})
|
51
52
|
chunking = options.delete(:chunking)
|
52
53
|
if chunking
|
53
54
|
filepath = content_or_filepath
|
@@ -64,7 +65,7 @@ module Azure
|
|
64
65
|
puts "done."
|
65
66
|
else
|
66
67
|
content = content_or_filepath
|
67
|
-
|
68
|
+
create_block_blob_without_chunking(container, blob, content, options)
|
68
69
|
end
|
69
70
|
end
|
70
71
|
|
@@ -87,10 +88,10 @@ module Azure
|
|
87
88
|
pool.terminate
|
88
89
|
return block_list
|
89
90
|
end
|
90
|
-
end
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
|
92
|
+
alias_method :create_block_blob_without_chunking, :create_block_blob
|
93
|
+
alias_method :create_block_blob, :create_block_blob_with_chunking
|
94
|
+
|
95
95
|
end
|
96
|
+
|
96
97
|
end
|