class Credentials
Public Class Methods
bucket()
click to toggle source
# File lib/syncassets_r2.rb, line 27 def self.bucket Auth.root[Auth.env]['bucket'] end
distribution_ids()
click to toggle source
# File lib/syncassets_r2.rb, line 30 def self.distribution_ids unless Auth.root[Auth.env]['distribution_ids'].nil? return Auth.root[Auth.env]['distribution_ids'].gsub(' ','').split(',') end [] end
key()
click to toggle source
# File lib/syncassets_r2.rb, line 21 def self.key Auth.root[Auth.env]['access_key_id'] end
new()
click to toggle source
# File lib/syncassets_r2.rb, line 13 def initialize # TRIED USING THE INITIALIZE FOR THOSE YAML LOADING DOWN THERE # BUT IT WAS GIVING ME CRAP AND HAD TO DUPLICATE THE LINE # MY GUEST IS THAT IT IS B/C THEY ARE CLASS METHODS # TODO: RESEARCH HOW TO REFACTOR OUT end
secret()
click to toggle source
# File lib/syncassets_r2.rb, line 24 def self.secret Auth.root[Auth.env]['secret_access_key'] end