storagy 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/storagy/version.rb +1 -1
- data/lib/storagy.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: db2b14c95aec03f06665de69287759de25c7a524
|
4
|
+
data.tar.gz: 80cff5019a96058e75795009244b1bfe0de9dc3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e748851ba8a34557395dd0999f6180ca4816cce9f041b0f18c1d610709e44b0667ce6486ac487a9b614728d18005cafbb3f9318d9dbd22fe3b9d770f4a5d24fb
|
7
|
+
data.tar.gz: 77b4ce31c8b4630adecc70b9fa07b42988daf231065430628834e0f7065caaf6f60463afc30687f772548979dc7adf85ca80f2a080d50d172e0e13477b7f53ff
|
data/lib/storagy/version.rb
CHANGED
data/lib/storagy.rb
CHANGED
@@ -5,7 +5,7 @@ module Storagy
|
|
5
5
|
class BucketUrlError < StandardError ; end
|
6
6
|
|
7
7
|
def self.set_aws_credentials_from_storagy
|
8
|
-
if ENV['STORAGY_S3_BUCKET_URL']
|
8
|
+
if ENV['STORAGY_S3_BUCKET_URL'] and !(ENV['AWS_ACCESS_KEY_ID'] || ENV['AWS_SECRET_ACCESS_KEY'] )
|
9
9
|
ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'] = get_aws_storagy_credentials
|
10
10
|
else
|
11
11
|
raise BucketUrlError, "Storagy bucket url STORAGY_S3_URL is not configured.\nMake sure you provisioned Storagy successfully."
|