diff options
author | Caleb <caleb.tutty@nzherald.co.nz> | 2015-03-24 08:24:39 +1300 |
---|---|---|
committer | Caleb <caleb.tutty@nzherald.co.nz> | 2015-03-26 00:29:31 +1300 |
commit | 201c3cbc7e854b9b4b8eb4c22613c9e50ac4ca59 (patch) | |
tree | ecb0814f73aa7a22ba019da610d8748ca225be8e | |
parent | d748691956dc082ec5b2b520397e7702eaf7a488 (diff) |
Add a guard in script/wad for the S3 credentials ENV vars being missing
-rwxr-xr-x | script/wad | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/wad b/script/wad index 658ce37ef..98830e4a2 100755 --- a/script/wad +++ b/script/wad @@ -330,6 +330,8 @@ class Wad end def s3_configure + return log "ENV['S3_CREDENTIALS'] not present." unless ENV['S3_CREDENTIALS'] + Presss.config = { :region => s3_region, :bucket_name => s3_bucket_name, @@ -424,7 +426,7 @@ class Wad end def self.setup - new.setup + ENV['S3_CREDENTIALS'] ? new.setup : new.install_bundle end end |