blobstore_client 1.3091.0 → 1.3093.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blobstore_client/dav_blobstore_client.rb +1 -0
- data/lib/blobstore_client/s3_blobstore_client.rb +2 -3
- data/lib/blobstore_client/simple_blobstore_client.rb +3 -4
- data/lib/blobstore_client/swift_blobstore_client.rb +2 -0
- data/lib/blobstore_client/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ea314f54fdeee107f401b1bbe2a26c6525dd703
|
4
|
+
data.tar.gz: 57eedf305975a368f5c028cc00d373247108b3e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8020e39ff60582d5c4ef6259720919a9aaff2551317a60d9a22b09c7a3cec16eaf679c194b0eb15cc07f50a58e11ea7914cb212858c4049f5fddd8300980509a
|
7
|
+
data.tar.gz: 22977c18fcce31f399f42bce5a8f6f443a270db31314d7beeefb1adb129b69af0b0d9a231d143d39ffd71ab0b2975d585f2557bb6fb1561e4d63a733c071de4f
|
@@ -54,6 +54,7 @@ module Bosh
|
|
54
54
|
def delete_object(id)
|
55
55
|
response = @client.delete(url(id), header: @headers)
|
56
56
|
|
57
|
+
raise NotFound, "Object '#{id}' is not found, #{response.status}/#{response.content}" if response.status == 404
|
57
58
|
raise BlobstoreError, "Could not delete object, #{response.status}/#{response.content}" if response.status != 204
|
58
59
|
end
|
59
60
|
|
@@ -114,9 +114,8 @@ module Bosh
|
|
114
114
|
raise BlobstoreError, 'unsupported action' if @simple
|
115
115
|
object_id = full_oid_path(object_id)
|
116
116
|
object = get_object_from_s3(object_id)
|
117
|
-
unless object.exists?
|
118
|
-
|
119
|
-
end
|
117
|
+
raise NotFound, "Object '#{object_id}' is not found" unless object.exists?
|
118
|
+
|
120
119
|
object.delete
|
121
120
|
rescue AWS::Errors::Base => e
|
122
121
|
raise BlobstoreError, "Failed to delete object '#{object_id}', S3 response error: #{e.message}"
|
@@ -48,10 +48,9 @@ module Bosh
|
|
48
48
|
|
49
49
|
def delete_object(id)
|
50
50
|
response = @client.delete(url(id), header: @headers)
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
end
|
51
|
+
|
52
|
+
raise NotFound, "Object '#{id}' is not found, #{response.status}/#{response.content}" if response.status == 404
|
53
|
+
raise BlobstoreError, "Could not delete object, #{response.status}/#{response.content}" if response.status != 204
|
55
54
|
end
|
56
55
|
|
57
56
|
def object_exists?(id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blobstore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3093.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.3093.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.3093.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|