module S3lurp
Constants
- VALID_CONFIG_KEYS
- VERSION
Attributes
config[RW]
Public Class Methods
configure() { |config| ... }
click to toggle source
# File lib/s3lurp.rb, line 20 def self.configure self.config ||= Configuration.new yield(config) if config.file loaded_conf = YAML.load_file(Rails.root.join("config", config.file).to_s) env_conf = loaded_conf[Rails.env] || loaded_conf VALID_CONFIG_KEYS.each do |key| config.send("#{key.to_s}=", env_conf[key.to_s]) if !env_conf[key.to_s].nil? end end end
reset_config()
click to toggle source
# File lib/s3lurp.rb, line 32 def self.reset_config self.config = nil end