mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
16 lines
298 B
Ruby
16 lines
298 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'yaml'
|
|
|
|
class Conf
|
|
|
|
def self.read_config
|
|
conf = {}
|
|
begin
|
|
conf = YAML.load_file("#{Dir.home}/.vmfloaty.yml")
|
|
rescue StandardError
|
|
STDERR.puts "WARNING: There was no config file at #{Dir.home}/.vmfloaty.yml"
|
|
end
|
|
conf
|
|
end
|
|
end
|