class Qiniu2Upyun::Config
Attributes
qiniu[R]
upyun[R]
Public Class Methods
load!(path)
click to toggle source
# File lib/qiniu2upyun/config.rb, line 31 def load!(path) raise NoConfigFileFoundError.new(path) unless File.exists?(path) config = YAML.load_file(path) @qiniu = Qiniu.new(config['qiniu']) @upyun = Upyun.new(config['upyun']) end