Inline the lone add_master_key_file_silently use.

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