Method: RightSupport::Net::S3Helper.init
- Defined in:
- lib/right_support/net/s3_helper.rb
.init(config, s3, encryptor, options = {}) ⇒ true
Init() is the first method which must be called. This is configuration and integration with S3 and Encryptor
58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/right_support/net/s3_helper.rb', line 58 def self.init(config, s3, encryptor, = {}) @config = config @s3class = s3 @encryptor = encryptor @options = # Reset any S3 objects we'd been caching, since config may have changed @s3 = @bucket = nil # Make sure our bucket exists -- better to do it now than on first access! self.bucket true end |