Method: XCCache::S3Storage#initialize
- Defined in:
- lib/xccache/storage/s3.rb
#initialize(options = {}) ⇒ S3Storage
Returns a new instance of S3Storage.
5 6 7 8 9 10 11 12 |
# File 'lib/xccache/storage/s3.rb', line 5 def initialize( = {}) super @uri = [:uri] @creds_path = Pathname([:creds_path] || "~/.xccache/s3.creds.json"). creds = JSONRepresentable.new(@creds_path) @access_key_id = creds["access_key_id"] @secret_access_key = creds["secret_access_key"] end |