Method: Configural::Config::SDLFile#_save
- Defined in:
- lib/configural/config/sdl_file.rb
#_save ⇒ Object
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/configural/config/sdl_file.rb', line 67 def _save require 'fileutils' FileUtils.mkdir_p( File.dirname(path) ) File.open(path, 'w') { |f| hash_to_tag(@data).write(f) } rescue ArgumentError, Errno::EACCES => e warn( "WARNING: Could not save config file #{path.inspect}:\n" + e.inspect ) end |