Method: CloudSync::Configuration.load

Defined in:
lib/cloud_sync/configuration.rb

.load(file) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/cloud_sync/configuration.rb', line 25

def self.load file
  begin
    configure YAML.load_file(file)
  rescue
    raise IOError, "#{file} could not be loaded."
  end
end