lib/rconf/profile.rb in rconf-0.5.8 vs lib/rconf/profile.rb in rconf-0.5.9

- old
+ new

@@ -7,20 +7,22 @@ # licensee is strictly subject to the terms and conditions, # including confidentiality obligations, set forth in the applicable # License Agreement between RightScale.com, Inc. and # the licensee +require 'yaml' + module RightConf class Profile include Singleton # Load profile from disk on instantiation def initialize if File.exist?(profile_path) @profile = YAML.load(IO.read(profile_path)) rescue {} - puts "LOADED PROFILE: #{@profile}" + @profile = {} unless @profile.is_a?(Hash) else @profile = {} end end