Class: Conf
- Inherits:
-
Object
- Object
- Conf
- Defined in:
- lib/vmfloaty/conf.rb
Class Method Summary collapse
Class Method Details
.read_config ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/vmfloaty/conf.rb', line 5 def self.read_config conf = {} begin conf = YAML.load_file("#{Dir.home}/.vmfloaty.yml") rescue STDERR.puts "WARNING: There was no config file at #{Dir.home}/.vmfloaty.yml" end conf end |