blobstore_client 1.2175.0 → 1.2200.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,6 @@ require 'securerandom'
|
|
6
6
|
|
7
7
|
module Bosh
|
8
8
|
module Blobstore
|
9
|
-
|
10
9
|
class S3BlobstoreClient < BaseClient
|
11
10
|
|
12
11
|
ENDPOINT = 'https://s3.amazonaws.com'
|
@@ -35,7 +34,7 @@ module Bosh
|
|
35
34
|
use_ssl: @options.fetch(:use_ssl, true),
|
36
35
|
s3_port: @options.fetch(:port, 443),
|
37
36
|
s3_endpoint: @options.fetch(:host, URI.parse(S3BlobstoreClient::ENDPOINT).host),
|
38
|
-
s3_force_path_style:
|
37
|
+
s3_force_path_style: @options.fetch(:s3_force_path_style, false),
|
39
38
|
}
|
40
39
|
|
41
40
|
# using S3 without credentials is a special case:
|
@@ -82,7 +81,6 @@ module Bosh
|
|
82
81
|
# @param [String] object_id object id to retrieve
|
83
82
|
# @param [File] file file to store the retrived object in
|
84
83
|
def get_file(object_id, file)
|
85
|
-
|
86
84
|
object_id = full_oid_path(object_id)
|
87
85
|
return @simple.get_file(object_id, file) if @simple
|
88
86
|
|
@@ -100,6 +98,7 @@ module Bosh
|
|
100
98
|
file.write(chunk)
|
101
99
|
end
|
102
100
|
end
|
101
|
+
|
103
102
|
file.write(cipher.final) if @encryption_key
|
104
103
|
|
105
104
|
rescue AWS::S3::Errors::NoSuchKey => e
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blobstore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2200.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 1.
|
101
|
+
version: 1.2200.0
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.
|
109
|
+
version: 1.2200.0
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: rspec
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,7 +125,7 @@ dependencies:
|
|
125
125
|
version: '0'
|
126
126
|
description: ! 'BOSH blobstore client
|
127
127
|
|
128
|
-
|
128
|
+
87cbf9'
|
129
129
|
email: support@cloudfoundry.com
|
130
130
|
executables:
|
131
131
|
- blobstore_client_console
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
segments:
|
172
172
|
- 0
|
173
|
-
hash:
|
173
|
+
hash: 924090521433202636
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
176
|
rubygems_version: 1.8.23
|