examples/cli/instant_download_server.rb in s33r-0.5.1 vs examples/cli/instant_download_server.rb in s33r-0.5.2
- old
+ new
@@ -12,9 +12,14 @@
include Readline
# AMAZON S3 KEYS!!!
accesskey = 'accesskey'
secretaccesskey = 'secretaccesskey'
+if 'accesskey' == accesskey
+ config, _ = S33r.load_config('../fores33r/config/s3.yaml')
+ accesskey = config[:access]
+ secretaccesskey = config[:secret]
+end
puts "****************************"
# Get bucket name from the user.
bucket_name = "elliotsmith-marvellous-bucket"