Method: EncbsConfig#load

Defined in:
lib/encbsconfig.rb

#load(path) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/encbsconfig.rb', line 9

def load(path)
  [:bucket, :colorize, :compression, :hostname, :increment, :key, :secret,
    :size, :token, :timeout, :verbose].each {|attr| eval "@#{attr} = nil"}

  @paths = ""

  instance_eval "#{open(path).read}"
end