mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
14 lines
253 B
Ruby
14 lines
253 B
Ruby
require 'yaml'
|
|
|
|
class Conf
|
|
|
|
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
|
|
end
|