Class: Conf

Inherits:
Object
  • Object
show all
Defined in:
lib/vmfloaty/conf.rb

Class Method Summary collapse

Class Method Details

.read_configObject



6
7
8
9
10
11
12
13
14
# File 'lib/vmfloaty/conf.rb', line 6

def self.read_config
  conf = {}
  begin
    conf = YAML.load_file("#{Dir.home}/.vmfloaty.yml")
  rescue StandardError
    # ignore
  end
  conf
end