Method: Work::DotFile#read!
- Defined in:
- lib/work/dotfile.rb
#read! ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/work/dotfile.rb', line 30 def read! if exists? data = YAML.load_file(path) self.ip = data["ip"] if data.has_key?("ip") self.domains = data["domains"].sort if data.has_key?("domains") end end |