1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Put it to me straight: just say it.

Prefer Thor's say method to Kernel's plain puts.
This commit is contained in:
Kasper Timm Hansen 2017-03-01 20:42:54 +01:00
parent 82f7dc6178
commit 84bc9a50d3

View file

@ -32,13 +32,13 @@ module Rails
require_application_and_environment! require_application_and_environment!
Rails::Secrets.read_for_editing do |tmp_path| Rails::Secrets.read_for_editing do |tmp_path|
puts "Waiting for secrets file to be saved. Abort with Ctrl-C." say "Waiting for secrets file to be saved. Abort with Ctrl-C."
system("\$EDITOR #{tmp_path}") system("\$EDITOR #{tmp_path}")
end end
puts "New secrets encrypted and saved." say "New secrets encrypted and saved."
rescue Interrupt rescue Interrupt
puts "Aborted changing encrypted secrets: nothing saved." say "Aborted changing encrypted secrets: nothing saved."
rescue Rails::Secrets::MissingKeyError => error rescue Rails::Secrets::MissingKeyError => error
say error.message say error.message
end end