lib/symmetric_encryption/config.rb in symmetric-encryption-4.1.3 vs lib/symmetric_encryption/config.rb in symmetric-encryption-4.1.4
- old
+ new
@@ -35,10 +35,10 @@
# 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)
+ FileUtils.mkdir_p(File.dirname(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'