Class: CARPS::UserConfig

Inherits:
YamlConfig show all
Defined in:
lib/carps/util/config.rb

Overview

User configurations, which may be stored in many files and which should not crash the system on an error

Direct Known Subclasses

Peer, SessionConfig

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from YamlConfig

#fail_hard, #read

Constructor Details

#initializeUserConfig

Subclasses must call super



122
123
124
# File 'lib/carps/util/config.rb', line 122

def initialize
   fail_hard false
end

Class Method Details

.load(filepath) ⇒ Object

Load a user file.



127
128
129
130
131
132
# File 'lib/carps/util/config.rb', line 127

def self.load filepath
   config = self.allocate
   config.read filepath
   config.fail_hard false 
   config
end