lib/symmetric_encryption/config.rb in symmetric-encryption-4.1.2 vs lib/symmetric_encryption/config.rb in symmetric-encryption-4.1.3
- old
+ new
@@ -34,9 +34,11 @@
end
# Write the entire configuration for all environments to the supplied file name.
def self.write_file(file_name, config)
config = deep_stringify_keys(config)
+
+ FileUtils.mkdir_p(file_name)
File.open(file_name, 'w') do |f|
f.puts '# This file was auto generated by symmetric-encryption.'
f.puts '# Recommend using symmetric-encryption to make changes.'
f.puts '# For more info, run:'
f.puts '# symmetric-encryption --help'