lib/eac_launcher/context/settings.rb in eac_launcher-0.6.6 vs lib/eac_launcher/context/settings.rb in eac_launcher-0.6.7

- old
+ new

@@ -8,9 +8,13 @@ class Context class Settings include ::EacRubyUtils::SimpleCache def initialize(file) + unless ::File.exist?(file) + ::FileUtils.mkdir_p(::File.dirname(file)) + ::File.write(file, {}.to_yaml) + end @data = YAML.load_file(file) end def instance_settings(instance) ::EacLauncher::Instances::Settings.new(value(['Instances', instance.name]))