gooddata_s3 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gooddata_s3/client.rb +2 -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: aeff3493bd926408dcad4ebdd7decdc0a213a5f2
|
4
|
+
data.tar.gz: e539f1b6f69a46051ebd85a2122bd2c095735610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c76400a1007b3f54a18dcd1ca9029b0182867e348579631446126b9e658fe74e7cf007f841e9752de712cf67cf352175745cdf17c92e72cd74584924ed57fd2a
|
7
|
+
data.tar.gz: 685520bac7855f564cead88754f373771bd61458a4377f0e997f005ab1ff1f247a5ae3e6d9628f167d19bee47248b61c66a9b1a4af8df359d3ed1ad6aa2d9526
|
data/lib/gooddata_s3/client.rb
CHANGED
@@ -165,6 +165,7 @@ class GoodDataS3::Client
|
|
165
165
|
file = config[:file] || 'gooddata_connector_config.json'
|
166
166
|
|
167
167
|
if self.exists? file
|
168
|
+
|
168
169
|
json = JSON.parse(self.download(file), :symbolize_names => true)
|
169
170
|
|
170
171
|
File.open(file,'w'){ |f| JSON.dump(json, f) }
|
@@ -227,7 +228,7 @@ class GoodDataS3::Client
|
|
227
228
|
|
228
229
|
def exists? file
|
229
230
|
begin
|
230
|
-
@s3.get_object(bucket_name: @bucket_name, key:
|
231
|
+
@s3.get_object(bucket_name: @bucket_name, key:file)
|
231
232
|
true
|
232
233
|
rescue AWS::S3::Errors::NoSuchKey
|
233
234
|
false
|