Inline the lone add_master_key_file_silently use.

上级 9fa88314
......@@ -20,17 +20,13 @@ def add_master_key_file
say "If you lose the key, no one, including you, can access anything encrypted with it."
say ""
add_master_key_file_silently key
create_file MASTER_KEY_PATH, key
say ""
ignore_master_key_file
end
end
def add_master_key_file_silently(key = nil)
create_file MASTER_KEY_PATH, key || ActiveSupport::EncryptedFile.generate_key
end
private
def ignore_master_key_file
if File.exist?(".gitignore")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册